	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bin_to_res_group_cursor
_bin_to_res_group_cursor:               ## @bin_to_res_group_cursor
	.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	$24, %rsp
	.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, %rbx
	movq	%rdi, %r15
	cmpl	$5, %edx
	jg	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_toosmall
LBB0_2:
	leaq	8(%rbx), %rsi
	movq	%r15, %rdi
	movl	$2, %edx
	callq	_windres_get_16
	movq	%rax, %r12
	cmpl	$2, %r12d
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movl	%r12d, %esi
	callq	_fatal
LBB0_4:
	leaq	16(%rbx), %rsi
	movq	%r15, %rdi
	movl	$2, %edx
	callq	_windres_get_16
	movq	%rax, %r12
	movq	$0, -48(%rbp)
	testl	%r12d, %r12d
	jle	LBB0_5
## %bb.6:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	addl	$-6, %r14d
	addq	$24, %rbx
	leaq	-48(%rbp), %r13
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movl	$56, %edi
	callq	_res_alloc
	movq	%rax, %r13
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	$2, %edx
	callq	_windres_get_16
	movq	%rax, 48(%r13)
	leaq	8(%rbx), %rsi
	movq	%r15, %rdi
	movl	$2, %edx
	callq	_windres_get_16
	movq	%rax, 40(%r13)
	leaq	16(%rbx), %rsi
	movq	%r15, %rdi
	movl	$2, %edx
	callq	_windres_get_16
	movq	%rax, 32(%r13)
	leaq	24(%rbx), %rsi
	movq	%r15, %rdi
	movl	$2, %edx
	callq	_windres_get_16
	movq	%rax, 24(%r13)
	leaq	32(%rbx), %rsi
	movq	%r15, %rdi
	movl	$4, %edx
	callq	_windres_get_32
	movl	%eax, 16(%r13)
	leaq	48(%rbx), %rsi
	movq	%r15, %rdi
	movl	$2, %edx
	callq	_windres_get_16
	movq	%rax, 8(%r13)
	movq	$0, (%r13)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%r13, (%rax)
	addl	$-14, %r14d
	addq	$56, %rbx
	decl	%r12d
	je	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	cmpl	$13, %r14d
	jg	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_toosmall
	jmp	LBB0_9
LBB0_10:
	movq	-48(%rbp), %rbx
	jmp	LBB0_11
LBB0_5:
	xorl	%ebx, %ebx
LBB0_11:
	movl	$16, %edi
	callq	_res_alloc
	movq	_RES_TYPE_GROUP_CURSOR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	movq	%rbx, (%rax)
	addq	$24, %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	"group cursor header"

L_.str.1:                               ## @.str.1
	.asciz	"unexpected group cursor type %d"

L_.str.2:                               ## @.str.2
	.asciz	"group cursor"

	.comm	_RES_TYPE_GROUP_CURSOR,4,2      ## @RES_TYPE_GROUP_CURSOR
	.no_dead_strip	_bin_to_res_group_cursor
.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_group_cursor
_bin_to_res_group_cursor:               ; @bin_to_res_group_cursor
	.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	x22, x2
	mov	x21, x1
	mov	x19, x0
	cmp	w2, #5
	b.gt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	bl	_toosmall
LBB0_2:
	add	x1, x21, #8
	mov	x0, x19
	mov	w2, #2
	bl	_windres_get_16
	mov	x20, x0
	cmp	w20, #2
	b.eq	LBB0_4
; %bb.3:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	mov	x1, x20
	bl	_fatal
LBB0_4:
	add	x1, x21, #16
	mov	x0, x19
	mov	w2, #2
	bl	_windres_get_16
	mov	x20, x0
	str	xzr, [sp, #8]
	cmp	w20, #1
	b.lt	LBB0_10
; %bb.5:
	sub	w24, w22, #6
	add	x21, x21, #24
	add	x25, sp, #8
Lloh4:
	adrp	x22, l_.str.2@PAGE
Lloh5:
	add	x22, x22, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	w0, #56
	bl	_res_alloc
	mov	x23, x0
	mov	x0, x19
	mov	x1, x21
	mov	w2, #2
	bl	_windres_get_16
	str	x0, [x23, #48]
	add	x1, x21, #8
	mov	x0, x19
	mov	w2, #2
	bl	_windres_get_16
	str	x0, [x23, #40]
	add	x1, x21, #16
	mov	x0, x19
	mov	w2, #2
	bl	_windres_get_16
	str	x0, [x23, #32]
	add	x1, x21, #24
	mov	x0, x19
	mov	w2, #2
	bl	_windres_get_16
	str	x0, [x23, #24]
	add	x1, x21, #32
	mov	x0, x19
	mov	w2, #4
	bl	_windres_get_32
	str	w0, [x23, #16]
	add	x1, x21, #48
	mov	x0, x19
	mov	w2, #2
	bl	_windres_get_16
	stp	xzr, x0, [x23]
	str	x23, [x25]
	sub	w24, w24, #14
	add	x21, x21, #56
	mov	x25, x23
	subs	w20, w20, #1
	b.eq	LBB0_9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w24, #13
	b.gt	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x22
	bl	__
	bl	_toosmall
	b	LBB0_6
LBB0_9:
	ldr	x19, [sp, #8]
	b	LBB0_11
LBB0_10:
	mov	x19, #0
LBB0_11:
	mov	w0, #16
	bl	_res_alloc
Lloh6:
	adrp	x8, _RES_TYPE_GROUP_CURSOR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RES_TYPE_GROUP_CURSOR@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x0, #8]
	str	x19, [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	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"group cursor header"

l_.str.1:                               ; @.str.1
	.asciz	"unexpected group cursor type %d"

l_.str.2:                               ; @.str.2
	.asciz	"group cursor"

	.comm	_RES_TYPE_GROUP_CURSOR,4,2      ; @RES_TYPE_GROUP_CURSOR
	.no_dead_strip	_bin_to_res_group_cursor
.subsections_via_symbols
