	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function res_to_bin_menuitems
_res_to_bin_menuitems:                  ## @res_to_bin_menuitems
	.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
	movl	%esi, %r15d
	testq	%rdx, %rdx
	je	LBB0_17
## %bb.1:
	movq	%rdx, %rbx
	movq	%rdi, %r14
	movq	_BIN_MENUITEM_POPUP_SIZE@GOTPCREL(%rip), %r13
	movq	_BIN_MENUITEM_SIZE@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_17
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testq	%r14, %r14
	je	LBB0_12
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	cmpq	$0, 24(%rbx)
	movl	$0, %edx
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_MENUITEM_ENDMENU@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	orl	(%rbx), %edx
	cmpq	$0, 8(%rbx)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_MENUITEM_POPUP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	orl	%eax, %edx
	movl	-44(%rbp), %esi
	movq	%r14, %rdi
	callq	_windres_put_16
	movq	8(%rbx), %rax
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-48(%rbp), %esi
	movl	4(%rbx), %edx
	movq	%r14, %rdi
	callq	_windres_put_16
	movq	8(%rbx), %rax
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rcx
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rcx
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rcx), %rcx
	movq	%r14, %rdi
	leaq	-48(%rbp), %rsi
	movl	%r15d, %edx
	callq	_set_windres_bfd_content
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 8(%rbx)
	movq	%r13, %rax
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rax
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	addl	(%rax), %r15d
	movl	16(%rbx), %edx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_unicode_to_bin
	movl	%eax, %r15d
	movq	8(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_res_to_bin_menuitems
	movl	%eax, %r15d
	jmp	LBB0_16
LBB0_17:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MENUITEM_ENDMENU,4,2           ## @MENUITEM_ENDMENU
	.comm	_MENUITEM_POPUP,4,2             ## @MENUITEM_POPUP
	.comm	_BIN_MENUITEM_SIZE,8,3          ## @BIN_MENUITEM_SIZE
	.comm	_BIN_MENUITEM_POPUP_SIZE,8,3    ## @BIN_MENUITEM_POPUP_SIZE
	.no_dead_strip	_res_to_bin_menuitems
.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_menuitems
_res_to_bin_menuitems:                  ; @res_to_bin_menuitems
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x21, x1
	cbz	x2, LBB0_9
; %bb.1:
	mov	x19, x2
	mov	x20, x0
Lloh0:
	adrp	x22, _BIN_MENUITEM_SIZE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _BIN_MENUITEM_SIZE@GOTPAGEOFF]
Lloh2:
	adrp	x23, _BIN_MENUITEM_POPUP_SIZE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _BIN_MENUITEM_POPUP_SIZE@GOTPAGEOFF]
Lloh4:
	adrp	x24, _MENUITEM_ENDMENU@GOTPAGE
Lloh5:
	ldr	x24, [x24, _MENUITEM_ENDMENU@GOTPAGEOFF]
Lloh6:
	adrp	x25, _MENUITEM_POPUP@GOTPAGE
Lloh7:
	ldr	x25, [x25, _MENUITEM_POPUP@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x19, [x19, #24]
	cbz	x19, LBB0_9
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x20, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #8]
	ldr	w9, [x19]
	ldr	x10, [x19, #24]
	ldr	w11, [x24]
	cmp	x10, #0
	csel	w10, w11, wzr, eq
	orr	w9, w10, w9
	ldr	w10, [x25]
	cmp	x8, #0
	csel	w8, wzr, w10, eq
	orr	w2, w9, w8
	ldr	w1, [sp, #12]
	mov	x0, x20
	bl	_windres_put_16
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [sp, #8]
	ldr	w2, [x19, #4]
	mov	x0, x20
	bl	_windres_put_16
	ldr	x8, [x19, #8]
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	x8, #0
	csel	x8, x22, x23, eq
	ldr	x3, [x8]
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, x21
	bl	_set_windres_bfd_content
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #8]
	cmp	x8, #0
	csel	x8, x22, x23, eq
	ldr	w8, [x8]
	add	w1, w21, w8
	ldr	w2, [x19, #16]
	mov	x0, x20
	bl	_unicode_to_bin
	mov	x21, x0
	ldr	x2, [x19, #8]
	cbz	x2, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_res_to_bin_menuitems
	mov	x21, x0
	b	LBB0_2
LBB0_9:
	mov	x0, x21
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MENUITEM_ENDMENU,4,2           ; @MENUITEM_ENDMENU
	.comm	_MENUITEM_POPUP,4,2             ; @MENUITEM_POPUP
	.comm	_BIN_MENUITEM_SIZE,8,3          ; @BIN_MENUITEM_SIZE
	.comm	_BIN_MENUITEM_POPUP_SIZE,8,3    ; @BIN_MENUITEM_POPUP_SIZE
	.no_dead_strip	_res_to_bin_menuitems
.subsections_via_symbols
