	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_bin
_write_bin:                             ## @write_bin
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_mc_nodes_lang_count@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_14
## %bb.1:
	xorl	%ecx, %ecx
	movq	_mc_nodes_lang@GOTPCREL(%rip), %r14
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_strcat
	movq	%rbx, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcat
	shlq	$3, %r13
	movq	_mc_nodes_lang@GOTPCREL(%rip), %r14
	addq	(%r14), %r13
	movl	%r12d, %edx
	subl	%r15d, %edx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_windmc_write_bin
	movq	%rbx, %rdi
	callq	_free
	movq	_mc_nodes_lang_count@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%r12d, %r15d
	cmpl	%eax, %r12d
	jge	LBB0_14
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rcx), %rsi
	movq	(%r14), %rdx
	movslq	%r15d, %r13
	movq	(%rdx,%r13,8), %rbx
	cmpq	(%rbx), %rsi
	jne	LBB0_4
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	incl	%r15d
	movl	%r15d, %r12d
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r14), %rdx
	movslq	%r15d, %r13
	movq	(%rdx,%r13,8), %rbx
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movslq	%eax, %rcx
	leal	1(%r15), %r12d
	cmpl	%r12d, %ecx
	cmovgl	%ecx, %r12d
	movq	(%rbx), %rax
	leaq	1(%r13), %rsi
	movq	_mcset_mc_basename@GOTPCREL(%rip), %r14
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%rcx, %rsi
	jge	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	(%rdx,%rsi,8), %rdi
	incq	%rsi
	cmpq	(%rdi), %rax
	je	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	decl	%esi
	movl	%esi, %r12d
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rax), %edi
	callq	_convert_unicode_to_ACP
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_strlen
	movl	%eax, %ebx
	movq	(%r14), %rdi
	callq	_strlen
	movl	%eax, %r14d
	movq	_mcset_rc_dir@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	addl	%ebx, %r14d
	leal	(%rax,%r14), %edi
	addl	$6, %edi
	callq	_xmalloc
	movq	%rax, %rbx
	movq	_mcset_rc_dir@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_strcpy
	movq	_mcset_prefix_bin@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_strlen
	cltq
	movq	%rbx, %rdi
	addq	%rax, %rdi
	movq	_mcset_mc_basename@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str(%rip), %rsi
	callq	_sprintf
	jmp	LBB0_10
LBB0_14:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mc_nodes_lang_count,4,2        ## @mc_nodes_lang_count
	.comm	_mc_nodes_lang,8,3              ## @mc_nodes_lang
	.comm	_mcset_mc_basename,8,3          ## @mcset_mc_basename
	.comm	_mcset_rc_dir,8,3               ## @mcset_rc_dir
	.comm	_mcset_prefix_bin,8,3           ## @mcset_prefix_bin
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s_"

L_.str.1:                               ## @.str.1
	.asciz	".bin"

	.no_dead_strip	_write_bin
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_bin
_write_bin:                             ; @write_bin
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
Lloh0:
	adrp	x8, _mc_nodes_lang_count@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mc_nodes_lang_count@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.1:
	mov	x20, #0
	mov	w28, #0
Lloh3:
	adrp	x25, _mc_nodes_lang@GOTPAGE
Lloh4:
	ldr	x25, [x25, _mc_nodes_lang@GOTPAGEOFF]
Lloh5:
	adrp	x26, _mcset_mc_basename@GOTPAGE
Lloh6:
	ldr	x26, [x26, _mcset_mc_basename@GOTPAGEOFF]
Lloh7:
	adrp	x27, _mcset_rc_dir@GOTPAGE
Lloh8:
	ldr	x27, [x27, _mcset_rc_dir@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	mov	x1, x21
	bl	_strcat
	mov	x0, x22
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcat
	ldr	x8, [x25]
	add	x1, x8, x19, lsl #3
	sub	w2, w24, w28
	mov	x0, x22
	bl	_windmc_write_bin
	mov	x0, x22
	bl	_free
Lloh11:
	adrp	x8, _mc_nodes_lang_count@GOTPAGE
Lloh12:
	ldr	x8, [x8, _mc_nodes_lang_count@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x28, x24
	cmp	w24, w8
	b.ge	LBB0_15
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	cbz	x20, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x11, [x20]
	ldr	x9, [x25]
	ldr	x10, [x9, w28, sxtw #3]
	ldr	x12, [x10]
	cmp	x11, x12
	b.eq	LBB0_14
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x11, x28
	sxtw	x19, w11
	mov	x20, x10
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x25]
	sxtw	x19, w28
	ldr	x20, [x9, w28, sxtw #3]
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	sxtw	x10, w8
	add	w11, w28, #1
	cmp	w8, w11
	csinc	w24, w8, w28, gt
	ldr	x8, [x20]
	add	x11, x19, #1
LBB0_9:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	x11, x10
	b.ge	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	x12, [x9, x11, lsl #3]
	ldr	x12, [x12]
	add	x11, x11, #1
	cmp	x8, x12
	b.eq	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	sub	w24, w11, #1
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x8]
	bl	_convert_unicode_to_ACP
	mov	x21, x0
	bl	_strlen
	mov	x22, x0
	ldr	x0, [x26]
	bl	_strlen
	mov	x23, x0
	ldr	x0, [x27]
	bl	_strlen
	add	w8, w22, w23
	add	w8, w8, w0
	add	w0, w8, #6
	bl	_xmalloc
	mov	x22, x0
	ldr	x1, [x27]
	bl	_strcpy
Lloh14:
	adrp	x8, _mcset_prefix_bin@GOTPAGE
Lloh15:
	ldr	x8, [x8, _mcset_prefix_bin@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	bl	_strlen
	add	x0, x22, w0, sxtw
	ldr	x2, [x26]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	bl	_sprintf
	b	LBB0_2
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w24, w28, #1
	b	LBB0_3
LBB0_15:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_mc_nodes_lang_count,4,2        ; @mc_nodes_lang_count
	.comm	_mc_nodes_lang,8,3              ; @mc_nodes_lang
	.comm	_mcset_mc_basename,8,3          ; @mcset_mc_basename
	.comm	_mcset_rc_dir,8,3               ; @mcset_rc_dir
	.comm	_mcset_prefix_bin,8,3           ; @mcset_prefix_bin
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s_"

l_.str.1:                               ; @.str.1
	.asciz	".bin"

	.no_dead_strip	_write_bin
.subsections_via_symbols
