	.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_toolbar
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_bin_to_res_toolbar:                    ## @bin_to_res_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r15
	movl	$32, %edi
	callq	_res_alloc
	movq	%rax, %rbx
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	$4, %edx
	callq	_windres_get_32
	movq	%rax, 24(%rbx)
	leaq	16(%r12), %rsi
	movq	%r15, %rdi
	movl	$4, %edx
	callq	_windres_get_32
	movq	%rax, 16(%rbx)
	leaq	32(%r12), %rsi
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movl	$4, %edx
	callq	_windres_get_32
	movl	%eax, (%rbx)
	movq	%rbx, %r14
	movq	$0, 8(%rbx)
	testl	%eax, %eax
	jle	LBB0_6
## %bb.1:
	movq	%r14, %r13
	addq	$8, %r13
	addq	$48, %r12
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	$16, %r12
	movq	%rbx, (%rax)
	incl	%r15d
	cmpl	(%r14), %r15d
	jge	LBB0_6
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movl	$32, %edi
	callq	_res_alloc
	movq	%rax, %rbx
	movq	$0, 24(%rax)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movl	$4, %edx
	callq	_windres_get_32
	movl	%eax, 16(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rbx)
	movq	(%r13), %rcx
	movq	%r13, %rax
	testq	%rcx, %rcx
	je	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rcx, %rax
	movq	(%rcx), %rcx
	testq	%rcx, %rcx
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, 8(%rbx)
	jmp	LBB0_5
LBB0_6:
	movl	$16, %edi
	callq	_res_alloc
	movq	_RES_TYPE_TOOLBAR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	movq	%r14, (%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RES_TYPE_TOOLBAR,4,2           ## @RES_TYPE_TOOLBAR
	.no_dead_strip	_bin_to_res_toolbar
.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_toolbar
_bin_to_res_toolbar:                    ; @bin_to_res_toolbar
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	mov	x20, x0
	mov	w0, #32
	bl	_res_alloc
	mov	x19, x0
	mov	x0, x20
	mov	x1, x21
	mov	w2, #4
	bl	_windres_get_32
	str	x0, [x19, #24]
	add	x1, x21, #16
	mov	x0, x20
	mov	w2, #4
	bl	_windres_get_32
	str	x0, [x19, #16]
	add	x1, x21, #32
	mov	x0, x20
	mov	w2, #4
	bl	_windres_get_32
	str	w0, [x19]
	mov	x23, x19
	str	xzr, [x23, #8]!
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.1:
	mov	w24, #0
	add	x21, x21, #48
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #16
	str	x22, [x8]
	add	w24, w24, #1
	ldr	w8, [x19]
	cmp	w24, w8
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	mov	w0, #32
	bl	_res_alloc
	mov	x22, x0
	str	xzr, [x0, #24]
	mov	x0, x20
	mov	x1, x21
	mov	w2, #4
	bl	_windres_get_32
	str	w0, [x22, #16]
	stp	xzr, xzr, [x22]
	ldr	x9, [x23]
	mov	x8, x23
	cbz	x9, LBB0_2
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x8, x9
	ldr	x9, [x9]
	cbnz	x9, LBB0_4
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	str	x8, [x22, #8]
	b	LBB0_2
LBB0_6:
	mov	w0, #16
	bl	_res_alloc
Lloh0:
	adrp	x8, _RES_TYPE_TOOLBAR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RES_TYPE_TOOLBAR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #8]
	str	x19, [x0]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RES_TYPE_TOOLBAR,4,2           ; @RES_TYPE_TOOLBAR
	.no_dead_strip	_bin_to_res_toolbar
.subsections_via_symbols
