	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_rc
_write_rc:                              ## @write_rc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	movl	$81, %esi
	movl	$1, %edx
	movq	%rbx, %rcx
	callq	_fwrite
	movq	_mc_nodes_lang_count@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_9
## %bb.1:
	movq	_mc_nodes_lang@GOTPCREL(%rip), %r15
	xorl	%r12d, %r12d
	xorl	%ecx, %ecx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r13), %rax
	movl	4(%rax), %r14d
	movl	%r14d, %edi
	callq	_unichar_len
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_unicode_print
	movl	$6, %esi
	movl	$1, %edx
	leaq	L_.str.5(%rip), %rdi
	movq	%rbx, %rcx
	callq	_fwrite
	movq	_mc_nodes_lang_count@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r13, %rcx
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	movslq	%eax, %rdx
	cmpq	%rdx, %r12
	jge	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r15), %rdx
	movq	(%rdx,%r12,8), %r13
	movq	(%r13), %rsi
	cmpq	%rsi, (%rcx)
	jne	LBB0_5
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r15), %rax
	movq	(%rax,%r12,8), %r13
	movq	(%r13), %rsi
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rsi), %rdx
	movq	16(%rsi), %rcx
	movl	24(%rsi), %r8d
	movq	%rbx, %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	(%r13), %rax
	movl	(%rax), %ecx
	movl	%ecx, %edx
	andl	$1023, %edx                     ## imm = 0x3FF
	shrl	$10, %ecx
	andl	$63, %ecx
	movq	%rbx, %rdi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	$16, %esi
	movl	$1, %edx
	leaq	L_.str.3(%rip), %rdi
	movq	%rbx, %rcx
	callq	_fwrite
	movq	_mcset_prefix_bin@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_mcset_mc_basename@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%rbx, %rdi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_7
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/* Do not edit this file manually.\n   This file is autogenerated by windmc.  */\n\n"

	.comm	_mc_nodes_lang_count,4,2        ## @mc_nodes_lang_count
	.comm	_mc_nodes_lang,8,3              ## @mc_nodes_lang
L_.str.1:                               ## @.str.1
	.asciz	"\n// Country: %s\n// Language: %s\n#pragma code_page(%u)\n"

L_.str.2:                               ## @.str.2
	.asciz	"LANGUAGE 0x%lx, 0x%lx\n"

L_.str.3:                               ## @.str.3
	.asciz	"1 MESSAGETABLE \""

	.comm	_mcset_prefix_bin,8,3           ## @mcset_prefix_bin
L_.str.4:                               ## @.str.4
	.asciz	"%s_"

	.comm	_mcset_mc_basename,8,3          ## @mcset_mc_basename
L_.str.5:                               ## @.str.5
	.asciz	".bin\"\n"

	.no_dead_strip	_write_rc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_rc
_write_rc:                              ; @write_rc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	w1, #81
	mov	w2, #1
	mov	x3, x19
	bl	_fwrite
Lloh2:
	adrp	x26, _mc_nodes_lang_count@GOTPAGE
Lloh3:
	ldr	x26, [x26, _mc_nodes_lang_count@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.1:
	mov	x27, #0
	mov	x24, #0
Lloh4:
	adrp	x28, _mc_nodes_lang@GOTPAGE
Lloh5:
	ldr	x28, [x28, _mc_nodes_lang@GOTPAGEOFF]
Lloh6:
	adrp	x21, l_.str.2@PAGE
Lloh7:
	add	x21, x21, l_.str.2@PAGEOFF
Lloh8:
	adrp	x22, l_.str.3@PAGE
Lloh9:
	add	x22, x22, l_.str.3@PAGEOFF
Lloh10:
	adrp	x20, _mcset_prefix_bin@GOTPAGE
Lloh11:
	ldr	x20, [x20, _mcset_prefix_bin@GOTPAGEOFF]
Lloh12:
	adrp	x23, l_.str.5@PAGE
Lloh13:
	add	x23, x23, l_.str.5@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x24]
	ldr	w25, [x8, #4]
	mov	x0, x25
	bl	_unichar_len
	mov	x2, x0
	mov	x0, x19
	mov	x1, x25
	bl	_unicode_print
	mov	x0, x23
	mov	w1, #6
	mov	w2, #1
	mov	x3, x19
	bl	_fwrite
	ldr	w8, [x26]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x27, x27, #1
	cmp	x27, w8, sxtw
	b.ge	LBB0_10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x24, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x11, [x24]
	ldr	x9, [x28]
	ldr	x10, [x9, x27, lsl #3]
	ldr	x9, [x10]
	cmp	x11, x9
	b.eq	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x24, x10
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x28]
	ldr	x24, [x8, x27, lsl #3]
	ldr	x9, [x24]
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldur	q0, [x9, #8]
	ldr	x8, [x9, #24]
	str	x8, [sp, #16]
	str	q0, [sp]
	mov	x0, x19
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
	ldr	x8, [x24]
	ldr	w8, [x8]
	and	x9, x8, #0x3ff
	ubfx	x8, x8, #10, #6
	stp	x9, x8, [sp]
	mov	x0, x19
	mov	x1, x21
	bl	_fprintf
	mov	x0, x22
	mov	w1, #16
	mov	w2, #1
	mov	x3, x19
	bl	_fwrite
	ldr	x8, [x20]
	cbz	x8, LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh16:
	adrp	x8, _mcset_mc_basename@GOTPAGE
Lloh17:
	ldr	x8, [x8, _mcset_mc_basename@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	str	x8, [sp]
	mov	x0, x19
Lloh19:
	adrp	x1, l_.str.4@PAGE
Lloh20:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_fprintf
	b	LBB0_2
LBB0_10:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/* Do not edit this file manually.\n   This file is autogenerated by windmc.  */\n\n"

	.comm	_mc_nodes_lang_count,4,2        ; @mc_nodes_lang_count
	.comm	_mc_nodes_lang,8,3              ; @mc_nodes_lang
l_.str.1:                               ; @.str.1
	.asciz	"\n// Country: %s\n// Language: %s\n#pragma code_page(%u)\n"

l_.str.2:                               ; @.str.2
	.asciz	"LANGUAGE 0x%lx, 0x%lx\n"

l_.str.3:                               ; @.str.3
	.asciz	"1 MESSAGETABLE \""

	.comm	_mcset_prefix_bin,8,3           ; @mcset_prefix_bin
l_.str.4:                               ; @.str.4
	.asciz	"%s_"

	.comm	_mcset_mc_basename,8,3          ; @mcset_mc_basename
l_.str.5:                               ; @.str.5
	.asciz	".bin\"\n"

	.no_dead_strip	_write_rc
.subsections_via_symbols
