	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function PRINTDLG_WMInitDialogW
_PRINTDLG_WMInitDialogW:                ## @PRINTDLG_WMInitDialogW
	.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	$824, %rsp                      ## imm = 0x338
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	48(%rsi), %r15
	movq	_PD_PRINTSETUP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r15), %eax
	jne	LBB0_1
## %bb.2:
	movq	_cmb4@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_cmb1@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movl	%eax, -852(%rbp)                ## 4-byte Spill
	movq	_COMDLG32_hInstance@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	_pd32_collateW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IMAGE_ICON@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_LoadImageW
	movq	%rax, (%r12)
	movl	(%r13), %edi
	movq	_pd32_nocollateW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_LoadImageW
	movq	%rax, 8(%r12)
	movl	(%r13), %edi
	movq	_pd32_portraitW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LoadIconW
	movq	%rax, 16(%r12)
	movl	(%r13), %edi
	movq	_pd32_landscapeW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_LoadIconW
	movq	%rax, 24(%r12)
	movq	_ico3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_STM_SETIMAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%rbx), %ecx
	movl	8(%r12), %r8d
	movl	%r14d, %edi
	callq	_SendDlgItemMessageW
	cmpq	$0, (%r12)
	je	LBB0_7
## %bb.4:
	cmpq	$0, 8(%r12)
	je	LBB0_7
## %bb.5:
	cmpq	$0, 16(%r12)
	je	LBB0_7
## %bb.6:
	cmpq	$0, 24(%r12)
	jne	LBB0_8
LBB0_7:
	leaq	L_.str(%rip), %rdi
	callq	_ERR
	movq	_CDERR_LOADRESFAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_COMDLG32_SetCommDlgExtendedError
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_EndDialog
LBB0_8:
	movl	(%r15), %eax
	movq	_PD_SHOWHELP@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
## %bb.9:
	movq	_HELPMSGSTRINGW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RegisterWindowMessageW
	movq	%rax, 40(%r12)
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movl	(%r15), %eax
	jmp	LBB0_13
LBB0_12:
	movq	$0, 40(%r12)
LBB0_13:
	movq	_PD_PRINTSETUP@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_15
## %bb.14:
	movq	_WS_CHILD@GOTPCREL(%rip), %rax
	movq	_WS_VISIBLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_WS_BORDER@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_UDS_NOTHOUSANDS@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_UDS_ARROWKEYS@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_UDS_ALIGNRIGHT@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_UDS_SETBUDDYINT@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_UPDOWN_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -864(%rbp)                ## 8-byte Spill
	movl	(%r13), %r13d
	movq	_edt3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_GetDlgItem
	movq	_MAX_COPIES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	movl	%ebx, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movl	%r14d, %r9d
	pushq	$1
	pushq	$1
	pushq	%r10
	pushq	%rax
	pushq	%r13
	pushq	-864(%rbp)                      ## 8-byte Folded Reload
	callq	_CreateUpDownControl
	addq	$48, %rsp
	movl	%eax, 32(%r12)
LBB0_15:
	movq	8(%r15), %rcx
	movq	16(%r15), %rax
	cmpq	%rax, %rcx
	jge	LBB0_17
## %bb.16:
	movq	%rax, 8(%r15)
	movq	%rax, %rcx
	movl	-852(%rbp), %esi                ## 4-byte Reload
	jmp	LBB0_18
LBB0_17:
	movl	-852(%rbp), %esi                ## 4-byte Reload
	jne	LBB0_19
LBB0_18:
	movq	_PD_NOPAGENUMS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%edx, (%r15)
LBB0_19:
	movq	24(%r15), %rdx
	cmpq	%rax, %rdx
	cmovleq	%rax, %rdx
	jl	LBB0_21
## %bb.20:
	cmpq	%rcx, %rdx
	jle	LBB0_22
LBB0_21:
	cmpq	%rcx, %rdx
	cmovgeq	%rcx, %rdx
	movq	%rdx, 24(%r15)
LBB0_22:
	movq	32(%r15), %rdx
	cmpq	%rax, %rdx
	cmovgq	%rdx, %rax
	jl	LBB0_24
## %bb.23:
	cmpq	%rcx, %rax
	jle	LBB0_25
LBB0_24:
	cmpq	%rcx, %rax
	cmovlq	%rax, %rcx
	movq	%rcx, 32(%r15)
LBB0_25:
	movl	%r14d, %edi
	callq	_GetDlgItem
	testq	%rax, %rax
	je	LBB0_36
## %bb.26:
	movl	40(%r15), %edi
	callq	_GlobalLock
	movq	%rax, %rbx
	movl	44(%r15), %edi
	callq	_GlobalLock
	movq	%rax, %r13
	testq	%rbx, %rbx
	je	LBB0_27
## %bb.30:
	movslq	(%rbx), %rax
	leaq	(%rbx,%rax,4), %rdx
	movl	%r14d, %edi
	movl	-852(%rbp), %esi                ## 4-byte Reload
	callq	_PRINTDLG_SetUpPrinterListComboW
	testq	%r13, %r13
	je	LBB0_32
## %bb.31:
	movl	44(%r15), %edi
	callq	_GlobalUnlock
LBB0_32:
	movl	40(%r15), %edi
	callq	_GlobalUnlock
	movl	-852(%rbp), %r13d               ## 4-byte Reload
	jmp	LBB0_33
LBB0_36:
	leaq	-848(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movl	%eax, -856(%rbp)
	leaq	-856(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_GetDefaultPrinterW
	testq	%rax, %rax
	je	LBB0_38
## %bb.37:
	leaq	-848(%rbp), %rsi
	movl	%r14d, %edi
	movq	%r12, %rdx
	callq	_PRINTDLG_ChangePrinterW
	jmp	LBB0_39
LBB0_11:
	movq	_CDERR_REGISTERMSGFAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_COMDLG32_SetCommDlgExtendedError
	movq	_FALSE@GOTPCREL(%rip), %rax
	jmp	LBB0_40
LBB0_27:
	testq	%r13, %r13
	je	LBB0_28
## %bb.29:
	movq	(%r13), %rdx
	movl	%r14d, %edi
	movl	-852(%rbp), %r13d               ## 4-byte Reload
	movl	%r13d, %esi
	callq	_PRINTDLG_SetUpPrinterListComboW
	movl	44(%r15), %edi
	callq	_GlobalUnlock
	jmp	LBB0_33
LBB0_38:
	leaq	L_.str.1(%rip), %rdi
	callq	_FIXME
	jmp	LBB0_39
LBB0_28:
	movl	%r14d, %edi
	movl	-852(%rbp), %r13d               ## 4-byte Reload
	movl	%r13d, %esi
	xorl	%edx, %edx
	callq	_PRINTDLG_SetUpPrinterListComboW
LBB0_33:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_HeapAlloc
	movq	%rax, %rbx
	movl	%r14d, %edi
	movl	%r13d, %esi
	movq	%rax, %rdx
	movl	$255, %ecx
	callq	_GetDlgItemTextW
	testq	%rax, %rax
	je	LBB0_35
## %bb.34:
	movl	%r14d, %edi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_PRINTDLG_ChangePrinterW
LBB0_35:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_HeapFree
LBB0_39:
	movq	_TRUE@GOTPCREL(%rip), %rax
LBB0_40:
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_42
## %bb.41:
	addq	$824, %rsp                      ## imm = 0x338
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_42:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PD_PRINTSETUP,4,2              ## @PD_PRINTSETUP
	.comm	_cmb1,4,2                       ## @cmb1
	.comm	_cmb4,4,2                       ## @cmb4
	.comm	_COMDLG32_hInstance,4,2         ## @COMDLG32_hInstance
	.comm	_pd32_collateW,4,2              ## @pd32_collateW
	.comm	_IMAGE_ICON,4,2                 ## @IMAGE_ICON
	.comm	_pd32_nocollateW,4,2            ## @pd32_nocollateW
	.comm	_pd32_portraitW,4,2             ## @pd32_portraitW
	.comm	_pd32_landscapeW,4,2            ## @pd32_landscapeW
	.comm	_ico3,4,2                       ## @ico3
	.comm	_STM_SETIMAGE,4,2               ## @STM_SETIMAGE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no icon in resource file\n"

	.comm	_CDERR_LOADRESFAILURE,4,2       ## @CDERR_LOADRESFAILURE
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_PD_SHOWHELP,4,2                ## @PD_SHOWHELP
	.comm	_HELPMSGSTRINGW,4,2             ## @HELPMSGSTRINGW
	.comm	_CDERR_REGISTERMSGFAIL,4,2      ## @CDERR_REGISTERMSGFAIL
	.comm	_WS_CHILD,4,2                   ## @WS_CHILD
	.comm	_WS_VISIBLE,4,2                 ## @WS_VISIBLE
	.comm	_WS_BORDER,4,2                  ## @WS_BORDER
	.comm	_UDS_NOTHOUSANDS,4,2            ## @UDS_NOTHOUSANDS
	.comm	_UDS_ARROWKEYS,4,2              ## @UDS_ARROWKEYS
	.comm	_UDS_ALIGNRIGHT,4,2             ## @UDS_ALIGNRIGHT
	.comm	_UDS_SETBUDDYINT,4,2            ## @UDS_SETBUDDYINT
	.comm	_UPDOWN_ID,4,2                  ## @UPDOWN_ID
	.comm	_edt3,4,2                       ## @edt3
	.comm	_MAX_COPIES,4,2                 ## @MAX_COPIES
	.comm	_PD_NOPAGENUMS,4,2              ## @PD_NOPAGENUMS
L_.str.1:                               ## @.str.1
	.asciz	"No default printer found, expect problems!\n"

	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_PRINTDLG_WMInitDialogW
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function PRINTDLG_WMInitDialogW
_PRINTDLG_WMInitDialogW:                ; @PRINTDLG_WMInitDialogW
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #832
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	ldr	x25, [x1, #48]
Lloh3:
	adrp	x22, _PD_PRINTSETUP@GOTPAGE
Lloh4:
	ldr	x22, [x22, _PD_PRINTSETUP@GOTPAGEOFF]
	ldr	w8, [x25]
	ldr	w9, [x22]
Lloh5:
	adrp	x10, _cmb1@GOTPAGE
Lloh6:
	ldr	x10, [x10, _cmb1@GOTPAGEOFF]
Lloh7:
	adrp	x11, _cmb4@GOTPAGE
Lloh8:
	ldr	x11, [x11, _cmb4@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x11, x10, eq
	ldr	w21, [x8]
Lloh9:
	adrp	x24, _COMDLG32_hInstance@GOTPAGE
Lloh10:
	ldr	x24, [x24, _COMDLG32_hInstance@GOTPAGEOFF]
	ldr	w0, [x24]
Lloh11:
	adrp	x8, _pd32_collateW@GOTPAGE
Lloh12:
	ldr	x8, [x8, _pd32_collateW@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x23, _IMAGE_ICON@GOTPAGE
Lloh15:
	ldr	x23, [x23, _IMAGE_ICON@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	bl	_LoadImageW
	str	x0, [x19]
	ldr	w0, [x24]
Lloh16:
	adrp	x8, _pd32_nocollateW@GOTPAGE
Lloh17:
	ldr	x8, [x8, _pd32_nocollateW@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	ldr	w2, [x23]
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	bl	_LoadImageW
	str	x0, [x19, #8]
	ldr	w0, [x24]
Lloh19:
	adrp	x8, _pd32_portraitW@GOTPAGE
Lloh20:
	ldr	x8, [x8, _pd32_portraitW@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	bl	_LoadIconW
	str	x0, [x19, #16]
	ldr	w0, [x24]
Lloh22:
	adrp	x8, _pd32_landscapeW@GOTPAGE
Lloh23:
	ldr	x8, [x8, _pd32_landscapeW@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	bl	_LoadIconW
	str	x0, [x19, #24]
Lloh25:
	adrp	x8, _ico3@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ico3@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
Lloh28:
	adrp	x8, _STM_SETIMAGE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _STM_SETIMAGE@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
	ldr	w3, [x23]
	ldr	w4, [x19, #8]
	mov	x0, x20
	bl	_SendDlgItemMessageW
	ldr	x8, [x19]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_5
LBB0_4:
Lloh31:
	adrp	x23, _FALSE@GOTPAGE
Lloh32:
	ldr	x23, [x23, _FALSE@GOTPAGEOFF]
Lloh33:
	adrp	x0, l_.str@PAGE
Lloh34:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ERR
Lloh35:
	adrp	x8, _CDERR_LOADRESFAILURE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _CDERR_LOADRESFAILURE@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	bl	_COMDLG32_SetCommDlgExtendedError
Lloh38:
	ldr	w1, [x23]
	mov	x0, x20
	bl	_EndDialog
LBB0_5:
	ldr	w8, [x25]
Lloh39:
	adrp	x9, _PD_SHOWHELP@GOTPAGE
Lloh40:
	ldr	x9, [x9, _PD_SHOWHELP@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.6:
Lloh42:
	adrp	x8, _HELPMSGSTRINGW@GOTPAGE
Lloh43:
	ldr	x8, [x8, _HELPMSGSTRINGW@GOTPAGEOFF]
Lloh44:
	ldr	w0, [x8]
	bl	_RegisterWindowMessageW
	str	x0, [x19, #40]
	cbz	x0, LBB0_28
; %bb.7:
	ldr	w8, [x25]
	b	LBB0_9
LBB0_8:
	str	xzr, [x19, #40]
LBB0_9:
	ldr	w9, [x22]
	tst	w9, w8
	b.ne	LBB0_11
; %bb.10:
Lloh45:
	adrp	x8, _WS_CHILD@GOTPAGE
Lloh46:
	ldr	x8, [x8, _WS_CHILD@GOTPAGEOFF]
Lloh47:
	adrp	x9, _WS_VISIBLE@GOTPAGE
Lloh48:
	ldr	x9, [x9, _WS_VISIBLE@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
Lloh50:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh51:
	adrp	x9, _WS_BORDER@GOTPAGE
Lloh52:
	ldr	x9, [x9, _WS_BORDER@GOTPAGEOFF]
Lloh53:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh54:
	adrp	x9, _UDS_NOTHOUSANDS@GOTPAGE
Lloh55:
	ldr	x9, [x9, _UDS_NOTHOUSANDS@GOTPAGEOFF]
Lloh56:
	ldr	w9, [x9]
Lloh57:
	adrp	x10, _UDS_ARROWKEYS@GOTPAGE
Lloh58:
	ldr	x10, [x10, _UDS_ARROWKEYS@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh59:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh60:
	adrp	x9, _UDS_ALIGNRIGHT@GOTPAGE
Lloh61:
	ldr	x9, [x9, _UDS_ALIGNRIGHT@GOTPAGEOFF]
Lloh62:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh63:
	adrp	x9, _UDS_SETBUDDYINT@GOTPAGE
Lloh64:
	ldr	x9, [x9, _UDS_SETBUDDYINT@GOTPAGEOFF]
Lloh65:
	ldr	w9, [x9]
Lloh66:
	adrp	x10, _UPDOWN_ID@GOTPAGE
Lloh67:
	ldr	x10, [x10, _UPDOWN_ID@GOTPAGEOFF]
	orr	w22, w8, w9
Lloh68:
	ldr	w23, [x10]
	ldr	w24, [x24]
Lloh69:
	adrp	x8, _edt3@GOTPAGE
Lloh70:
	ldr	x8, [x8, _edt3@GOTPAGEOFF]
Lloh71:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_GetDlgItem
Lloh72:
	adrp	x8, _MAX_COPIES@GOTPAGE
Lloh73:
	ldr	x8, [x8, _MAX_COPIES@GOTPAGEOFF]
Lloh74:
	ldr	w8, [x8]
	mov	x9, #4294967297
	stur	x9, [sp, #12]
	str	w8, [sp, #8]
	str	x0, [sp]
	mov	x0, x22
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	mov	x5, x20
	mov	x6, x23
	mov	x7, x24
	bl	_CreateUpDownControl
	str	w0, [x19, #32]
LBB0_11:
	ldp	x8, x9, [x25, #8]
	cmp	x8, x9
	b.ge	LBB0_13
; %bb.12:
	str	x9, [x25, #8]
	mov	x8, x9
	b	LBB0_14
LBB0_13:
	cmp	x9, x8
	b.ne	LBB0_15
LBB0_14:
Lloh75:
	adrp	x10, _PD_NOPAGENUMS@GOTPAGE
Lloh76:
	ldr	x10, [x10, _PD_NOPAGENUMS@GOTPAGEOFF]
Lloh77:
	ldr	w10, [x10]
	ldr	w11, [x25]
	orr	w10, w11, w10
	str	w10, [x25]
LBB0_15:
	ldr	x10, [x25, #24]
	cmp	x10, x9
	csel	x10, x10, x9, gt
	b.lt	LBB0_17
; %bb.16:
	cmp	x10, x8
	b.le	LBB0_18
LBB0_17:
	cmp	x10, x8
	csel	x10, x10, x8, lt
	str	x10, [x25, #24]
LBB0_18:
	ldr	x10, [x25, #32]
	cmp	x10, x9
	csel	x9, x10, x9, gt
	b.lt	LBB0_20
; %bb.19:
	cmp	x9, x8
	b.le	LBB0_21
LBB0_20:
	cmp	x9, x8
	csel	x8, x9, x8, lt
	str	x8, [x25, #32]
LBB0_21:
	mov	x0, x20
	mov	x1, x21
	bl	_GetDlgItem
	cbz	x0, LBB0_26
; %bb.22:
	ldr	w0, [x25, #40]
	bl	_GlobalLock
	mov	x23, x0
	ldr	w0, [x25, #44]
	bl	_GlobalLock
	mov	x22, x0
	cbz	x23, LBB0_29
; %bb.23:
	ldrsw	x8, [x23]
	add	x2, x23, x8, lsl #2
	mov	x0, x20
	mov	x1, x21
	bl	_PRINTDLG_SetUpPrinterListComboW
	cbz	x22, LBB0_25
; %bb.24:
	ldr	w0, [x25, #44]
	bl	_GlobalUnlock
LBB0_25:
	ldr	w0, [x25, #40]
	b	LBB0_31
LBB0_26:
	add	x0, sp, #24
	bl	_ARRAY_SIZE
	str	w0, [sp, #20]
	add	x0, sp, #24
	add	x1, sp, #20
	bl	_GetDefaultPrinterW
	cbz	x0, LBB0_38
; %bb.27:
	add	x1, sp, #24
	mov	x0, x20
	mov	x2, x19
	bl	_PRINTDLG_ChangePrinterW
	b	LBB0_35
LBB0_28:
Lloh78:
	adrp	x8, _CDERR_REGISTERMSGFAIL@GOTPAGE
Lloh79:
	ldr	x8, [x8, _CDERR_REGISTERMSGFAIL@GOTPAGEOFF]
Lloh80:
	ldr	w0, [x8]
	bl	_COMDLG32_SetCommDlgExtendedError
Lloh81:
	adrp	x8, _FALSE@GOTPAGE
Lloh82:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
	b	LBB0_36
LBB0_29:
	cbz	x22, LBB0_39
; %bb.30:
	ldr	x2, [x22]
	mov	x0, x20
	mov	x1, x21
	bl	_PRINTDLG_SetUpPrinterListComboW
	ldr	w0, [x25, #44]
LBB0_31:
	bl	_GlobalUnlock
LBB0_32:
	bl	_GetProcessHeap
	mov	w1, #0
	mov	w2, #1024
	bl	_HeapAlloc
	mov	x22, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	mov	w3, #255
	bl	_GetDlgItemTextW
	cbz	x0, LBB0_34
; %bb.33:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x19
	bl	_PRINTDLG_ChangePrinterW
LBB0_34:
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x22
	bl	_HeapFree
LBB0_35:
Lloh83:
	adrp	x8, _TRUE@GOTPAGE
Lloh84:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
LBB0_36:
	ldr	w0, [x8]
	ldur	x8, [x29, #-72]
Lloh85:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh86:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh87:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_40
; %bb.37:
	add	sp, sp, #832
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_38:
Lloh88:
	adrp	x0, l_.str.1@PAGE
Lloh89:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_FIXME
	b	LBB0_35
LBB0_39:
	mov	x0, x20
	mov	x1, x21
	mov	x2, #0
	bl	_PRINTDLG_SetUpPrinterListComboW
	b	LBB0_32
LBB0_40:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh49
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGot	Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGot	Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.loh AdrpAdd	Lloh88, Lloh89
	.cfi_endproc
                                        ; -- End function
	.comm	_PD_PRINTSETUP,4,2              ; @PD_PRINTSETUP
	.comm	_cmb1,4,2                       ; @cmb1
	.comm	_cmb4,4,2                       ; @cmb4
	.comm	_COMDLG32_hInstance,4,2         ; @COMDLG32_hInstance
	.comm	_pd32_collateW,4,2              ; @pd32_collateW
	.comm	_IMAGE_ICON,4,2                 ; @IMAGE_ICON
	.comm	_pd32_nocollateW,4,2            ; @pd32_nocollateW
	.comm	_pd32_portraitW,4,2             ; @pd32_portraitW
	.comm	_pd32_landscapeW,4,2            ; @pd32_landscapeW
	.comm	_ico3,4,2                       ; @ico3
	.comm	_STM_SETIMAGE,4,2               ; @STM_SETIMAGE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no icon in resource file\n"

	.comm	_CDERR_LOADRESFAILURE,4,2       ; @CDERR_LOADRESFAILURE
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_PD_SHOWHELP,4,2                ; @PD_SHOWHELP
	.comm	_HELPMSGSTRINGW,4,2             ; @HELPMSGSTRINGW
	.comm	_CDERR_REGISTERMSGFAIL,4,2      ; @CDERR_REGISTERMSGFAIL
	.comm	_WS_CHILD,4,2                   ; @WS_CHILD
	.comm	_WS_VISIBLE,4,2                 ; @WS_VISIBLE
	.comm	_WS_BORDER,4,2                  ; @WS_BORDER
	.comm	_UDS_NOTHOUSANDS,4,2            ; @UDS_NOTHOUSANDS
	.comm	_UDS_ARROWKEYS,4,2              ; @UDS_ARROWKEYS
	.comm	_UDS_ALIGNRIGHT,4,2             ; @UDS_ALIGNRIGHT
	.comm	_UDS_SETBUDDYINT,4,2            ; @UDS_SETBUDDYINT
	.comm	_UPDOWN_ID,4,2                  ; @UPDOWN_ID
	.comm	_edt3,4,2                       ; @edt3
	.comm	_MAX_COPIES,4,2                 ; @MAX_COPIES
	.comm	_PD_NOPAGENUMS,4,2              ; @PD_NOPAGENUMS
l_.str.1:                               ; @.str.1
	.asciz	"No default printer found, expect problems!\n"

	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_PRINTDLG_WMInitDialogW
.subsections_via_symbols
