	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function define_group_cursor_rcdata
_define_group_cursor_rcdata:            ## @define_group_cursor_rcdata
	.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	%rsi, -80(%rbp)                 ## 8-byte Spill
	movl	%edi, -60(%rbp)                 ## 4-byte Spill
	leaq	-44(%rbp), %rsi
	movq	%rdx, %rdi
	callq	_rcdata_render_as_buffer
	movl	-44(%rbp), %edx
	cmpl	$6, %edx
	jl	LBB0_1
## %bb.3:
	movq	%rax, %r14
	movq	_wrtarget@GOTPCREL(%rip), %rbx
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_6 Depth=1
	addq	$56, %r13
	movq	%r13, %r14
	movq	_wrtarget@GOTPCREL(%rip), %rbx
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$6, %edx
	jl	LBB0_2
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	leaq	8(%r14), %rsi
	addl	$-2, %edx
	movq	%rbx, %rdi
	callq	_windres_get_16
	movzwl	%ax, %r15d
	cmpl	$2, %r15d
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	leaq	L_.str(%rip), %rdi
	callq	__
	movslq	%eax, %rdi
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_fatal
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	leaq	16(%r14), %rsi
	movl	-44(%rbp), %edx
	addl	$-4, %edx
	movq	%rbx, %rdi
	callq	_windres_get_16
	movq	%rax, %r15
	movl	-44(%rbp), %edx
	addl	$-6, %edx
	movl	%edx, -44(%rbp)
	addq	$24, %r14
	testl	%r15d, %r15d
	jle	LBB0_5
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=2
	movl	$56, %edi
	callq	_res_alloc
	movq	%rax, %r12
	movq	$0, (%rax)
	movl	-44(%rbp), %edx
	movq	_wrtarget@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_windres_get_16
	movq	%rax, 48(%r12)
	movl	-44(%rbp), %edx
	addl	$-2, %edx
	leaq	8(%r13), %rsi
	movq	%rbx, %rdi
	callq	_windres_get_16
	movq	%rax, 40(%r12)
	movl	-44(%rbp), %edx
	addl	$-4, %edx
	leaq	16(%r13), %rsi
	movq	%rbx, %rdi
	callq	_windres_get_16
	movq	%rax, 32(%r12)
	movl	-44(%rbp), %edx
	addl	$-6, %edx
	leaq	24(%r13), %rsi
	movq	%rbx, %rdi
	callq	_windres_get_16
	movq	%rax, 24(%r12)
	movl	-44(%rbp), %edx
	addl	$-8, %edx
	leaq	32(%r13), %rsi
	movq	%rbx, %rdi
	callq	_windres_get_32
	movl	%eax, 16(%r12)
	movl	-44(%rbp), %edx
	addl	$-12, %edx
	leaq	48(%r13), %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_windres_get_16
	movq	%rax, 8(%r12)
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%r12, (%rax)
LBB0_15:                                ##   in Loop: Header=BB0_10 Depth=2
	movl	-44(%rbp), %edx
	addl	$-14, %edx
	movl	%edx, -44(%rbp)
	addq	$8, %r14
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	decl	%r15d
	je	LBB0_4
LBB0_10:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %r13
	cmpl	$13, %edx
	jg	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_fatal
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=2
	movq	%r12, %rax
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_15
LBB0_1:
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
LBB0_2:
	movq	_RT_GROUP_ICON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %ecx
	movq	_resources@GOTPCREL(%rip), %rdi
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	xorl	%r8d, %r8d
	callq	_define_standard_resource
	movq	_RES_TYPE_GROUP_CURSOR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rax)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 8(%rax)
	movl	(%rbx), %ecx
	movl	%ecx, (%rax)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_wrtarget,4,2                   ## @wrtarget
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unexpected group cursor type %d"

L_.str.1:                               ## @.str.1
	.asciz	"too small group icon rcdata"

	.comm	_resources,4,2                  ## @resources
	.comm	_RT_GROUP_ICON,4,2              ## @RT_GROUP_ICON
	.comm	_RES_TYPE_GROUP_CURSOR,4,2      ## @RES_TYPE_GROUP_CURSOR
	.no_dead_strip	_define_group_cursor_rcdata
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function define_group_cursor_rcdata
_define_group_cursor_rcdata:            ; @define_group_cursor_rcdata
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	str	w0, [sp, #8]                    ; 4-byte Folded Spill
	add	x1, sp, #12
	mov	x0, x2
	bl	_rcdata_render_as_buffer
	ldr	w8, [sp, #12]
	cmp	w8, #6
	b.lt	LBB0_13
; %bb.1:
	mov	x25, x0
	mov	x28, #0
	mov	x20, #0
Lloh0:
	adrp	x21, _wrtarget@GOTPAGE
Lloh1:
	ldr	x21, [x21, _wrtarget@GOTPAGEOFF]
Lloh2:
	adrp	x22, l_.str.1@PAGE
Lloh3:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh4:
	adrp	x23, l_.str@PAGE
Lloh5:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x26, #56
	mov	x20, x27
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, #6
	b.lt	LBB0_14
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	add	x1, x25, #8
	sub	w2, w8, #2
	mov	x0, x21
	bl	_windres_get_16
	and	w24, w0, #0xffff
	cmp	w24, #2
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	bl	__
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x0, w0
	str	x24, [sp]
	bl	_fatal
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x1, x25, #16
	ldr	w8, [sp, #12]
	sub	w2, w8, #4
	mov	x0, x21
	bl	_windres_get_16
	mov	x24, x0
	ldr	w8, [sp, #12]
	sub	w8, w8, #6
	str	w8, [sp, #12]
	add	x25, x25, #24
	cmp	w24, #1
	b.ge	LBB0_10
	b	LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_10 Depth=2
	mov	w0, #56
	bl	_res_alloc
	mov	x27, x0
	str	xzr, [x0]
	ldr	w2, [sp, #12]
	mov	x0, x21
	mov	x1, x26
	bl	_windres_get_16
	str	x0, [x27, #48]
	ldr	w8, [sp, #12]
	sub	w2, w8, #2
	add	x1, x26, #8
	mov	x0, x21
	bl	_windres_get_16
	str	x0, [x27, #40]
	ldr	w8, [sp, #12]
	sub	w2, w8, #4
	add	x1, x26, #16
	mov	x0, x21
	bl	_windres_get_16
	str	x0, [x27, #32]
	ldr	w8, [sp, #12]
	sub	w2, w8, #6
	add	x1, x26, #24
	mov	x0, x21
	bl	_windres_get_16
	str	x0, [x27, #24]
	ldr	w8, [sp, #12]
	sub	w2, w8, #8
	add	x1, x26, #32
	mov	x0, x21
	bl	_windres_get_32
	str	w0, [x27, #16]
	ldr	w8, [sp, #12]
	sub	w2, w8, #12
	add	x25, x26, #48
	mov	x0, x21
	mov	x1, x25
	bl	_windres_get_16
	str	x0, [x27, #8]
	cbz	x28, LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_10 Depth=2
	str	x27, [x20]
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	ldr	w8, [sp, #12]
	sub	w8, w8, #14
	str	w8, [sp, #12]
	add	x25, x25, #8
	mov	x20, x27
	subs	w24, w24, #1
	b.eq	LBB0_2
LBB0_10:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x26, x25
	cmp	w8, #13
	b.gt	LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	mov	x0, x22
	bl	_fatal
	b	LBB0_7
LBB0_12:                                ;   in Loop: Header=BB0_10 Depth=2
	mov	x28, x27
	b	LBB0_9
LBB0_13:
	mov	x28, #0
LBB0_14:
Lloh6:
	adrp	x8, _RT_GROUP_ICON@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RT_GROUP_ICON@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	w3, [x19]
Lloh9:
	adrp	x0, _resources@GOTPAGE
Lloh10:
	ldr	x0, [x0, _resources@GOTPAGEOFF]
	ldr	w2, [sp, #8]                    ; 4-byte Folded Reload
	mov	w4, #0
	bl	_define_standard_resource
Lloh11:
	adrp	x8, _RES_TYPE_GROUP_CURSOR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RES_TYPE_GROUP_CURSOR@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x0, #16]
	str	x28, [x0, #8]
	ldr	w8, [x19]
	str	w8, [x0]
	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
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_wrtarget,4,2                   ; @wrtarget
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unexpected group cursor type %d"

l_.str.1:                               ; @.str.1
	.asciz	"too small group icon rcdata"

	.comm	_resources,4,2                  ; @resources
	.comm	_RT_GROUP_ICON,4,2              ; @RT_GROUP_ICON
	.comm	_RES_TYPE_GROUP_CURSOR,4,2      ; @RES_TYPE_GROUP_CURSOR
	.no_dead_strip	_define_group_cursor_rcdata
.subsections_via_symbols
