	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function STATIC_LoadIconW
_STATIC_LoadIconW:                      ## @STATIC_LoadIconW
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rax
	shrq	$16, %rax
	testw	%ax, %ax
	je	LBB0_7
## %bb.1:
	movq	%rdi, %rbx
	movq	_SS_REALSIZEIMAGE@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_3
## %bb.2:
	movq	_IMAGE_ICON@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_LR_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%rbx, %rdi
	movl	%r14d, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_LoadImageW
	testq	%rax, %rax
	jne	LBB0_6
	jmp	LBB0_7
LBB0_3:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_LoadIconW
	testq	%rax, %rax
	jne	LBB0_6
## %bb.4:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_LoadCursorW
	testq	%rax, %rax
	je	LBB0_7
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	xorl	%edi, %edi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_LoadIconW                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SS_REALSIZEIMAGE,4,2           ## @SS_REALSIZEIMAGE
	.comm	_IMAGE_ICON,4,2                 ## @IMAGE_ICON
	.comm	_LR_SHARED,4,2                  ## @LR_SHARED
	.no_dead_strip	_STATIC_LoadIconW
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function STATIC_LoadIconW
_STATIC_LoadIconW:                      ; @STATIC_LoadIconW
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	tst	x0, #0xffff0000
	b.eq	LBB0_6
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x8, _SS_REALSIZEIMAGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SS_REALSIZEIMAGE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _IMAGE_ICON@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IMAGE_ICON@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _LR_SHARED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LR_SHARED@GOTPAGEOFF]
Lloh8:
	ldr	w5, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w3, #0
	mov	w4, #0
	bl	_LoadImageW
	cbnz	x0, LBB0_5
	b	LBB0_6
LBB0_3:
	mov	x0, x20
	mov	x1, x19
	bl	_LoadIconW
	cbnz	x0, LBB0_5
; %bb.4:
	mov	x0, x20
	mov	x1, x19
	bl	_LoadCursorW
	cbz	x0, LBB0_6
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x0, #0
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_LoadIconW
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SS_REALSIZEIMAGE,4,2           ; @SS_REALSIZEIMAGE
	.comm	_IMAGE_ICON,4,2                 ; @IMAGE_ICON
	.comm	_LR_SHARED,4,2                  ; @LR_SHARED
	.no_dead_strip	_STATIC_LoadIconW
.subsections_via_symbols
