	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bin_to_res_accelerators
_bin_to_res_accelerators:               ## @bin_to_res_accelerators
	.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	%edx, %r14d
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	$0, -48(%rbp)
	leaq	-48(%rbp), %r12
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$32, %edi
	callq	_res_alloc
	movq	%rax, %rbx
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	$2, %edx
	callq	_windres_get_16
	movl	%eax, (%rbx)
	leaq	8(%r13), %rsi
	movq	%r15, %rdi
	movl	$2, %edx
	callq	_windres_get_16
	movq	%rax, 24(%rbx)
	leaq	16(%r13), %rsi
	movq	%r15, %rdi
	movl	$2, %edx
	callq	_windres_get_16
	movq	%rax, 16(%rbx)
	movq	$0, 8(%rbx)
	movq	%rbx, (%r12)
	leaq	8(%rbx), %r12
	movq	_ACC_LAST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	$-8, %r14d
	addq	$32, %r13
	testl	%eax, (%rbx)
	jne	LBB0_4
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$7, %r14d
	jg	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_toosmall
	jmp	LBB0_3
LBB0_4:
	movl	$16, %edi
	callq	_res_alloc
	movq	_RES_TYPE_ACCELERATOR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	movq	-48(%rbp), %rcx
	movq	%rcx, (%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"accelerator"

	.comm	_ACC_LAST,4,2                   ## @ACC_LAST
	.comm	_RES_TYPE_ACCELERATOR,4,2       ## @RES_TYPE_ACCELERATOR
	.no_dead_strip	_bin_to_res_accelerators
.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_accelerators
_bin_to_res_accelerators:               ; @bin_to_res_accelerators
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	str	xzr, [sp, #8]
	add	x25, sp, #8
Lloh0:
	adrp	x24, _ACC_LAST@GOTPAGE
Lloh1:
	ldr	x24, [x24, _ACC_LAST@GOTPAGEOFF]
Lloh2:
	adrp	x22, l_.str@PAGE
Lloh3:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #32
	bl	_res_alloc
	mov	x23, x0
	mov	x0, x21
	mov	x1, x20
	mov	w2, #2
	bl	_windres_get_16
	str	w0, [x23]
	add	x1, x20, #8
	mov	x0, x21
	mov	w2, #2
	bl	_windres_get_16
	str	x0, [x23, #24]
	add	x1, x20, #16
	mov	x0, x21
	mov	w2, #2
	bl	_windres_get_16
	str	x0, [x23, #16]
	mov	x8, x23
	str	xzr, [x8, #8]!
	str	x23, [x25]
	ldr	w9, [x23]
	ldr	w10, [x24]
	sub	w19, w19, #8
	add	x20, x20, #32
	mov	x25, x8
	and	w8, w10, w9
	cbnz	w8, LBB0_4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w19, #7
	b.gt	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x22
	bl	__
	bl	_toosmall
	b	LBB0_1
LBB0_4:
	mov	w0, #16
	bl	_res_alloc
Lloh4:
	adrp	x8, _RES_TYPE_ACCELERATOR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _RES_TYPE_ACCELERATOR@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [x0, #8]
	ldr	x8, [sp, #8]
	str	x8, [x0]
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"accelerator"

	.comm	_ACC_LAST,4,2                   ; @ACC_LAST
	.comm	_RES_TYPE_ACCELERATOR,4,2       ; @RES_TYPE_ACCELERATOR
	.no_dead_strip	_bin_to_res_accelerators
.subsections_via_symbols
