	.file	"extr_printdlg.c_PRINTDLG_WMCommandA.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	" OK button was hit\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Update printdlg was not successful!\n"
	.section	.rodata.str1.1
.LC2:
	.string	" CANCEL button was hit\n"
.LC3:
	.string	" HELP button was hit\n"
	.section	.rodata.str1.8
	.align 8
.LC4:
	.string	" Call to OpenPrinter did not succeed!\n"
	.text
	.p2align 4
	.type	PRINTDLG_WMCommandA, @function
PRINTDLG_WMCommandA:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, edi
	mov	edi, esi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 312
	.cfi_def_cfa_offset 368
	mov	r14, QWORD PTR 32[rdx]
	mov	rbx, QWORD PTR 8[rdx]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 296[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR [r14]
	and	eax, DWORD PTR PD_PRINTSETUP[rip]
	cmp	eax, 1
	sbb	r15d, r15d
	call	LOWORD@PLT
	and	r15d, -3
	add	eax, -128
	add	r15d, 138
	cmp	eax, 13
	ja	.L3
	lea	rdx, .L5[rip]
	movsx	rax, DWORD PTR [rdx+rax*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L5:
	.long	.L17-.L5
	.long	.L16-.L5
	.long	.L15-.L5
	.long	.L14-.L5
	.long	.L13-.L5
	.long	.L12-.L5
	.long	.L12-.L5
	.long	.L11-.L5
	.long	.L10-.L5
	.long	.L9-.L5
	.long	.L8-.L5
	.long	.L7-.L5
	.long	.L6-.L5
	.long	.L4-.L5
	.text
	.p2align 4,,10
	.p2align 3
.L13:
	mov	edi, r12d
	call	HIWORD@PLT
	cmp	eax, DWORD PTR EN_CHANGE[rip]
	jne	.L3
	mov	ecx, DWORD PTR FALSE[rip]
	xor	edx, edx
	mov	esi, 132
	mov	edi, r13d
	call	GetDlgItemInt@PLT
	mov	r15d, DWORD PTR FALSE[rip]
	cmp	eax, 1
	jle	.L40
	mov	r15d, DWORD PTR TRUE[rip]
.L40:
	mov	esi, 139
	mov	edi, r13d
	call	GetDlgItem@PLT
	mov	esi, r15d
	mov	edi, eax
	call	EnableWindow@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	mov	eax, DWORD PTR [r14]
	test	DWORD PTR PD_PRINTSETUP[rip], eax
	jne	.L44
.L28:
	mov	eax, DWORD PTR FALSE[rip]
.L1:
	mov	rcx, QWORD PTR 296[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L45
	add	rsp, 312
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L44:
	.cfi_restore_state
	mov	edi, r12d
	call	LOWORD@PLT
	add	eax, -128
	cmp	eax, 1
	ja	.L28
	mov	esi, 129
	mov	edi, r13d
	call	IsDlgButtonChecked@PLT
	cmp	eax, DWORD PTR BST_CHECKED[rip]
	je	.L46
	mov	rax, QWORD PTR DMORIENT_LANDSCAPE[rip]
	cmp	QWORD PTR [rbx], rax
	je	.L28
	mov	r8d, DWORD PTR 0[rbp]
	mov	ecx, DWORD PTR IMAGE_ICON[rip]
	mov	QWORD PTR [rbx], rax
	mov	edi, r13d
	mov	edx, DWORD PTR STM_SETIMAGE[rip]
	mov	esi, DWORD PTR stc10[rip]
	call	SendDlgItemMessageA@PLT
	mov	r8d, DWORD PTR 0[rbp]
.L42:
	mov	ecx, DWORD PTR IMAGE_ICON[rip]
	mov	edx, DWORD PTR STM_SETIMAGE[rip]
	mov	edi, r13d
	mov	esi, DWORD PTR ico1[rip]
	call	SendDlgItemMessageA@PLT
	jmp	.L28
	.p2align 4,,10
	.p2align 3
.L12:
	mov	edi, r12d
	call	HIWORD@PLT
	cmp	eax, DWORD PTR EN_CHANGE[rip]
	jne	.L3
	mov	ecx, DWORD PTR FALSE[rip]
	xor	edx, edx
	mov	esi, 134
	mov	edi, r13d
	call	GetDlgItemInt@PLT
	mov	ecx, DWORD PTR FALSE[rip]
	xor	edx, edx
	mov	edi, r13d
	mov	esi, 133
	mov	r15, rax
	call	GetDlgItemInt@PLT
	cmp	QWORD PTR 16[r14], r15
	je	.L47
.L22:
	mov	edx, DWORD PTR rad3[rip]
	mov	esi, 129
	mov	edi, r13d
	mov	ecx, edx
	call	CheckRadioButton@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L8:
	mov	edi, r12d
	call	LOWORD@PLT
	cmp	eax, r15d
	jne	.L3
.L11:
	mov	edi, r12d
	call	HIWORD@PLT
	cmp	eax, DWORD PTR CBN_SELCHANGE[rip]
	jne	.L3
	mov	r15d, DWORD PTR CB_GETCURSEL[rip]
	mov	edi, r12d
	call	LOWORD@PLT
	xor	r8d, r8d
	xor	ecx, ecx
	mov	edi, r13d
	mov	edx, r15d
	mov	esi, eax
	call	SendDlgItemMessageW@PLT
	mov	r15d, DWORD PTR CB_GETLBTEXTLEN[rip]
	mov	edi, r12d
	mov	DWORD PTR [rsp], eax
	call	LOWORD@PLT
	mov	ecx, DWORD PTR [rsp]
	xor	r8d, r8d
	mov	edx, r15d
	mov	edi, r13d
	mov	esi, eax
	mov	DWORD PTR 12[rsp], ecx
	call	SendDlgItemMessageW@PLT
	mov	r15d, eax
	xor	eax, eax
	call	GetProcessHeap@PLT
	xor	esi, esi
	lea	edx, 1[r15]
	mov	edi, eax
	call	HeapAlloc@PLT
	mov	edx, DWORD PTR CB_GETLBTEXT[rip]
	mov	edi, r12d
	mov	r15, rax
	mov	DWORD PTR [rsp], edx
	call	LOWORD@PLT
	mov	ecx, DWORD PTR 12[rsp]
	mov	edx, DWORD PTR [rsp]
	mov	r8d, r15d
	mov	edi, r13d
	mov	esi, eax
	call	SendDlgItemMessageA@PLT
	mov	rdx, rbp
	mov	rsi, r15
	mov	edi, r13d
	call	PRINTDLG_ChangePrinterA@PLT
	xor	eax, eax
	call	GetProcessHeap@PLT
	mov	rdx, r15
	xor	esi, esi
	mov	edi, eax
	call	HeapFree@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	lea	rdi, .LC2[rip]
	call	TRACE@PLT
	mov	esi, DWORD PTR FALSE[rip]
	mov	edi, r13d
	call	EndDialog@PLT
	mov	eax, DWORD PTR FALSE[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	mov	eax, DWORD PTR [r14]
	test	DWORD PTR PD_PRINTSETUP[rip], eax
	je	.L28
	mov	rax, QWORD PTR DMORIENT_LANDSCAPE[rip]
	mov	r8d, DWORD PTR 0[rbp]
	mov	QWORD PTR [rbx], rax
	jmp	.L41
	.p2align 4,,10
	.p2align 3
.L16:
	mov	eax, DWORD PTR [r14]
	test	DWORD PTR PD_PRINTSETUP[rip], eax
	je	.L28
	mov	rax, QWORD PTR DMORIENT_PORTRAIT[rip]
	mov	r8d, DWORD PTR 4[rbp]
	mov	QWORD PTR [rbx], rax
.L41:
	mov	ecx, DWORD PTR IMAGE_ICON[rip]
	mov	edx, DWORD PTR STM_SETIMAGE[rip]
	mov	edi, r13d
	mov	esi, DWORD PTR ico1[rip]
	call	SendDlgItemMessageA@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L15:
	lea	rdi, .LC3[rip]
	call	TRACE@PLT
	mov	esi, DWORD PTR 24[rbp]
	mov	edi, DWORD PTR 24[r14]
	mov	ecx, r14d
	mov	edx, r13d
	call	SendMessageA@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L10:
	mov	edx, DWORD PTR CB_GETCURSEL[rip]
	xor	r8d, r8d
	xor	ecx, ecx
	mov	esi, 136
	mov	edi, r13d
	call	SendDlgItemMessageA@PLT
	cmp	DWORD PTR CB_ERR[rip], eax
	je	.L3
	mov	edx, DWORD PTR CB_GETITEMDATA[rip]
	xor	r8d, r8d
	mov	ecx, eax
	mov	esi, 136
	mov	edi, r13d
	call	SendDlgItemMessageA@PLT
	mov	QWORD PTR 8[rbx], rax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L14:
	lea	r10, 32[rsp]
	mov	ecx, 255
	mov	esi, r15d
	mov	edi, r13d
	mov	rdx, r10
	mov	QWORD PTR [rsp], r10
	call	GetDlgItemTextA@PLT
	mov	r10, QWORD PTR [rsp]
	xor	edx, edx
	lea	rsi, 28[rsp]
	mov	rdi, r10
	call	OpenPrinterA@PLT
	mov	r10, QWORD PTR [rsp]
	test	eax, eax
	jne	.L25
	lea	rdi, .LC4[rip]
	call	FIXME@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L7:
	mov	esi, 139
	mov	edi, r13d
	call	IsDlgButtonChecked@PLT
	cmp	eax, DWORD PTR BST_CHECKED[rip]
	mov	esi, DWORD PTR ico3[rip]
	je	.L48
	mov	r8d, DWORD PTR 16[rbp]
	mov	ecx, DWORD PTR IMAGE_ICON[rip]
	mov	edi, r13d
	mov	edx, DWORD PTR STM_SETIMAGE[rip]
	call	SendDlgItemMessageA@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L6:
	lea	rdi, .LC0[rip]
	call	TRACE@PLT
	mov	rsi, rbp
	mov	edi, r13d
	call	PRINTDLG_UpdatePrintDlgA@PLT
	test	eax, eax
	je	.L49
	mov	esi, DWORD PTR TRUE[rip]
	mov	edi, r13d
	call	EndDialog@PLT
	mov	eax, DWORD PTR TRUE[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	edx, DWORD PTR CB_GETCURSEL[rip]
	xor	r8d, r8d
	xor	ecx, ecx
	mov	esi, 137
	mov	edi, r13d
	call	SendDlgItemMessageA@PLT
	cmp	DWORD PTR CB_ERR[rip], eax
	je	.L3
	mov	edx, DWORD PTR CB_GETITEMDATA[rip]
	mov	edi, r13d
	xor	r8d, r8d
	mov	ecx, eax
	mov	esi, 137
	call	SendDlgItemMessageA@PLT
	mov	rdx, QWORD PTR 24[rbx]
	mov	esi, 137
	mov	edi, r13d
	mov	QWORD PTR 16[rbx], rax
	mov	ecx, DWORD PTR CCHFORMNAME[rip]
	call	GetDlgItemTextA@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L25:
	mov	rcx, QWORD PTR 8[rbp]
	mov	esi, DWORD PTR 28[rsp]
	mov	edi, r13d
	mov	rdx, r10
	mov	r9d, DWORD PTR DM_IN_BUFFER[rip]
	or	r9d, DWORD PTR DM_OUT_BUFFER[rip]
	mov	r8, rcx
	or	r9d, DWORD PTR DM_IN_PROMPT[rip]
	call	DocumentPropertiesA@PLT
	mov	edi, DWORD PTR 28[rsp]
	call	ClosePrinter@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L46:
	mov	rax, QWORD PTR DMORIENT_PORTRAIT[rip]
	cmp	QWORD PTR [rbx], rax
	je	.L28
	mov	r8d, DWORD PTR 4[rbp]
	mov	ecx, DWORD PTR IMAGE_ICON[rip]
	mov	QWORD PTR [rbx], rax
	mov	edi, r13d
	mov	edx, DWORD PTR STM_SETIMAGE[rip]
	mov	esi, DWORD PTR stc10[rip]
	call	SendDlgItemMessageA@PLT
	mov	r8d, DWORD PTR 4[rbp]
	jmp	.L42
	.p2align 4,,10
	.p2align 3
.L49:
	lea	rdi, .LC1[rip]
	call	FIXME@PLT
	mov	eax, DWORD PTR FALSE[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L48:
	mov	r8d, DWORD PTR 20[rbp]
	mov	ecx, DWORD PTR IMAGE_ICON[rip]
	mov	edi, r13d
	mov	edx, DWORD PTR STM_SETIMAGE[rip]
	call	SendDlgItemMessageA@PLT
	jmp	.L3
.L47:
	cmp	QWORD PTR 8[r14], rax
	jne	.L22
	jmp	.L3
.L45:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	PRINTDLG_WMCommandA, .-PRINTDLG_WMCommandA
	.comm	stc10,4,4
	.comm	rad3,4,4
	.comm	ico3,4,4
	.comm	ico1,4,4
	.comm	TRUE,4,4
	.comm	STM_SETIMAGE,4,4
	.comm	PD_PRINTSETUP,4,4
	.comm	IMAGE_ICON,4,4
	.comm	FALSE,4,4
	.comm	EN_CHANGE,4,4
	.comm	DM_OUT_BUFFER,4,4
	.comm	DM_IN_PROMPT,4,4
	.comm	DM_IN_BUFFER,4,4
	.comm	DMORIENT_PORTRAIT,8,8
	.comm	DMORIENT_LANDSCAPE,8,8
	.comm	CCHFORMNAME,4,4
	.comm	CB_GETLBTEXTLEN,4,4
	.comm	CB_GETLBTEXT,4,4
	.comm	CB_GETITEMDATA,4,4
	.comm	CB_GETCURSEL,4,4
	.comm	CB_ERR,4,4
	.comm	CBN_SELCHANGE,4,4
	.comm	BST_CHECKED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_printdlg.c_PRINTDLG_WMCommandA.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	" OK button was hit\012\000"
	.align	2
.LC1:
	.ascii	"Update printdlg was not successful!\012\000"
	.align	2
.LC2:
	.ascii	" CANCEL button was hit\012\000"
	.align	2
.LC3:
	.ascii	" HELP button was hit\012\000"
	.align	2
.LC4:
	.ascii	" Call to OpenPrinter did not succeed!\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	PRINTDLG_WMCommandA, %function
PRINTDLG_WMCommandA:
	@ args = 0, pretend = 0, frame = 272
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r2
	ldr	r7, [r2, #24]
	ldr	r8, .L64
	ldr	r2, [r7]
	ldr	r3, [r8]
	sub	sp, sp, #284
	tst	r2, r3
	ldr	r3, .L64+4
	mov	r6, r0
	mov	r0, r1
	ldr	r3, [r3]
	str	r3, [sp, #276]
	mov	r3,#0
	mov	r5, r1
	movne	r10, #138
	moveq	r10, #135
	ldr	r9, [r4, #8]
	bl	LOWORD
	sub	r3, r0, #128
	cmp	r3, #13
	ldrls	pc, [pc, r3, asl #2]
	b	.L54
.L5:
	.word	.L17
	.word	.L16
	.word	.L15
	.word	.L14
	.word	.L13
	.word	.L12
	.word	.L12
	.word	.L11
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L4
.L16:
	ldr	r2, [r7]
	ldr	r3, [r8]
	tst	r2, r3
	beq	.L55
	ldr	r2, .L64+8
	ldr	r3, .L64+12
	ldr	ip, [r2]
	ldr	r1, .L64+16
	ldr	r2, .L64+20
	ldr	r0, [r4, #4]
.L53:
	ldr	r3, [r3]
	ldr	r2, [r2]
	str	ip, [r9]
	ldr	r1, [r1]
	str	r0, [sp]
	mov	r0, r6
	bl	SendDlgItemMessageA
.L54:
	ldr	r10, .L64+24
.L3:
	ldr	r2, [r7]
	ldr	r3, [r8]
	tst	r2, r3
	bne	.L58
.L28:
	ldr	r0, [r10]
.L1:
	ldr	r3, .L64+4
	ldr	r2, [r3]
	ldr	r3, [sp, #276]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L59
	add	sp, sp, #284
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L58:
	mov	r0, r5
	bl	LOWORD
	sub	r0, r0, #128
	cmp	r0, #1
	bhi	.L28
	mov	r1, #129
	mov	r0, r6
	bl	IsDlgButtonChecked
	ldr	r3, .L64+28
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L60
	ldr	r3, .L64+32
	ldr	r2, [r9]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L28
	ldr	r0, [r4]
	ldr	r7, .L64+12
	ldr	r5, .L64+20
	ldr	r1, .L64+36
	str	r3, [r9]
	ldr	r2, [r5]
	ldr	r3, [r7]
	ldr	r1, [r1]
	str	r0, [sp]
	mov	r0, r6
	bl	SendDlgItemMessageA
	ldr	r0, [r4]
.L56:
	ldr	r1, .L64+16
	ldr	r3, [r7]
	ldr	r2, [r5]
	ldr	r1, [r1]
	str	r0, [sp]
	mov	r0, r6
	bl	SendDlgItemMessageA
	b	.L28
.L12:
	mov	r0, r5
	bl	HIWORD
	ldr	r3, .L64+40
	ldr	r10, .L64+24
	ldr	r3, [r3]
	cmp	r0, r3
	bne	.L3
	mov	r2, #0
	mov	r1, #134
	ldr	r3, [r10]
	mov	r0, r6
	bl	GetDlgItemInt
	mov	fp, r0
	ldr	r3, [r10]
	mov	r2, #0
	mov	r1, #133
	mov	r0, r6
	bl	GetDlgItemInt
	ldr	r3, [r7, #8]
	cmp	r3, fp
	beq	.L61
.L22:
	ldr	r3, .L64+44
	mov	r1, #129
	ldr	r3, [r3]
	mov	r0, r6
	mov	r2, r3
	bl	CheckRadioButton
	b	.L3
.L8:
	mov	r0, r5
	bl	LOWORD
	cmp	r0, r10
	bne	.L54
.L11:
	mov	r0, r5
	bl	HIWORD
	ldr	r3, .L64+48
	ldr	r3, [r3]
	cmp	r0, r3
	bne	.L54
	mov	r10, #0
	mov	r0, r5
	bl	LOWORD
	ldr	r2, .L64+52
	str	r10, [sp]
	mov	r1, r0
	mov	r3, r10
	ldr	r2, [r2]
	mov	r0, r6
	bl	SendDlgItemMessageW
	mov	r3, r0
	mov	r0, r5
	str	r3, [sp, #12]
	bl	LOWORD
	ldr	r2, .L64+56
	str	r10, [sp]
	ldr	r3, [sp, #12]
	mov	r1, r0
	ldr	r2, [r2]
	mov	r0, r6
	bl	SendDlgItemMessageW
	mov	fp, r0
	bl	GetProcessHeap
	mov	r1, r10
	add	r2, fp, #1
	bl	HeapAlloc
	mov	fp, r0
	mov	r0, r5
	bl	LOWORD
	ldr	r2, .L64+60
	str	fp, [sp]
	ldr	r3, [sp, #12]
	mov	r1, r0
	ldr	r2, [r2]
	mov	r0, r6
	bl	SendDlgItemMessageA
	mov	r2, r4
	mov	r1, fp
	mov	r0, r6
	bl	PRINTDLG_ChangePrinterA
	bl	GetProcessHeap
	mov	r2, fp
	mov	r1, r10
	bl	HeapFree
	b	.L54
.L7:
	mov	r1, #139
	mov	r0, r6
	bl	IsDlgButtonChecked
	ldr	r3, .L64+28
	ldr	r2, .L64+64
	ldr	r3, [r3]
	ldr	r1, [r2]
	cmp	r0, r3
	ldrne	r0, [r4, #12]
	ldreq	r0, [r4, #16]
	ldr	r3, .L64+12
	ldr	r2, .L64+20
	ldr	r3, [r3]
	ldr	r2, [r2]
	str	r0, [sp]
	mov	r0, r6
	bl	SendDlgItemMessageA
	b	.L54
.L6:
	ldr	r0, .L64+68
	bl	TRACE
	mov	r1, r4
	mov	r0, r6
	bl	PRINTDLG_UpdatePrintDlgA
	cmp	r0, #0
	beq	.L62
	ldr	r4, .L64+72
	mov	r0, r6
	ldr	r1, [r4]
	bl	EndDialog
	ldr	r0, [r4]
	b	.L1
.L4:
	ldr	r4, .L64+24
	ldr	r0, .L64+76
	bl	TRACE
	mov	r0, r6
	ldr	r1, [r4]
	bl	EndDialog
	ldr	r0, [r4]
	b	.L1
.L9:
	mov	r10, #0
	ldr	r2, .L64+52
	str	r10, [sp]
	mov	r3, r10
	mov	r1, #137
	mov	r0, r6
	ldr	r2, [r2]
	bl	SendDlgItemMessageA
	ldr	r3, .L64+80
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L54
	ldr	r2, .L64+84
	str	r10, [sp]
	mov	r3, r0
	mov	r1, #137
	ldr	r2, [r2]
	mov	r0, r6
	bl	SendDlgItemMessageA
	ldr	r3, .L64+88
	str	r0, [r9, #8]
	mov	r1, #137
	mov	r0, r6
	ldr	r3, [r3]
	ldr	r2, [r9, #12]
	bl	GetDlgItemTextA
	ldr	r10, .L64+24
	b	.L3
.L14:
	mov	r1, r10
	mov	r3, #255
	add	r2, sp, #20
	mov	r0, r6
	bl	GetDlgItemTextA
	mov	r2, #0
	add	r0, sp, #20
	add	r1, sp, #16
	bl	OpenPrinterA
	cmp	r0, #0
	bne	.L25
	ldr	r0, .L64+92
	bl	FIXME
	ldr	r10, .L64+24
	b	.L3
.L15:
	ldr	r0, .L64+96
	bl	TRACE
	mov	r3, r7
	mov	r2, r6
	ldr	r1, [r4, #20]
	ldr	r0, [r7, #12]
	bl	SendMessageA
	ldr	r10, .L64+24
	b	.L3
.L10:
	mov	r10, #0
	ldr	r2, .L64+52
	str	r10, [sp]
	mov	r3, r10
	mov	r1, #136
	mov	r0, r6
	ldr	r2, [r2]
	bl	SendDlgItemMessageA
	ldr	r3, .L64+80
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L54
	ldr	r2, .L64+84
	str	r10, [sp]
	mov	r3, r0
	mov	r1, #136
	mov	r0, r6
	ldr	r2, [r2]
	bl	SendDlgItemMessageA
	ldr	r10, .L64+24
	str	r0, [r9, #4]
	b	.L3
.L13:
	mov	r0, r5
	bl	HIWORD
	ldr	r3, .L64+40
	ldr	r10, .L64+24
	ldr	r3, [r3]
	cmp	r0, r3
	bne	.L3
	mov	r1, #132
	mov	r2, #0
	mov	r0, r6
	ldr	r3, [r10]
	bl	GetDlgItemInt
	cmp	r0, #1
	mov	r1, #139
	mov	r0, r6
	ble	.L63
	bl	GetDlgItem
	ldr	r3, .L64+72
	ldr	r1, [r3]
	bl	EnableWindow
	b	.L3
.L17:
	ldr	r2, [r7]
	ldr	r3, [r8]
	tst	r2, r3
	bne	.L45
.L55:
	ldr	r10, .L64+24
	b	.L28
.L25:
	ldr	r1, .L64+100
	ldr	r3, .L64+104
	ldr	r2, .L64+108
	ldr	r3, [r3]
	ldr	r1, [r1]
	ldr	r2, [r2]
	orr	r1, r1, r3
	ldr	r3, [r4, #8]
	orr	r1, r1, r2
	str	r1, [sp, #4]
	add	r2, sp, #20
	ldr	r1, [sp, #16]
	str	r3, [sp]
	mov	r0, r6
	bl	DocumentPropertiesA
	ldr	r0, [sp, #16]
	bl	ClosePrinter
	ldr	r10, .L64+24
	b	.L3
.L60:
	ldr	r3, .L64+8
	ldr	r2, [r9]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L28
	ldr	r0, [r4, #4]
	ldr	r7, .L64+12
	ldr	r5, .L64+20
	ldr	r1, .L64+36
	str	r3, [r9]
	ldr	r2, [r5]
	ldr	r3, [r7]
	ldr	r1, [r1]
	str	r0, [sp]
	mov	r0, r6
	bl	SendDlgItemMessageA
	ldr	r0, [r4, #4]
	b	.L56
.L62:
	ldr	r0, .L64+112
	bl	FIXME
	ldr	r3, .L64+24
	ldr	r0, [r3]
	b	.L1
.L45:
	ldr	r2, .L64+32
	ldr	r3, .L64+12
	ldr	ip, [r2]
	ldr	r1, .L64+16
	ldr	r2, .L64+20
	ldr	r0, [r4]
	b	.L53
.L61:
	ldr	r3, [r7, #4]
	cmp	r3, r0
	bne	.L22
	b	.L3
.L63:
	bl	GetDlgItem
	ldr	r1, [r10]
	bl	EnableWindow
	b	.L3
.L59:
	bl	__stack_chk_fail
.L65:
	.align	2
.L64:
	.word	PD_PRINTSETUP
	.word	.LC5
	.word	DMORIENT_PORTRAIT
	.word	IMAGE_ICON
	.word	ico1
	.word	STM_SETIMAGE
	.word	FALSE
	.word	BST_CHECKED
	.word	DMORIENT_LANDSCAPE
	.word	stc10
	.word	EN_CHANGE
	.word	rad3
	.word	CBN_SELCHANGE
	.word	CB_GETCURSEL
	.word	CB_GETLBTEXTLEN
	.word	CB_GETLBTEXT
	.word	ico3
	.word	.LC0
	.word	TRUE
	.word	.LC2
	.word	CB_ERR
	.word	CB_GETITEMDATA
	.word	CCHFORMNAME
	.word	.LC4
	.word	.LC3
	.word	DM_IN_BUFFER
	.word	DM_OUT_BUFFER
	.word	DM_IN_PROMPT
	.word	.LC1
	.size	PRINTDLG_WMCommandA, .-PRINTDLG_WMCommandA
	.comm	stc10,4,4
	.comm	rad3,4,4
	.comm	ico3,4,4
	.comm	ico1,4,4
	.comm	TRUE,4,4
	.comm	STM_SETIMAGE,4,4
	.comm	PD_PRINTSETUP,4,4
	.comm	IMAGE_ICON,4,4
	.comm	FALSE,4,4
	.comm	EN_CHANGE,4,4
	.comm	DM_OUT_BUFFER,4,4
	.comm	DM_IN_PROMPT,4,4
	.comm	DM_IN_BUFFER,4,4
	.comm	DMORIENT_PORTRAIT,4,4
	.comm	DMORIENT_LANDSCAPE,4,4
	.comm	CCHFORMNAME,4,4
	.comm	CB_GETLBTEXTLEN,4,4
	.comm	CB_GETLBTEXT,4,4
	.comm	CB_GETITEMDATA,4,4
	.comm	CB_GETCURSEL,4,4
	.comm	CB_ERR,4,4
	.comm	CBN_SELCHANGE,4,4
	.comm	BST_CHECKED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
