	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function res_to_bin_toolbar
_res_to_bin_toolbar:                    ## @res_to_bin_toolbar
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r14d
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	movq	%rdi, %r13
	movl	(%r15), %edx
	callq	_windres_put_32
	movl	4(%r15), %edx
	movq	%r13, %rdi
	callq	_windres_put_32
	movl	8(%r15), %edx
	movq	%r13, %rdi
	callq	_windres_put_32
	movq	_BIN_TOOLBAR_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-80(%rbp), %rsi
	movq	%r13, %rdi
	movl	%r14d, %edx
	callq	_set_windres_bfd_content
	movl	8(%r15), %edi
	testl	%edi, %edi
	jle	LBB0_7
## %bb.2:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	shll	$2, %edi
	callq	_reswr_alloc
	movq	16(%r15), %r14
	testq	%r14, %r14
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_3
## %bb.4:
	xorl	%ebx, %ebx
	movq	%rax, %r12
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r14), %edx
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_windres_put_32
	movq	(%r14), %r14
	addq	$96, %r12
	addl	$4, %ebx
	testq	%r14, %r14
	jne	LBB0_5
	jmp	LBB0_6
LBB0_3:
	xorl	%ebx, %ebx
LBB0_6:
	movq	_BIN_TOOLBAR_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	addl	%r14d, %edx
	movq	%r13, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%ebx, %ecx
	callq	_set_windres_bfd_content
LBB0_7:
	movq	_BIN_TOOLBAR_SIZE@GOTPCREL(%rip), %rax
	movl	8(%r15), %ecx
	addl	(%rax), %r14d
	leal	(%r14,%rcx,4), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BIN_TOOLBAR_SIZE,4,2           ## @BIN_TOOLBAR_SIZE
	.no_dead_strip	_res_to_bin_toolbar
.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_toolbar
_res_to_bin_toolbar:                    ; @res_to_bin_toolbar
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x20, x2
	mov	x19, x1
Lloh0:
	adrp	x25, _BIN_TOOLBAR_SIZE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _BIN_TOOLBAR_SIZE@GOTPAGEOFF]
	cbz	x0, LBB0_7
; %bb.1:
	mov	x21, x0
	ldr	w2, [x20]
	bl	_windres_put_32
	ldr	w2, [x20, #4]
	mov	x0, x21
	bl	_windres_put_32
	ldr	w2, [x20, #8]
	mov	x0, x21
	bl	_windres_put_32
	ldr	w3, [x25]
	add	x1, sp, #8
	mov	x0, x21
	mov	x2, x19
	bl	_set_windres_bfd_content
	ldr	w8, [x20, #8]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.2:
	lsl	w0, w8, #2
	bl	_reswr_alloc
	mov	x22, x0
	ldr	x26, [x20, #16]
	cbz	x26, LBB0_5
; %bb.3:
	mov	w23, #0
	mov	x24, x22
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x26, #8]
	mov	x0, x21
	mov	x1, x24
	bl	_windres_put_32
	ldr	x26, [x26]
	add	x24, x24, #96
	add	w23, w23, #4
	cbnz	x26, LBB0_4
	b	LBB0_6
LBB0_5:
	mov	w23, #0
LBB0_6:
	ldr	w8, [x25]
	add	w2, w8, w19
	mov	x0, x21
	mov	x1, x22
	mov	x3, x23
	bl	_set_windres_bfd_content
LBB0_7:
	ldr	w8, [x25]
	ldr	w9, [x20, #8]
	add	w8, w8, w19
	add	w0, w8, w9, lsl #2
	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
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_BIN_TOOLBAR_SIZE,4,2           ; @BIN_TOOLBAR_SIZE
	.no_dead_strip	_res_to_bin_toolbar
.subsections_via_symbols
