	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function bin_to_res_menuexitems
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_bin_to_res_menuexitems:                ## @bin_to_res_menuexitems
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	$0, -88(%rbp)
	movl	$0, (%rcx)
	testl	%edx, %edx
	jle	LBB0_1
## %bb.2:
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	leaq	-88(%rbp), %r13
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	cmpl	$15, %r15d
	ja	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_toosmall
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	$56, %edi
	callq	_res_alloc
	movq	%rax, %r13
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	$4, %edx
	callq	_windres_get_32
	movq	%rax, 48(%r13)
	leaq	16(%r12), %rsi
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_windres_get_32
	movq	%rax, 40(%r13)
	leaq	32(%r12), %rsi
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_windres_get_32
	movq	%rax, 32(%r13)
	leaq	48(%r12), %rsi
	movq	%r14, %rdi
	movl	$2, %edx
	callq	_windres_get_16
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leaq	56(%r12), %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$2, %edx
	callq	_windres_get_16
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	leal	-14(%r15), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	leaq	-44(%rbp), %rcx
	callq	_get_unicode
	movl	-44(%rbp), %edx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	$0, -44(%rbp)
	xorl	%edx, %edx
	xorl	%eax, %eax
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 24(%r13)
	leal	(%rdx,%rdx), %ebx
	addl	$19, %ebx
	andl	$-4, %ebx
	testb	$1, -80(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r13)
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	leal	4(%rbx), %r14d
	movl	%r15d, %eax
	subl	%r14d, %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	jge	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_toosmall
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	movslq	%ebx, %rax
	leaq	(%r12,%rax,4), %rsi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_windres_get_32
	movq	%rax, 16(%r13)
	movslq	%r14d, %rax
	leaq	(%r12,%rax,4), %rsi
	movq	%rbx, %rdi
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	leaq	-64(%rbp), %rcx
	callq	_bin_to_res_menuexitems
	movq	%rax, 8(%r13)
	addl	-64(%rbp), %r14d
	movl	%r14d, %ebx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	$0, (%r13)
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	%r13, (%rax)
	addl	%ebx, (%rcx)
	movq	-88(%rbp), %rax
	testb	$-128, -80(%rbp)                ## 1-byte Folded Reload
	jne	LBB0_15
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	movslq	%ebx, %rdx
	leaq	(%r12,%rdx,4), %r12
	subl	%ebx, %r15d
	jg	LBB0_4
	jmp	LBB0_15
LBB0_1:
	xorl	%eax, %eax
LBB0_15:
	addq	$56, %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	"menuitem header"

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

	.no_dead_strip	_bin_to_res_menuexitems
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bin_to_res_menuexitems
_bin_to_res_menuexitems:                ; @bin_to_res_menuexitems
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	str	xzr, [sp, #8]
	str	wzr, [x3]
	cmp	w2, #1
	b.lt	LBB0_14
; %bb.1:
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	add	x28, sp, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w20, #15
	b.hi	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	bl	_toosmall
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #56
	bl	_res_alloc
	mov	x25, x0
	mov	x0, x22
	mov	x1, x21
	mov	w2, #4
	bl	_windres_get_32
	str	x0, [x25, #48]
	add	x1, x21, #16
	mov	x0, x22
	mov	w2, #4
	bl	_windres_get_32
	str	x0, [x25, #40]
	add	x1, x21, #32
	mov	x0, x22
	mov	w2, #4
	bl	_windres_get_32
	str	x0, [x25, #32]
	add	x1, x21, #48
	mov	x0, x22
	mov	w2, #2
	bl	_windres_get_16
	mov	x26, x0
	add	x27, x21, #56
	mov	x0, x22
	mov	x1, x27
	mov	w2, #2
	bl	_windres_get_16
	cbz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w2, w20, #14
	add	x3, sp, #4
	mov	x0, x22
	mov	x1, x27
	bl	_get_unicode
	ldr	w8, [sp, #4]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w8, #0
	str	wzr, [sp, #4]
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	str	x0, [x25, #24]
	sbfiz	x8, x8, #1, #32
	add	x8, x8, #19
	and	x24, x8, #0xfffffffffffffffc
	tbnz	w26, #0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	stp	xzr, xzr, [x25, #8]
	b	LBB0_12
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x23, x24, #4
	subs	w27, w20, w23
	b.ge	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	bl	_toosmall
LBB0_11:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x1, x21, w24, sxtw #2
	mov	x0, x22
	mov	w2, #4
	bl	_windres_get_32
	str	x0, [x25, #16]
	add	x1, x21, x23, lsl #2
	mov	x3, sp
	mov	x0, x22
	mov	x2, x27
	bl	_bin_to_res_menuexitems
	str	x0, [x25, #8]
	ldr	w8, [sp]
	add	w24, w8, w23
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
	str	xzr, [x25]
	str	x25, [x28]
	ldr	w8, [x19]
	add	w8, w8, w24
	str	w8, [x19]
	ldr	x0, [sp, #8]
	tbnz	w26, #7, LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_2 Depth=1
	add	x21, x21, w24, sxtw #2
	sub	w20, w20, w24
	mov	x28, x25
	cmp	w20, #0
	b.gt	LBB0_2
	b	LBB0_15
LBB0_14:
	mov	x0, #0
LBB0_15:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"menuitem header"

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

	.no_dead_strip	_bin_to_res_menuexitems
.subsections_via_symbols
