	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function SetDialogIcon
_SetDialogIcon:                         ## @SetDialogIcon
	.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	%edi, %r14d
	movq	_hDialogIconBig@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_DestroyIcon
LBB0_2:
	movq	_hDialogIconSmall@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_DestroyIcon
LBB0_4:
	xorl	%edi, %edi
	callq	_GetModuleHandle
	movl	%eax, %ebx
	movq	_IDI_APPICON@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_MAKEINTRESOURCE
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_LoadIconW
	movq	%rax, (%r15)
	xorl	%edi, %edi
	callq	_GetModuleHandle
	movl	%eax, %ebx
	movl	(%r13), %edi
	callq	_MAKEINTRESOURCE
	movq	_IMAGE_ICON@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_uXIcon@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_uYIcon@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r8d
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%r9d, %r9d
	callq	_LoadImage
	movq	%rax, (%r12)
	movq	_WM_SETICON@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_ICON_BIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r15), %ecx
	movl	%r14d, %edi
	callq	_SendMessage
	movl	(%rbx), %esi
	movq	_ICON_SMALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r12), %ecx
	movl	%r14d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_SendMessage                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_hDialogIconBig,8,3             ## @hDialogIconBig
	.comm	_hDialogIconSmall,8,3           ## @hDialogIconSmall
	.comm	_IDI_APPICON,4,2                ## @IDI_APPICON
	.comm	_IMAGE_ICON,4,2                 ## @IMAGE_ICON
	.comm	_uXIcon,4,2                     ## @uXIcon
	.comm	_uYIcon,4,2                     ## @uYIcon
	.comm	_WM_SETICON,4,2                 ## @WM_SETICON
	.comm	_ICON_BIG,4,2                   ## @ICON_BIG
	.comm	_ICON_SMALL,4,2                 ## @ICON_SMALL
	.no_dead_strip	_SetDialogIcon
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function SetDialogIcon
_SetDialogIcon:                         ; @SetDialogIcon
	.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	x19, x0
Lloh0:
	adrp	x21, _hDialogIconBig@GOTPAGE
Lloh1:
	ldr	x21, [x21, _hDialogIconBig@GOTPAGEOFF]
	ldr	x0, [x21]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_DestroyIcon
LBB0_2:
Lloh2:
	adrp	x22, _hDialogIconSmall@GOTPAGE
Lloh3:
	ldr	x22, [x22, _hDialogIconSmall@GOTPAGEOFF]
	ldr	x0, [x22]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_DestroyIcon
LBB0_4:
	mov	x0, #0
	bl	_GetModuleHandle
	mov	x20, x0
Lloh4:
	adrp	x23, _IDI_APPICON@GOTPAGE
Lloh5:
	ldr	x23, [x23, _IDI_APPICON@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_MAKEINTRESOURCE
	mov	x1, x0
	mov	x0, x20
	bl	_LoadIconW
	str	x0, [x21]
	mov	x0, #0
	bl	_GetModuleHandle
	mov	x20, x0
	ldr	w0, [x23]
	bl	_MAKEINTRESOURCE
	mov	x1, x0
Lloh6:
	adrp	x8, _IMAGE_ICON@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IMAGE_ICON@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x8, _uXIcon@GOTPAGE
Lloh10:
	ldr	x8, [x8, _uXIcon@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
Lloh12:
	adrp	x8, _uYIcon@GOTPAGE
Lloh13:
	ldr	x8, [x8, _uYIcon@GOTPAGEOFF]
Lloh14:
	ldr	w4, [x8]
	mov	x0, x20
	mov	w5, #0
	bl	_LoadImage
Lloh15:
	adrp	x20, _WM_SETICON@GOTPAGE
Lloh16:
	ldr	x20, [x20, _WM_SETICON@GOTPAGEOFF]
	str	x0, [x22]
	ldr	w1, [x20]
Lloh17:
	adrp	x8, _ICON_BIG@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ICON_BIG@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	ldr	w3, [x21]
	mov	x0, x19
	bl	_SendMessage
	ldr	w1, [x20]
Lloh20:
	adrp	x8, _ICON_SMALL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ICON_SMALL@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	ldr	w3, [x22]
	mov	x0, x19
	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
	b	_SendMessage
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_hDialogIconBig,8,3             ; @hDialogIconBig
	.comm	_hDialogIconSmall,8,3           ; @hDialogIconSmall
	.comm	_IDI_APPICON,4,2                ; @IDI_APPICON
	.comm	_IMAGE_ICON,4,2                 ; @IMAGE_ICON
	.comm	_uXIcon,4,2                     ; @uXIcon
	.comm	_uYIcon,4,2                     ; @uYIcon
	.comm	_WM_SETICON,4,2                 ; @WM_SETICON
	.comm	_ICON_BIG,4,2                   ; @ICON_BIG
	.comm	_ICON_SMALL,4,2                 ; @ICON_SMALL
	.no_dead_strip	_SetDialogIcon
.subsections_via_symbols
