	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function res_to_bin_menu
_res_to_bin_menu:                       ## @res_to_bin_menu
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	%rdx, %rdi
	callq	_extended_menu
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	testl	%eax, %eax
	je	LBB0_2
## %bb.8:
	movl	$1, %edx
	callq	_windres_put_16
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_windres_put_16
	movl	4(%r15), %edx
	movq	%rbx, %rdi
	callq	_windres_put_32
	movq	_BIN_MENUEX_SIZE@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_set_windres_bfd_content
	addl	(%r12), %r14d
	jmp	LBB0_9
LBB0_3:
	testl	%eax, %eax
	jne	LBB0_4
## %bb.5:
	movq	_BIN_MENU_SIZE@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_2:
	xorl	%edx, %edx
	callq	_windres_put_16
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_windres_put_16
	movq	_BIN_MENU_SIZE@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_set_windres_bfd_content
	addl	(%r12), %r14d
	jmp	LBB0_7
LBB0_4:
	movq	_BIN_MENUEX_SIZE@GOTPCREL(%rip), %rcx
LBB0_6:
	addl	(%rcx), %r14d
	testl	%eax, %eax
	je	LBB0_7
LBB0_9:
	movl	(%r15), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_res_to_bin_menuexitems
	jmp	LBB0_10
LBB0_7:
	movl	(%r15), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_res_to_bin_menuitems
LBB0_10:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BIN_MENU_SIZE,8,3              ## @BIN_MENU_SIZE
	.comm	_BIN_MENUEX_SIZE,8,3            ## @BIN_MENUEX_SIZE
	.no_dead_strip	_res_to_bin_menu
.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_menu
_res_to_bin_menu:                       ; @res_to_bin_menu
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	mov	x0, x2
	bl	_extended_menu
	cbz	x19, LBB0_3
; %bb.1:
	cbz	w0, LBB0_5
; %bb.2:
	mov	x0, x19
	mov	w2, #1
	bl	_windres_put_16
	mov	x0, x19
	mov	w2, #4
	bl	_windres_put_16
	ldr	w2, [x20, #4]
	mov	x0, x19
	bl	_windres_put_32
Lloh0:
	adrp	x22, _BIN_MENUEX_SIZE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _BIN_MENUEX_SIZE@GOTPAGEOFF]
	ldr	x3, [x22]
	mov	x1, sp
	mov	x0, x19
	mov	x2, x21
	bl	_set_windres_bfd_content
	ldr	w8, [x22]
	add	w1, w8, w21
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x8, _BIN_MENUEX_SIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BIN_MENUEX_SIZE@GOTPAGEOFF]
Lloh4:
	adrp	x9, _BIN_MENU_SIZE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _BIN_MENU_SIZE@GOTPAGEOFF]
	cmp	w0, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	add	w1, w8, w21
	cbz	w0, LBB0_6
LBB0_4:
	ldr	w2, [x20]
	mov	x0, x19
	bl	_res_to_bin_menuexitems
	b	LBB0_7
LBB0_5:
	mov	x0, x19
	mov	w2, #0
	bl	_windres_put_16
	mov	x0, x19
	mov	w2, #0
	bl	_windres_put_16
Lloh6:
	adrp	x22, _BIN_MENU_SIZE@GOTPAGE
Lloh7:
	ldr	x22, [x22, _BIN_MENU_SIZE@GOTPAGEOFF]
	ldr	x3, [x22]
	mov	x1, sp
	mov	x0, x19
	mov	x2, x21
	bl	_set_windres_bfd_content
	ldr	w8, [x22]
	add	w1, w8, w21
LBB0_6:
	ldr	w2, [x20]
	mov	x0, x19
	bl	_res_to_bin_menuitems
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_BIN_MENU_SIZE,8,3              ; @BIN_MENU_SIZE
	.comm	_BIN_MENUEX_SIZE,8,3            ; @BIN_MENUEX_SIZE
	.no_dead_strip	_res_to_bin_menu
.subsections_via_symbols
