	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function res_to_bin_menuexitems
_res_to_bin_menuexitems:                ## @res_to_bin_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	$168, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.2:
	movq	%rdx, %r13
	movq	%rdi, %r15
	movq	_BIN_MENUITEMEX_SIZE@GOTPCREL(%rip), %r12
	movl	%ebx, %eax
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	addl	$4, %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_res_to_bin_menuexitems
	movl	%r14d, %ebx
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	32(%r13), %r13
	testq	%r13, %r13
	je	LBB0_10
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %r14d
	subl	%eax, %r14d
	andl	$3, %r14d
	addl	%eax, %r14d
	testq	%r15, %r15
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r12d, %r12d
	cmpq	$0, (%r13)
	setne	%r12b
	xorl	%eax, %eax
	cmpq	$0, 32(%r13)
	sete	%al
	shll	$7, %eax
	orl	%eax, %r12d
	movq	-184(%rbp), %rsi
	movl	24(%r13), %edx
	movq	%r15, %rdi
	callq	_windres_put_32
	movq	-192(%rbp), %rsi
	movl	20(%r13), %edx
	movq	%r15, %rdi
	callq	_windres_put_32
	movq	-200(%rbp), %rsi
	movl	16(%r13), %edx
	movq	%r15, %rdi
	callq	_windres_put_32
	movl	-208(%rbp), %esi
	movq	%r15, %rdi
	movl	%r12d, %edx
	movq	_BIN_MENUITEMEX_SIZE@GOTPCREL(%rip), %r12
	callq	_windres_put_16
	movl	(%r12), %ecx
	movq	%r15, %rdi
	leaq	-208(%rbp), %rsi
	movl	%r14d, %edx
	callq	_set_windres_bfd_content
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	addl	(%r12), %r14d
	movl	12(%r13), %edx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_unicode_to_bin
	movq	(%r13), %rdx
	testq	%rdx, %rdx
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %r14d
	subl	%eax, %ebx
	andl	$3, %ebx
	addl	%eax, %ebx
	testq	%r15, %r15
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	8(%r13), %edx
	movq	%r15, %rdi
	leaq	-176(%rbp), %rsi
	callq	_windres_put_32
	movq	%r15, %rdi
	leaq	-176(%rbp), %rsi
	movl	%ebx, %edx
	movl	$4, %ecx
	callq	_set_windres_bfd_content
	movq	(%r13), %rdx
	jmp	LBB0_8
LBB0_1:
	movl	%ebx, %eax
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_12
## %bb.11:
	addq	$168, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BIN_MENUITEMEX_SIZE,4,2        ## @BIN_MENUITEMEX_SIZE
	.no_dead_strip	_res_to_bin_menuexitems
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function res_to_bin_menuexitems
_res_to_bin_menuexitems:                ; @res_to_bin_menuexitems
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #240
	.cfi_def_cfa_offset 240
	stp	x24, x23, [sp, #176]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #192]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #208]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #224]            ; 16-byte Folded Spill
	add	x29, sp, #224
	.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
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	cbz	x2, LBB0_9
; %bb.1:
	mov	x20, x2
	mov	x21, x0
Lloh3:
	adrp	x24, _BIN_MENUITEMEX_SIZE@GOTPAGE
Lloh4:
	ldr	x24, [x24, _BIN_MENUITEMEX_SIZE@GOTPAGEOFF]
	mov	x0, x19
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w1, w22, #4
	mov	x0, x21
	bl	_res_to_bin_menuexitems
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x20, [x20, #32]
	cbz	x20, LBB0_10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sub	w8, w19, w0
	and	w8, w8, #0x3
	add	w22, w8, w0
	cbz	x21, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20]
	cmp	x8, #0
	cset	w23, ne
	ldr	x8, [x20, #32]
	cmp	x8, #0
	cset	w8, eq
	bfi	w23, w8, #7, #1
	ldr	x1, [sp, #32]
	ldr	w2, [x20, #24]
	mov	x0, x21
	bl	_windres_put_32
	ldr	x1, [sp, #24]
	ldr	w2, [x20, #20]
	mov	x0, x21
	bl	_windres_put_32
	ldr	x1, [sp, #16]
	ldr	w2, [x20, #16]
	mov	x0, x21
	bl	_windres_put_32
	ldr	w1, [sp, #8]
	mov	x0, x21
	mov	x2, x23
	bl	_windres_put_16
	ldr	w3, [x24]
	add	x1, sp, #8
	mov	x0, x21
	mov	x2, x22
	bl	_set_windres_bfd_content
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x24]
	add	w1, w8, w22
	ldr	w2, [x20, #12]
	mov	x0, x21
	bl	_unicode_to_bin
	ldr	x2, [x20]
	cbz	x2, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w8, w19, w0
	and	w8, w8, #0x3
	add	w22, w8, w0
	cbz	x21, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w2, [x20, #8]
	add	x1, sp, #40
	mov	x0, x21
	bl	_windres_put_32
	add	x1, sp, #40
	mov	x0, x21
	mov	x2, x22
	mov	w3, #4
	bl	_set_windres_bfd_content
	ldr	x2, [x20]
	b	LBB0_2
LBB0_9:
	mov	x0, x19
LBB0_10:
	ldur	x8, [x29, #-56]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	ldp	x29, x30, [sp, #224]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #208]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #192]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #176]            ; 16-byte Folded Reload
	add	sp, sp, #240
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_BIN_MENUITEMEX_SIZE,4,2        ; @BIN_MENUITEMEX_SIZE
	.no_dead_strip	_res_to_bin_menuexitems
.subsections_via_symbols
