	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function PRINTDLG_ChangePrinterW
_PRINTDLG_ChangePrinterW:               ## @PRINTDLG_ChangePrinterW
	.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
	movq	%rdx, %r12
	movq	%rsi, %r15
	movl	%edi, %r14d
	movq	56(%rdx), %r13
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	16(%r12), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapFree
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	48(%r12), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapFree
	leaq	-44(%rbp), %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_OpenPrinterW
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movl	-44(%rbp), %edi
	leaq	-48(%rbp), %rbx
	movl	$2, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%rbx, %r8
	callq	_GetPrinterW
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	-48(%rbp), %edx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapAlloc
	movq	%rax, 16(%r12)
	movl	-44(%rbp), %edi
	movl	-48(%rbp), %ecx
	movl	$2, %esi
	movq	%rax, %rdx
	movq	%rbx, %r8
	callq	_GetPrinterW
	movl	-44(%rbp), %edi
	xorl	%esi, %esi
	movl	$3, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movq	%rbx, %r9
	callq	_GetPrinterDriverW
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	-48(%rbp), %edx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapAlloc
	movq	%rax, 48(%r12)
	movl	-44(%rbp), %edi
	movl	-48(%rbp), %r8d
	xorl	%esi, %esi
	movl	$3, %edx
	movq	%rax, %rcx
	movq	%rbx, %r9
	callq	_GetPrinterDriverW
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	-44(%rbp), %edi
	callq	_ClosePrinter
	movq	16(%r12), %rsi
	movl	%r14d, %edi
	callq	_PRINTDLG_UpdatePrinterInfoTextsW
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	40(%r12), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapFree
	movq	$0, 40(%r12)
	xorl	%edi, %edi
	xorl	%esi, %esi
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_DocumentPropertiesW
	cmpl	$-1, %eax
	je	LBB0_6
## %bb.7:
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_HeapAlloc
	movq	%rax, 40(%r12)
	movq	_DM_OUT_BUFFER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	xorl	%edi, %edi
	xorl	%esi, %esi
	movq	%r15, %rdx
	movq	%rax, %rcx
	xorl	%r8d, %r8d
	callq	_DocumentPropertiesW
	movq	(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.8:
	callq	_GlobalLock
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	movq	%rax, %rbx
	movl	32(%rax), %edi
	movq	40(%r12), %rax
	movl	32(%rax), %esi
	callq	_lstrcmpW
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:
	movq	40(%r12), %rcx
	movq	_DM_IN_BUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_DM_OUT_BUFFER@GOTPCREL(%rip), %rax
	orl	(%rax), %r9d
	xorl	%edi, %edi
	xorl	%esi, %esi
	movq	%r15, %rdx
	movq	%rbx, %r8
	callq	_DocumentPropertiesW
LBB0_11:
	movq	(%r13), %rdi
	callq	_GlobalUnlock
LBB0_12:
	movq	40(%r12), %r15
	movq	_PD_PRINTSETUP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r13)
	je	LBB0_13
## %bb.35:
	movq	24(%r15), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_DMORIENT_PORTRAIT@GOTPCREL(%rip), %rax
	movq	%r15, %rbx
	movq	(%rax), %r15
	movq	_cmb2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	16(%r12), %rax
	movq	8(%rax), %rdx
	movl	4(%rax), %ecx
	movl	%r14d, %edi
	movq	%rbx, %r8
	callq	_PRINTDLG_SetUpPaperComboBoxW
	movq	_cmb3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	16(%r12), %rax
	movq	8(%rax), %rdx
	movl	4(%rax), %ecx
	movl	%r14d, %edi
	movq	%rbx, %r8
	callq	_PRINTDLG_SetUpPaperComboBoxW
	movq	%r13, %rbx
	xorl	%r13d, %r13d
	cmpq	%r15, -56(%rbp)                 ## 8-byte Folded Reload
	sete	%r13b
	movq	_rad1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_rad2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, %ecx
	cmovel	%esi, %ecx
	movl	%r14d, %edi
	callq	_CheckRadioButton
	movq	_ico1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_STM_SETIMAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IMAGE_ICON@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%r12,%r13,8), %r8d
	movq	%rbx, %r13
	movl	%r14d, %edi
	callq	_SendDlgItemMessageW
	jmp	LBB0_36
LBB0_1:
	movq	%r15, %rdi
	callq	_debugstr_w
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_2
LBB0_4:
	movq	16(%r12), %rax
	movq	8(%rax), %rdi
	callq	_debugstr_w
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_2
LBB0_6:
	movq	%r15, %rdi
	callq	_debugstr_w
	leaq	L_.str.2(%rip), %rdi
LBB0_2:
	movl	%eax, %esi
	callq	_ERR
	movq	_FALSE@GOTPCREL(%rip), %rbx
LBB0_38:
	movl	(%rbx), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movl	12(%r13), %edx
	cmpl	$65535, %edx                    ## imm = 0xFFFF
	je	LBB0_15
## %bb.14:
	movq	_edt1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r14d, %edi
	callq	_SetDlgItemInt
LBB0_15:
	movl	16(%r13), %edx
	cmpl	$65535, %edx                    ## imm = 0xFFFF
	je	LBB0_17
## %bb.16:
	movq	_edt2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r14d, %edi
	callq	_SetDlgItemInt
LBB0_17:
	movq	_rad1@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_rad3@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movl	%r14d, %edi
	movl	%ecx, %esi
	callq	_CheckRadioButton
	movl	8(%r13), %eax
	movq	_PD_NOSELECTION@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_19
## %bb.18:
	movq	_rad2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_GetDlgItem
	movq	_FALSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_EnableWindow
	jmp	LBB0_21
LBB0_19:
	movq	_PD_SELECTION@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_21
## %bb.20:
	movq	_rad1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	_rad2@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r14d, %edi
	callq	_CheckRadioButton
LBB0_21:
	movl	8(%r13), %eax
	movq	_PD_NOPAGENUMS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_23
## %bb.22:
	movl	(%rbx), %esi
	movl	%r14d, %edi
	callq	_GetDlgItem
	movq	_FALSE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	%eax, %edi
	callq	_EnableWindow
	movq	_stc2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_GetDlgItem
	movl	(%rbx), %esi
	movl	%eax, %edi
	callq	_EnableWindow
	movq	_edt1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_GetDlgItem
	movl	(%rbx), %esi
	movl	%eax, %edi
	callq	_EnableWindow
	movq	_stc3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_GetDlgItem
	movl	(%rbx), %esi
	movl	%eax, %edi
	callq	_EnableWindow
	movq	_edt2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_GetDlgItem
	movl	(%rbx), %esi
	movl	%eax, %edi
	callq	_EnableWindow
	jmp	LBB0_25
LBB0_23:
	movq	_PD_PAGENUMS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_25
## %bb.24:
	movq	_rad1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %ecx
	movl	%r14d, %edi
	movl	%ecx, %edx
	callq	_CheckRadioButton
LBB0_25:
	movq	_PD_COLLATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ebx, %ebx
	andl	8(%r13), %eax
	setne	%bl
	movq	_ico3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_STM_SETIMAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IMAGE_ICON@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	24(%r12,%rbx,8), %r8d
	movl	%r14d, %edi
	callq	_SendDlgItemMessageW
	movq	_chx2@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	%r14d, %edi
	movl	%ebx, %edx
	callq	_CheckDlgButton
	movq	_PD_USEDEVMODECOPIESANDCOLLATE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	testl	%eax, 8(%r13)
	je	LBB0_28
## %bb.26:
	movq	_DM_COLLATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	jne	LBB0_28
## %bb.27:
	movl	(%r12), %esi
	movl	%r14d, %edi
	callq	_GetDlgItem
	movq	_FALSE@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	%eax, %edi
	callq	_EnableWindow
	movq	_ico3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_GetDlgItem
	movl	(%r12), %esi
	movl	%eax, %edi
	callq	_EnableWindow
LBB0_28:
	leaq	20(%r13), %rax
	leaq	16(%r15), %rcx
	cmpq	$0, (%r13)
	cmoveq	%rax, %rcx
	movl	(%rcx), %eax
	testl	%eax, %eax
	movq	_MAX_COPIES@GOTPCREL(%rip), %rcx
	cmovsl	(%rcx), %eax
	movl	$1, %edx
	cmovnel	%eax, %edx
	movq	_edt3@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r14d, %edi
	callq	_SetDlgItemInt
	movl	8(%r13), %eax
	testl	%eax, (%rbx)
	je	LBB0_31
## %bb.29:
	movq	_DM_COPIES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%r15)
	jne	LBB0_31
## %bb.30:
	movl	(%r12), %esi
	movl	%r14d, %edi
	callq	_GetDlgItem
	movq	_FALSE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	%eax, %edi
	callq	_EnableWindow
	movq	_stc5@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_GetDlgItem
	movl	(%rbx), %esi
	movl	%eax, %edi
	callq	_EnableWindow
	movl	8(%r13), %eax
LBB0_31:
	movq	_chx1@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_PD_PRINTTOFILE@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	andl	(%rcx), %eax
	setne	%dl
	movl	%r14d, %edi
	callq	_CheckDlgButton
	movl	8(%r13), %eax
	movq	_PD_DISABLEPRINTTOFILE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_33
## %bb.32:
	movl	(%rbx), %esi
	movl	%r14d, %edi
	callq	_GetDlgItem
	movq	_FALSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_EnableWindow
	movl	8(%r13), %eax
LBB0_33:
	movq	_PD_HIDEPRINTTOFILE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_36
## %bb.34:
	movl	(%rbx), %esi
	movl	%r14d, %edi
	callq	_GetDlgItem
	movq	_SW_HIDE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_ShowWindow
LBB0_36:
	movq	_PD_SHOWHELP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_TRUE@GOTPCREL(%rip), %rbx
	testl	%eax, 8(%r13)
	jne	LBB0_38
## %bb.37:
	movq	_pshHelp@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_GetDlgItem
	movq	_SW_HIDE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_ShowWindow
	jmp	LBB0_38
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't open printer %s\n"

	.comm	_FALSE,4,2                      ## @FALSE
L_.str.1:                               ## @.str.1
	.asciz	"GetPrinterDriverA failed for %s, fix your config!\n"

L_.str.2:                               ## @.str.2
	.asciz	"DocumentProperties fails on %s\n"

	.comm	_DM_OUT_BUFFER,4,2              ## @DM_OUT_BUFFER
	.comm	_DM_IN_BUFFER,4,2               ## @DM_IN_BUFFER
	.comm	_PD_PRINTSETUP,4,2              ## @PD_PRINTSETUP
	.comm	_edt1,4,2                       ## @edt1
	.comm	_edt2,4,2                       ## @edt2
	.comm	_rad1,4,2                       ## @rad1
	.comm	_rad3,4,2                       ## @rad3
	.comm	_PD_NOSELECTION,4,2             ## @PD_NOSELECTION
	.comm	_rad2,4,2                       ## @rad2
	.comm	_PD_SELECTION,4,2               ## @PD_SELECTION
	.comm	_PD_NOPAGENUMS,4,2              ## @PD_NOPAGENUMS
	.comm	_stc2,4,2                       ## @stc2
	.comm	_stc3,4,2                       ## @stc3
	.comm	_PD_PAGENUMS,4,2                ## @PD_PAGENUMS
	.comm	_PD_COLLATE,4,2                 ## @PD_COLLATE
	.comm	_ico3,4,2                       ## @ico3
	.comm	_STM_SETIMAGE,4,2               ## @STM_SETIMAGE
	.comm	_IMAGE_ICON,4,2                 ## @IMAGE_ICON
	.comm	_chx2,4,2                       ## @chx2
	.comm	_PD_USEDEVMODECOPIESANDCOLLATE,4,2 ## @PD_USEDEVMODECOPIESANDCOLLATE
	.comm	_DM_COLLATE,4,2                 ## @DM_COLLATE
	.comm	_MAX_COPIES,4,2                 ## @MAX_COPIES
	.comm	_edt3,4,2                       ## @edt3
	.comm	_DM_COPIES,4,2                  ## @DM_COPIES
	.comm	_stc5,4,2                       ## @stc5
	.comm	_chx1,4,2                       ## @chx1
	.comm	_PD_PRINTTOFILE,4,2             ## @PD_PRINTTOFILE
	.comm	_PD_DISABLEPRINTTOFILE,4,2      ## @PD_DISABLEPRINTTOFILE
	.comm	_PD_HIDEPRINTTOFILE,4,2         ## @PD_HIDEPRINTTOFILE
	.comm	_SW_HIDE,4,2                    ## @SW_HIDE
	.comm	_DMORIENT_PORTRAIT,8,3          ## @DMORIENT_PORTRAIT
	.comm	_cmb2,4,2                       ## @cmb2
	.comm	_cmb3,4,2                       ## @cmb3
	.comm	_ico1,4,2                       ## @ico1
	.comm	_PD_SHOWHELP,4,2                ## @PD_SHOWHELP
	.comm	_pshHelp,4,2                    ## @pshHelp
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_PRINTDLG_ChangePrinterW
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function PRINTDLG_ChangePrinterW
_PRINTDLG_ChangePrinterW:               ; @PRINTDLG_ChangePrinterW
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x23, [x2, #56]
	bl	_GetProcessHeap
	ldr	x2, [x20, #16]
	mov	w1, #0
	bl	_HeapFree
	bl	_GetProcessHeap
	ldr	x2, [x20, #48]
	mov	w1, #0
	bl	_HeapFree
	add	x1, sp, #8
	mov	x0, x21
	mov	x2, #0
	bl	_OpenPrinterW
	cbz	w0, LBB0_10
; %bb.1:
	ldr	w0, [sp, #8]
	add	x4, sp, #12
	mov	w1, #2
	mov	x2, #0
	mov	w3, #0
	bl	_GetPrinterW
	bl	_GetProcessHeap
	ldr	w2, [sp, #12]
	mov	w1, #0
	bl	_HeapAlloc
	mov	x2, x0
	str	x0, [x20, #16]
	ldp	w0, w3, [sp, #8]
	add	x4, sp, #12
	mov	w1, #2
	bl	_GetPrinterW
	ldr	w0, [sp, #8]
	add	x5, sp, #12
	mov	x1, #0
	mov	w2, #3
	mov	x3, #0
	mov	w4, #0
	bl	_GetPrinterDriverW
	bl	_GetProcessHeap
	ldr	w2, [sp, #12]
	mov	w1, #0
	bl	_HeapAlloc
	mov	x3, x0
	str	x0, [x20, #48]
	ldp	w0, w4, [sp, #8]
	add	x5, sp, #12
	mov	x1, #0
	mov	w2, #3
	bl	_GetPrinterDriverW
	cbz	w0, LBB0_11
; %bb.2:
	ldr	w0, [sp, #8]
	bl	_ClosePrinter
	ldr	x1, [x20, #16]
	mov	x0, x19
	bl	_PRINTDLG_UpdatePrinterInfoTextsW
	bl	_GetProcessHeap
	ldr	x2, [x20, #40]
	mov	w1, #0
	bl	_HeapFree
	str	xzr, [x20, #40]
	mov	w0, #0
	mov	w1, #0
	mov	x2, x21
	mov	x3, #0
	mov	x4, #0
	mov	w5, #0
	bl	_DocumentPropertiesW
	cmn	w0, #1
	b.eq	LBB0_12
; %bb.3:
	mov	x22, x0
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x22
	bl	_HeapAlloc
	mov	x3, x0
	str	x0, [x20, #40]
Lloh0:
	adrp	x24, _DM_OUT_BUFFER@GOTPAGE
Lloh1:
	ldr	x24, [x24, _DM_OUT_BUFFER@GOTPAGEOFF]
	ldr	w5, [x24]
	mov	w0, #0
	mov	w1, #0
	mov	x2, x21
	mov	x4, #0
	bl	_DocumentPropertiesW
	ldr	x0, [x23]
	cbz	x0, LBB0_8
; %bb.4:
	bl	_GlobalLock
	cbz	x0, LBB0_8
; %bb.5:
	mov	x22, x0
	ldr	w0, [x0, #32]
	ldr	x8, [x20, #40]
	ldr	w1, [x8, #32]
	bl	_lstrcmpW
	cbnz	w0, LBB0_7
; %bb.6:
	ldr	x3, [x20, #40]
	ldr	w8, [x24]
Lloh2:
	adrp	x9, _DM_IN_BUFFER@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DM_IN_BUFFER@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	orr	w5, w9, w8
	mov	w1, #0
	mov	x2, x21
	mov	x4, x22
	bl	_DocumentPropertiesW
LBB0_7:
	ldr	x0, [x23]
	bl	_GlobalUnlock
LBB0_8:
	ldr	x21, [x20, #40]
	ldr	w8, [x23, #8]
Lloh5:
	adrp	x9, _PD_PRINTSETUP@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PD_PRINTSETUP@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.9:
	ldr	x22, [x21, #24]
Lloh8:
	adrp	x8, _DMORIENT_PORTRAIT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DMORIENT_PORTRAIT@GOTPAGEOFF]
Lloh10:
	ldr	x24, [x8]
Lloh11:
	adrp	x8, _cmb2@GOTPAGE
Lloh12:
	ldr	x8, [x8, _cmb2@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldr	x8, [x20, #16]
	ldr	x2, [x8, #8]
	ldr	w3, [x8, #4]
	mov	x0, x19
	mov	x4, x21
	bl	_PRINTDLG_SetUpPaperComboBoxW
Lloh14:
	adrp	x8, _cmb3@GOTPAGE
Lloh15:
	ldr	x8, [x8, _cmb3@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	ldr	x8, [x20, #16]
	ldr	x2, [x8, #8]
	ldr	w3, [x8, #4]
	mov	x0, x19
	mov	x4, x21
	bl	_PRINTDLG_SetUpPaperComboBoxW
	cmp	x22, x24
Lloh17:
	adrp	x8, _rad1@GOTPAGE
Lloh18:
	ldr	x8, [x8, _rad1@GOTPAGEOFF]
	cset	w21, eq
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x8, _rad2@GOTPAGE
Lloh21:
	ldr	x8, [x8, _rad2@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	csel	w3, w1, w2, eq
	mov	x0, x19
	bl	_CheckRadioButton
Lloh23:
	adrp	x8, _ico1@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ico1@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
Lloh26:
	adrp	x8, _STM_SETIMAGE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _STM_SETIMAGE@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
Lloh29:
	adrp	x8, _IMAGE_ICON@GOTPAGE
Lloh30:
	ldr	x8, [x8, _IMAGE_ICON@GOTPAGEOFF]
Lloh31:
	ldr	w3, [x8]
	lsl	x8, x21, #3
	ldr	w4, [x20, x8]
	mov	x0, x19
	bl	_SendDlgItemMessageW
	b	LBB0_36
LBB0_10:
	mov	x0, x21
	bl	_debugstr_w
	mov	x1, x0
Lloh32:
	adrp	x0, l_.str@PAGE
Lloh33:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_13
LBB0_11:
	ldr	x8, [x20, #16]
	ldr	x0, [x8, #8]
	bl	_debugstr_w
	mov	x1, x0
Lloh34:
	adrp	x0, l_.str.1@PAGE
Lloh35:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_12:
	mov	x0, x21
	bl	_debugstr_w
	mov	x1, x0
Lloh36:
	adrp	x0, l_.str.2@PAGE
Lloh37:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_13:
	bl	_ERR
Lloh38:
	adrp	x8, _FALSE@GOTPAGE
Lloh39:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
	b	LBB0_39
LBB0_14:
	ldr	w2, [x23, #12]
	mov	w26, #65535
Lloh40:
	adrp	x24, _FALSE@GOTPAGE
Lloh41:
	ldr	x24, [x24, _FALSE@GOTPAGEOFF]
Lloh42:
	adrp	x25, _edt1@GOTPAGE
Lloh43:
	ldr	x25, [x25, _edt1@GOTPAGEOFF]
	cmp	w2, w26
	b.eq	LBB0_16
; %bb.15:
	ldr	w1, [x25]
	ldr	w3, [x24]
	mov	x0, x19
	bl	_SetDlgItemInt
LBB0_16:
	ldr	w2, [x23, #16]
Lloh44:
	adrp	x22, _edt2@GOTPAGE
Lloh45:
	ldr	x22, [x22, _edt2@GOTPAGEOFF]
	cmp	w2, w26
	b.eq	LBB0_18
; %bb.17:
	ldr	w1, [x22]
	ldr	w3, [x24]
	mov	x0, x19
	bl	_SetDlgItemInt
LBB0_18:
Lloh46:
	adrp	x27, _rad1@GOTPAGE
Lloh47:
	ldr	x27, [x27, _rad1@GOTPAGEOFF]
	ldr	w1, [x27]
Lloh48:
	adrp	x26, _rad3@GOTPAGE
Lloh49:
	ldr	x26, [x26, _rad3@GOTPAGEOFF]
	ldr	w2, [x26]
	mov	x0, x19
	mov	x3, x1
	bl	_CheckRadioButton
	ldr	w8, [x23, #8]
Lloh50:
	adrp	x9, _PD_NOSELECTION@GOTPAGE
Lloh51:
	ldr	x9, [x9, _PD_NOSELECTION@GOTPAGEOFF]
Lloh52:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_20
; %bb.19:
Lloh53:
	adrp	x8, _rad2@GOTPAGE
Lloh54:
	ldr	x8, [x8, _rad2@GOTPAGEOFF]
Lloh55:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_GetDlgItem
	ldr	w1, [x24]
	bl	_EnableWindow
	b	LBB0_22
LBB0_20:
Lloh56:
	adrp	x9, _PD_SELECTION@GOTPAGE
Lloh57:
	ldr	x9, [x9, _PD_SELECTION@GOTPAGEOFF]
Lloh58:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_22
; %bb.21:
	ldr	w1, [x27]
	ldr	w2, [x26]
Lloh59:
	adrp	x8, _rad2@GOTPAGE
Lloh60:
	ldr	x8, [x8, _rad2@GOTPAGEOFF]
Lloh61:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_CheckRadioButton
LBB0_22:
	ldr	w8, [x23, #8]
Lloh62:
	adrp	x9, _PD_NOPAGENUMS@GOTPAGE
Lloh63:
	ldr	x9, [x9, _PD_NOPAGENUMS@GOTPAGEOFF]
Lloh64:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_24
; %bb.23:
	ldr	w1, [x26]
	mov	x0, x19
	bl	_GetDlgItem
	ldr	w1, [x24]
	bl	_EnableWindow
Lloh65:
	adrp	x8, _stc2@GOTPAGE
Lloh66:
	ldr	x8, [x8, _stc2@GOTPAGEOFF]
Lloh67:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_GetDlgItem
	ldr	w1, [x24]
	bl	_EnableWindow
	ldr	w1, [x25]
	mov	x0, x19
	bl	_GetDlgItem
	ldr	w1, [x24]
	bl	_EnableWindow
Lloh68:
	adrp	x8, _stc3@GOTPAGE
Lloh69:
	ldr	x8, [x8, _stc3@GOTPAGEOFF]
Lloh70:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_GetDlgItem
	ldr	w1, [x24]
	bl	_EnableWindow
	ldr	w1, [x22]
	mov	x0, x19
	bl	_GetDlgItem
	ldr	w1, [x24]
	bl	_EnableWindow
	b	LBB0_26
LBB0_24:
Lloh71:
	adrp	x9, _PD_PAGENUMS@GOTPAGE
Lloh72:
	ldr	x9, [x9, _PD_PAGENUMS@GOTPAGEOFF]
Lloh73:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_26
; %bb.25:
	ldr	w1, [x27]
	ldr	w2, [x26]
	mov	x0, x19
	mov	x3, x2
	bl	_CheckRadioButton
LBB0_26:
Lloh74:
	adrp	x8, _PD_COLLATE@GOTPAGE
Lloh75:
	ldr	x8, [x8, _PD_COLLATE@GOTPAGEOFF]
	ldr	w9, [x23, #8]
Lloh76:
	ldr	w8, [x8]
	tst	w8, w9
	cset	w22, ne
Lloh77:
	adrp	x25, _ico3@GOTPAGE
Lloh78:
	ldr	x25, [x25, _ico3@GOTPAGEOFF]
	ldr	w1, [x25]
Lloh79:
	adrp	x8, _STM_SETIMAGE@GOTPAGE
Lloh80:
	ldr	x8, [x8, _STM_SETIMAGE@GOTPAGEOFF]
Lloh81:
	ldr	w2, [x8]
Lloh82:
	adrp	x8, _IMAGE_ICON@GOTPAGE
Lloh83:
	ldr	x8, [x8, _IMAGE_ICON@GOTPAGEOFF]
Lloh84:
	ldr	w3, [x8]
	mov	w8, #32
	mov	w9, #24
	csel	x8, x9, x8, eq
	ldr	w4, [x20, x8]
	mov	x0, x19
	bl	_SendDlgItemMessageW
Lloh85:
	adrp	x26, _chx2@GOTPAGE
Lloh86:
	ldr	x26, [x26, _chx2@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	x0, x19
	mov	x2, x22
	bl	_CheckDlgButton
	ldr	w8, [x23, #8]
Lloh87:
	adrp	x20, _PD_USEDEVMODECOPIESANDCOLLATE@GOTPAGE
Lloh88:
	ldr	x20, [x20, _PD_USEDEVMODECOPIESANDCOLLATE@GOTPAGEOFF]
	ldr	w9, [x20]
	tst	w9, w8
	b.eq	LBB0_29
; %bb.27:
	ldr	w8, [x21]
Lloh89:
	adrp	x9, _DM_COLLATE@GOTPAGE
Lloh90:
	ldr	x9, [x9, _DM_COLLATE@GOTPAGEOFF]
Lloh91:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_29
; %bb.28:
	ldr	w1, [x26]
	mov	x0, x19
	bl	_GetDlgItem
	ldr	w1, [x24]
	bl	_EnableWindow
	ldr	w1, [x25]
	mov	x0, x19
	bl	_GetDlgItem
	ldr	w1, [x24]
	bl	_EnableWindow
LBB0_29:
	ldr	x8, [x23]
	add	x9, x23, #20
	add	x10, x21, #16
	cmp	x8, #0
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
Lloh92:
	adrp	x9, _MAX_COPIES@GOTPAGE
Lloh93:
	ldr	x9, [x9, _MAX_COPIES@GOTPAGEOFF]
Lloh94:
	ldr	w9, [x9]
	cmp	w8, #0
	csel	w8, w9, w8, lt
	csinc	w2, w8, wzr, ne
Lloh95:
	adrp	x22, _edt3@GOTPAGE
Lloh96:
	ldr	x22, [x22, _edt3@GOTPAGEOFF]
	ldr	w1, [x22]
	ldr	w3, [x24]
	mov	x0, x19
	bl	_SetDlgItemInt
	ldr	w8, [x23, #8]
	ldr	w9, [x20]
	tst	w9, w8
	b.eq	LBB0_32
; %bb.30:
	ldr	w9, [x21]
Lloh97:
	adrp	x10, _DM_COPIES@GOTPAGE
Lloh98:
	ldr	x10, [x10, _DM_COPIES@GOTPAGEOFF]
Lloh99:
	ldr	w10, [x10]
	tst	w10, w9
	b.ne	LBB0_32
; %bb.31:
	ldr	w1, [x22]
	mov	x0, x19
	bl	_GetDlgItem
	ldr	w1, [x24]
	bl	_EnableWindow
Lloh100:
	adrp	x8, _stc5@GOTPAGE
Lloh101:
	ldr	x8, [x8, _stc5@GOTPAGEOFF]
Lloh102:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_GetDlgItem
	ldr	w1, [x24]
	bl	_EnableWindow
	ldr	w8, [x23, #8]
LBB0_32:
Lloh103:
	adrp	x20, _chx1@GOTPAGE
Lloh104:
	ldr	x20, [x20, _chx1@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh105:
	adrp	x9, _PD_PRINTTOFILE@GOTPAGE
Lloh106:
	ldr	x9, [x9, _PD_PRINTTOFILE@GOTPAGEOFF]
Lloh107:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w2, ne
	mov	x0, x19
	bl	_CheckDlgButton
	ldr	w8, [x23, #8]
Lloh108:
	adrp	x9, _PD_DISABLEPRINTTOFILE@GOTPAGE
Lloh109:
	ldr	x9, [x9, _PD_DISABLEPRINTTOFILE@GOTPAGEOFF]
Lloh110:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_34
; %bb.33:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_GetDlgItem
	ldr	w1, [x24]
	bl	_EnableWindow
	ldr	w8, [x23, #8]
LBB0_34:
Lloh111:
	adrp	x9, _PD_HIDEPRINTTOFILE@GOTPAGE
Lloh112:
	ldr	x9, [x9, _PD_HIDEPRINTTOFILE@GOTPAGEOFF]
Lloh113:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_36
; %bb.35:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_GetDlgItem
Lloh114:
	adrp	x8, _SW_HIDE@GOTPAGE
Lloh115:
	ldr	x8, [x8, _SW_HIDE@GOTPAGEOFF]
Lloh116:
	ldr	w1, [x8]
	bl	_ShowWindow
LBB0_36:
	ldr	w8, [x23, #8]
Lloh117:
	adrp	x9, _PD_SHOWHELP@GOTPAGE
Lloh118:
	ldr	x9, [x9, _PD_SHOWHELP@GOTPAGEOFF]
Lloh119:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_38
; %bb.37:
Lloh120:
	adrp	x8, _pshHelp@GOTPAGE
Lloh121:
	ldr	x8, [x8, _pshHelp@GOTPAGEOFF]
Lloh122:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_GetDlgItem
Lloh123:
	adrp	x8, _SW_HIDE@GOTPAGE
Lloh124:
	ldr	x8, [x8, _SW_HIDE@GOTPAGEOFF]
Lloh125:
	ldr	w1, [x8]
	bl	_ShowWindow
LBB0_38:
Lloh126:
	adrp	x8, _TRUE@GOTPAGE
Lloh127:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
LBB0_39:
	ldr	w0, [x8]
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGot	Lloh87, Lloh88
	.loh AdrpLdrGot	Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGot	Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpLdrGot	Lloh95, Lloh96
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh99
	.loh AdrpLdrGotLdr	Lloh100, Lloh101, Lloh102
	.loh AdrpLdrGotLdr	Lloh108, Lloh109, Lloh110
	.loh AdrpLdrGotLdr	Lloh105, Lloh106, Lloh107
	.loh AdrpLdrGot	Lloh103, Lloh104
	.loh AdrpLdrGotLdr	Lloh111, Lloh112, Lloh113
	.loh AdrpLdrGotLdr	Lloh114, Lloh115, Lloh116
	.loh AdrpLdrGotLdr	Lloh117, Lloh118, Lloh119
	.loh AdrpLdrGotLdr	Lloh123, Lloh124, Lloh125
	.loh AdrpLdrGotLdr	Lloh120, Lloh121, Lloh122
	.loh AdrpLdrGot	Lloh126, Lloh127
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't open printer %s\n"

	.comm	_FALSE,4,2                      ; @FALSE
l_.str.1:                               ; @.str.1
	.asciz	"GetPrinterDriverA failed for %s, fix your config!\n"

l_.str.2:                               ; @.str.2
	.asciz	"DocumentProperties fails on %s\n"

	.comm	_DM_OUT_BUFFER,4,2              ; @DM_OUT_BUFFER
	.comm	_DM_IN_BUFFER,4,2               ; @DM_IN_BUFFER
	.comm	_PD_PRINTSETUP,4,2              ; @PD_PRINTSETUP
	.comm	_edt1,4,2                       ; @edt1
	.comm	_edt2,4,2                       ; @edt2
	.comm	_rad1,4,2                       ; @rad1
	.comm	_rad3,4,2                       ; @rad3
	.comm	_PD_NOSELECTION,4,2             ; @PD_NOSELECTION
	.comm	_rad2,4,2                       ; @rad2
	.comm	_PD_SELECTION,4,2               ; @PD_SELECTION
	.comm	_PD_NOPAGENUMS,4,2              ; @PD_NOPAGENUMS
	.comm	_stc2,4,2                       ; @stc2
	.comm	_stc3,4,2                       ; @stc3
	.comm	_PD_PAGENUMS,4,2                ; @PD_PAGENUMS
	.comm	_PD_COLLATE,4,2                 ; @PD_COLLATE
	.comm	_ico3,4,2                       ; @ico3
	.comm	_STM_SETIMAGE,4,2               ; @STM_SETIMAGE
	.comm	_IMAGE_ICON,4,2                 ; @IMAGE_ICON
	.comm	_chx2,4,2                       ; @chx2
	.comm	_PD_USEDEVMODECOPIESANDCOLLATE,4,2 ; @PD_USEDEVMODECOPIESANDCOLLATE
	.comm	_DM_COLLATE,4,2                 ; @DM_COLLATE
	.comm	_MAX_COPIES,4,2                 ; @MAX_COPIES
	.comm	_edt3,4,2                       ; @edt3
	.comm	_DM_COPIES,4,2                  ; @DM_COPIES
	.comm	_stc5,4,2                       ; @stc5
	.comm	_chx1,4,2                       ; @chx1
	.comm	_PD_PRINTTOFILE,4,2             ; @PD_PRINTTOFILE
	.comm	_PD_DISABLEPRINTTOFILE,4,2      ; @PD_DISABLEPRINTTOFILE
	.comm	_PD_HIDEPRINTTOFILE,4,2         ; @PD_HIDEPRINTTOFILE
	.comm	_SW_HIDE,4,2                    ; @SW_HIDE
	.comm	_DMORIENT_PORTRAIT,8,3          ; @DMORIENT_PORTRAIT
	.comm	_cmb2,4,2                       ; @cmb2
	.comm	_cmb3,4,2                       ; @cmb3
	.comm	_ico1,4,2                       ; @ico1
	.comm	_PD_SHOWHELP,4,2                ; @PD_SHOWHELP
	.comm	_pshHelp,4,2                    ; @pshHelp
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_PRINTDLG_ChangePrinterW
.subsections_via_symbols
