	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function PRINTDLG_UpdatePrintDlgA
_PRINTDLG_UpdatePrintDlgA:              ## @PRINTDLG_UpdatePrintDlgA
	.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	$2072, %rsp                     ## imm = 0x818
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rsi), %r14
	testq	%r14, %r14
	je	LBB0_3
## %bb.1:
	movq	16(%rsi), %rbx
	movq	_PD_PRINTSETUP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_7
LBB0_2:
	movq	_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	leaq	L_.str(%rip), %rdi
	callq	_FIXME
LBB0_4:
	movq	_FALSE@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_35
## %bb.6:
	addq	$2072, %rsp                     ## imm = 0x818
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%rdi, %r15
	movq	(%rsi), %r12
	movq	_rad3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_IsDlgButtonChecked
	movq	_BST_CHECKED@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_10
## %bb.8:
	movq	%r12, -2112(%rbp)               ## 8-byte Spill
	movq	_edt1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FALSE@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_GetDlgItemInt
	movq	%rax, %r12
	movq	_edt2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %ecx
	leaq	-2100(%rbp), %rdx
	movq	%r15, %rdi
	callq	_GetDlgItemInt
	cmpl	$0, -2100(%rbp)
	cmoveq	%r12, %rax
	movq	8(%rbx), %rcx
	cmpq	%r12, %rcx
	jle	LBB0_23
LBB0_9:
	movq	_COMDLG32_hInstance@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_PD32_INVALID_PAGE_RANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-1072(%rbp), %r14
	movq	%r14, %rdx
	movl	$255, %ecx
	callq	_LoadStringW
	movq	8(%rbx), %rdx
	movq	16(%rbx), %rcx
	leaq	-2096(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_wsprintfW
	movl	(%r12), %edi
	movq	_PD32_PRINT_TITLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	movl	$255, %ecx
	callq	_LoadStringW
	movq	_MB_OK@GOTPCREL(%rip), %rax
	movq	_MB_ICONWARNING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_MessageBoxW
	jmp	LBB0_4
LBB0_10:
	movq	_PD_PAGENUMS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%rbx)
LBB0_11:
	movq	_rad2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_IsDlgButtonChecked
	movq	_PD_SELECTION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpq	(%r13), %rax
	jne	LBB0_13
## %bb.12:
	orl	(%rbx), %ecx
	jmp	LBB0_14
LBB0_13:
	notl	%ecx
	andl	(%rbx), %ecx
LBB0_14:
	movl	%ecx, (%rbx)
	movq	_chx1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_IsDlgButtonChecked
	cmpq	(%r13), %rax
	jne	LBB0_16
## %bb.15:
	movq	_PD_PRINTTOFILE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
	leaq	_PRINTDLG_UpdatePrintDlgA.file(%rip), %rax
	movq	%rax, (%r12)
LBB0_16:
	movq	_chx2@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_IsDlgButtonChecked
	cmpq	(%r13), %rax
	jne	LBB0_18
## %bb.17:
	leaq	L_.str.1(%rip), %rdi
	callq	_FIXME
LBB0_18:
	movl	(%rbx), %eax
	movq	_PD_USEDEVMODECOPIESANDCOLLATE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_27
## %bb.19:
	movq	_PD_COLLATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, (%rbx)
	movl	$1, 24(%rbx)
	movl	(%r14), %eax
	movq	_DM_COLLATE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_21
## %bb.20:
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_IsDlgButtonChecked
	xorl	%ecx, %ecx
	cmpq	(%r13), %rax
	sete	%cl
	movl	%ecx, 4(%r14)
	movl	(%r14), %eax
LBB0_21:
	movq	_DM_COPIES@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_32
## %bb.22:
	movq	_edt3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_GetDlgItemInt
	jmp	LBB0_31
LBB0_23:
	movq	16(%rbx), %rdx
	cmpq	%r12, %rdx
	jl	LBB0_9
## %bb.24:
	cmpq	%rcx, %rax
	jl	LBB0_9
## %bb.25:
	cmpq	%rdx, %rax
	jg	LBB0_9
## %bb.26:
	movq	%r12, 40(%rbx)
	movq	%rax, 32(%rbx)
	movq	_PD_PAGENUMS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
	movq	-2112(%rbp), %r12               ## 8-byte Reload
	movq	_BST_CHECKED@GOTPCREL(%rip), %r13
	jmp	LBB0_11
LBB0_27:
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_IsDlgButtonChecked
	movq	_PD_COLLATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpq	(%r13), %rax
	jne	LBB0_29
## %bb.28:
	orl	(%rbx), %ecx
	jmp	LBB0_30
LBB0_29:
	notl	%ecx
	andl	(%rbx), %ecx
LBB0_30:
	movl	%ecx, (%rbx)
	movq	_edt3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_GetDlgItemInt
	movl	%eax, 24(%rbx)
	movl	$1, %eax
LBB0_31:
	movl	%eax, 12(%r14)
LBB0_32:
	movq	_cmb1@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_GetDlgItem
	testq	%rax, %rax
	je	LBB0_2
## %bb.33:
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_GetDlgItem
	movq	%rax, %rbx
	movq	_CB_GETCURSEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_SendMessageA
	movq	_CB_ERR@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	je	LBB0_2
## %bb.34:
	movq	_CB_GETITEMDATA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rbx, %rdi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_SendMessageA
	movq	_DM_PRINTQUALITY@GOTPCREL(%rip), %rcx
	movq	_DM_YRESOLUTION@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	%rax, %rbx
	orl	%edx, (%r14)
	movq	%rax, %rdi
	callq	_LOWORD
	movl	%eax, 16(%r14)
	movq	%rbx, %rdi
	callq	_HIWORD
	movl	%eax, 8(%r14)
	jmp	LBB0_2
LBB0_35:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No lpdm ptr?\n"

	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_PD_PRINTSETUP,4,2              ## @PD_PRINTSETUP
	.comm	_rad3,4,2                       ## @rad3
	.comm	_BST_CHECKED,8,3                ## @BST_CHECKED
	.comm	_edt1,4,2                       ## @edt1
	.comm	_edt2,4,2                       ## @edt2
	.comm	_COMDLG32_hInstance,4,2         ## @COMDLG32_hInstance
	.comm	_PD32_INVALID_PAGE_RANGE,4,2    ## @PD32_INVALID_PAGE_RANGE
	.comm	_PD32_PRINT_TITLE,4,2           ## @PD32_PRINT_TITLE
	.comm	_MB_OK,4,2                      ## @MB_OK
	.comm	_MB_ICONWARNING,4,2             ## @MB_ICONWARNING
	.comm	_PD_PAGENUMS,4,2                ## @PD_PAGENUMS
	.comm	_rad2,4,2                       ## @rad2
	.comm	_PD_SELECTION,4,2               ## @PD_SELECTION
	.comm	_chx1,4,2                       ## @chx1
	.section	__DATA,__data
_PRINTDLG_UpdatePrintDlgA.file:         ## @PRINTDLG_UpdatePrintDlgA.file
	.asciz	"FILE:"

	.comm	_PD_PRINTTOFILE,4,2             ## @PD_PRINTTOFILE
	.comm	_chx2,4,2                       ## @chx2
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"Collate lppd not yet implemented as output\n"

	.comm	_PD_USEDEVMODECOPIESANDCOLLATE,4,2 ## @PD_USEDEVMODECOPIESANDCOLLATE
	.comm	_PD_COLLATE,4,2                 ## @PD_COLLATE
	.comm	_DM_COLLATE,4,2                 ## @DM_COLLATE
	.comm	_DM_COPIES,4,2                  ## @DM_COPIES
	.comm	_edt3,4,2                       ## @edt3
	.comm	_cmb1,4,2                       ## @cmb1
	.comm	_CB_GETCURSEL,4,2               ## @CB_GETCURSEL
	.comm	_CB_ERR,4,2                     ## @CB_ERR
	.comm	_CB_GETITEMDATA,4,2             ## @CB_GETITEMDATA
	.comm	_DM_PRINTQUALITY,4,2            ## @DM_PRINTQUALITY
	.comm	_DM_YRESOLUTION,4,2             ## @DM_YRESOLUTION
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_PRINTDLG_UpdatePrintDlgA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function PRINTDLG_UpdatePrintDlgA
_PRINTDLG_UpdatePrintDlgA:              ; @PRINTDLG_UpdatePrintDlgA
	.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, #2064
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	ldr	x21, [x1, #8]
	cbz	x21, LBB0_3
; %bb.1:
	ldr	x22, [x1, #16]
	ldr	w8, [x22]
Lloh3:
	adrp	x9, _PD_PRINTSETUP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PD_PRINTSETUP@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
LBB0_2:
Lloh6:
	adrp	x8, _TRUE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_FIXME
Lloh10:
	adrp	x8, _FALSE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x8]
LBB0_5:
	ldur	x8, [x29, #-72]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_33
; %bb.6:
	add	sp, sp, #2064
	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_7:
	mov	x19, x0
	ldr	x24, [x1]
Lloh15:
	adrp	x8, _rad3@GOTPAGE
Lloh16:
	ldr	x8, [x8, _rad3@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_IsDlgButtonChecked
Lloh18:
	adrp	x23, _BST_CHECKED@GOTPAGE
Lloh19:
	ldr	x23, [x23, _BST_CHECKED@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.8:
Lloh20:
	adrp	x8, _edt1@GOTPAGE
Lloh21:
	ldr	x8, [x8, _edt1@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x25, _FALSE@GOTPAGE
Lloh24:
	ldr	x25, [x25, _FALSE@GOTPAGEOFF]
	ldr	w3, [x25]
	mov	x0, x19
	mov	x2, #0
	bl	_GetDlgItemInt
	mov	x20, x0
Lloh25:
	adrp	x8, _edt2@GOTPAGE
Lloh26:
	ldr	x8, [x8, _edt2@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	ldr	w3, [x25]
	add	x2, sp, #4
	mov	x0, x19
	bl	_GetDlgItemInt
	ldr	w8, [sp, #4]
	cmp	w8, #0
	csel	x8, x20, x0, eq
	ldr	x9, [x22, #8]
	cmp	x9, x20
	b.gt	LBB0_10
; %bb.9:
	ldr	x10, [x22, #16]
	cmp	x10, x20
	ccmp	x8, x9, #8, ge
	ccmp	x8, x10, #0, ge
	b.le	LBB0_26
LBB0_10:
Lloh28:
	adrp	x20, _COMDLG32_hInstance@GOTPAGE
Lloh29:
	ldr	x20, [x20, _COMDLG32_hInstance@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh30:
	adrp	x8, _PD32_INVALID_PAGE_RANGE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _PD32_INVALID_PAGE_RANGE@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	add	x2, sp, #1032
	mov	w3, #255
	bl	_LoadStringW
	ldp	x2, x3, [x22, #8]
	add	x0, sp, #8
	add	x1, sp, #1032
	bl	_wsprintfW
	ldr	w0, [x20]
Lloh33:
	adrp	x8, _PD32_PRINT_TITLE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _PD32_PRINT_TITLE@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	add	x2, sp, #1032
	mov	w3, #255
	bl	_LoadStringW
Lloh36:
	adrp	x8, _MB_OK@GOTPAGE
Lloh37:
	ldr	x8, [x8, _MB_OK@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
Lloh39:
	adrp	x9, _MB_ICONWARNING@GOTPAGE
Lloh40:
	ldr	x9, [x9, _MB_ICONWARNING@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	orr	w3, w9, w8
	add	x1, sp, #8
	add	x2, sp, #1032
	mov	x0, x19
	bl	_MessageBoxW
	ldr	w0, [x25]
	b	LBB0_5
LBB0_11:
Lloh42:
	adrp	x8, _PD_PAGENUMS@GOTPAGE
Lloh43:
	ldr	x8, [x8, _PD_PAGENUMS@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	ldr	w9, [x22]
	bic	w8, w9, w8
LBB0_12:
	str	w8, [x22]
Lloh45:
	adrp	x8, _rad2@GOTPAGE
Lloh46:
	ldr	x8, [x8, _rad2@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_IsDlgButtonChecked
	ldr	x9, [x23]
Lloh48:
	adrp	x8, _PD_SELECTION@GOTPAGE
Lloh49:
	ldr	x8, [x8, _PD_SELECTION@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	cmp	x0, x9
	b.ne	LBB0_14
; %bb.13:
	ldr	w9, [x22]
	orr	w8, w9, w8
	b	LBB0_15
LBB0_14:
	ldr	w9, [x22]
	bic	w8, w9, w8
LBB0_15:
	str	w8, [x22]
Lloh51:
	adrp	x8, _chx1@GOTPAGE
Lloh52:
	ldr	x8, [x8, _chx1@GOTPAGEOFF]
Lloh53:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_IsDlgButtonChecked
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_17
; %bb.16:
Lloh54:
	adrp	x8, _PD_PRINTTOFILE@GOTPAGE
Lloh55:
	ldr	x8, [x8, _PD_PRINTTOFILE@GOTPAGEOFF]
Lloh56:
	ldr	w8, [x8]
	ldr	w9, [x22]
	orr	w8, w9, w8
	str	w8, [x22]
Lloh57:
	adrp	x8, _PRINTDLG_UpdatePrintDlgA.file@PAGE
Lloh58:
	add	x8, x8, _PRINTDLG_UpdatePrintDlgA.file@PAGEOFF
	str	x8, [x24]
LBB0_17:
Lloh59:
	adrp	x20, _chx2@GOTPAGE
Lloh60:
	ldr	x20, [x20, _chx2@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_IsDlgButtonChecked
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_19
; %bb.18:
Lloh61:
	adrp	x0, l_.str.1@PAGE
Lloh62:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_FIXME
LBB0_19:
	ldr	w8, [x22]
Lloh63:
	adrp	x9, _PD_USEDEVMODECOPIESANDCOLLATE@GOTPAGE
Lloh64:
	ldr	x9, [x9, _PD_USEDEVMODECOPIESANDCOLLATE@GOTPAGEOFF]
Lloh65:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_24
; %bb.20:
Lloh66:
	adrp	x9, _PD_COLLATE@GOTPAGE
Lloh67:
	ldr	x9, [x9, _PD_COLLATE@GOTPAGEOFF]
Lloh68:
	ldr	w9, [x9]
	bic	w8, w8, w9
	str	w8, [x22]
	mov	w8, #1
	str	w8, [x22, #24]
	ldr	w8, [x21]
Lloh69:
	adrp	x9, _DM_COLLATE@GOTPAGE
Lloh70:
	ldr	x9, [x9, _DM_COLLATE@GOTPAGEOFF]
Lloh71:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_22
; %bb.21:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_IsDlgButtonChecked
	ldr	x8, [x23]
	cmp	x0, x8
	cset	w8, eq
	str	w8, [x21, #4]
	ldr	w8, [x21]
LBB0_22:
Lloh72:
	adrp	x9, _DM_COPIES@GOTPAGE
Lloh73:
	ldr	x9, [x9, _DM_COPIES@GOTPAGEOFF]
Lloh74:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_30
; %bb.23:
Lloh75:
	adrp	x8, _edt3@GOTPAGE
Lloh76:
	ldr	x8, [x8, _edt3@GOTPAGEOFF]
Lloh77:
	ldr	w1, [x8]
Lloh78:
	adrp	x8, _FALSE@GOTPAGE
Lloh79:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh80:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x2, #0
	bl	_GetDlgItemInt
	b	LBB0_29
LBB0_24:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_IsDlgButtonChecked
	ldr	x9, [x23]
Lloh81:
	adrp	x8, _PD_COLLATE@GOTPAGE
Lloh82:
	ldr	x8, [x8, _PD_COLLATE@GOTPAGEOFF]
Lloh83:
	ldr	w8, [x8]
	cmp	x0, x9
	b.ne	LBB0_27
; %bb.25:
	ldr	w9, [x22]
	orr	w8, w9, w8
	b	LBB0_28
LBB0_26:
	stp	x8, x20, [x22, #32]
Lloh84:
	adrp	x8, _PD_PAGENUMS@GOTPAGE
Lloh85:
	ldr	x8, [x8, _PD_PAGENUMS@GOTPAGEOFF]
Lloh86:
	ldr	w8, [x8]
	ldr	w9, [x22]
	orr	w8, w9, w8
	b	LBB0_12
LBB0_27:
	ldr	w9, [x22]
	bic	w8, w9, w8
LBB0_28:
	str	w8, [x22]
Lloh87:
	adrp	x8, _edt3@GOTPAGE
Lloh88:
	ldr	x8, [x8, _edt3@GOTPAGEOFF]
Lloh89:
	ldr	w1, [x8]
Lloh90:
	adrp	x8, _FALSE@GOTPAGE
Lloh91:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh92:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x2, #0
	bl	_GetDlgItemInt
	str	w0, [x22, #24]
	mov	w0, #1
LBB0_29:
	str	w0, [x21, #12]
LBB0_30:
Lloh93:
	adrp	x20, _cmb1@GOTPAGE
Lloh94:
	ldr	x20, [x20, _cmb1@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_GetDlgItem
	cbz	x0, LBB0_2
; %bb.31:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_GetDlgItem
	mov	x19, x0
Lloh95:
	adrp	x8, _CB_GETCURSEL@GOTPAGE
Lloh96:
	ldr	x8, [x8, _CB_GETCURSEL@GOTPAGEOFF]
Lloh97:
	ldr	w1, [x8]
	mov	w2, #0
	mov	w3, #0
	bl	_SendMessageA
	mov	x2, x0
Lloh98:
	adrp	x8, _CB_ERR@GOTPAGE
Lloh99:
	ldr	x8, [x8, _CB_ERR@GOTPAGEOFF]
Lloh100:
	ldr	w8, [x8]
	cmp	w8, w2
	b.eq	LBB0_2
; %bb.32:
Lloh101:
	adrp	x8, _CB_GETITEMDATA@GOTPAGE
Lloh102:
	ldr	x8, [x8, _CB_GETITEMDATA@GOTPAGEOFF]
Lloh103:
	ldr	w1, [x8]
	mov	x0, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	mov	w3, #0
	bl	_SendMessageA
	mov	x19, x0
Lloh104:
	adrp	x8, _DM_PRINTQUALITY@GOTPAGE
Lloh105:
	ldr	x8, [x8, _DM_PRINTQUALITY@GOTPAGEOFF]
Lloh106:
	adrp	x9, _DM_YRESOLUTION@GOTPAGE
Lloh107:
	ldr	x9, [x9, _DM_YRESOLUTION@GOTPAGEOFF]
Lloh108:
	ldr	w8, [x8]
Lloh109:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x21]
	orr	w8, w8, w9
	str	w8, [x21]
	bl	_LOWORD
	str	w0, [x21, #16]
	mov	x0, x19
	bl	_HIWORD
	str	w0, [x21, #8]
	b	LBB0_2
LBB0_33:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh59, Lloh60
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpLdrGot	Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh98, Lloh99, Lloh100
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.loh AdrpLdrGotLdr	Lloh106, Lloh107, Lloh109
	.loh AdrpLdrGotLdr	Lloh104, Lloh105, Lloh108
	.loh AdrpLdrGotLdr	Lloh101, Lloh102, Lloh103
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No lpdm ptr?\n"

	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_PD_PRINTSETUP,4,2              ; @PD_PRINTSETUP
	.comm	_rad3,4,2                       ; @rad3
	.comm	_BST_CHECKED,8,3                ; @BST_CHECKED
	.comm	_edt1,4,2                       ; @edt1
	.comm	_edt2,4,2                       ; @edt2
	.comm	_COMDLG32_hInstance,4,2         ; @COMDLG32_hInstance
	.comm	_PD32_INVALID_PAGE_RANGE,4,2    ; @PD32_INVALID_PAGE_RANGE
	.comm	_PD32_PRINT_TITLE,4,2           ; @PD32_PRINT_TITLE
	.comm	_MB_OK,4,2                      ; @MB_OK
	.comm	_MB_ICONWARNING,4,2             ; @MB_ICONWARNING
	.comm	_PD_PAGENUMS,4,2                ; @PD_PAGENUMS
	.comm	_rad2,4,2                       ; @rad2
	.comm	_PD_SELECTION,4,2               ; @PD_SELECTION
	.comm	_chx1,4,2                       ; @chx1
	.section	__DATA,__data
_PRINTDLG_UpdatePrintDlgA.file:         ; @PRINTDLG_UpdatePrintDlgA.file
	.asciz	"FILE:"

	.comm	_PD_PRINTTOFILE,4,2             ; @PD_PRINTTOFILE
	.comm	_chx2,4,2                       ; @chx2
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"Collate lppd not yet implemented as output\n"

	.comm	_PD_USEDEVMODECOPIESANDCOLLATE,4,2 ; @PD_USEDEVMODECOPIESANDCOLLATE
	.comm	_PD_COLLATE,4,2                 ; @PD_COLLATE
	.comm	_DM_COLLATE,4,2                 ; @DM_COLLATE
	.comm	_DM_COPIES,4,2                  ; @DM_COPIES
	.comm	_edt3,4,2                       ; @edt3
	.comm	_cmb1,4,2                       ; @cmb1
	.comm	_CB_GETCURSEL,4,2               ; @CB_GETCURSEL
	.comm	_CB_ERR,4,2                     ; @CB_ERR
	.comm	_CB_GETITEMDATA,4,2             ; @CB_GETITEMDATA
	.comm	_DM_PRINTQUALITY,4,2            ; @DM_PRINTQUALITY
	.comm	_DM_YRESOLUTION,4,2             ; @DM_YRESOLUTION
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_PRINTDLG_UpdatePrintDlgA
.subsections_via_symbols
