	.file	"extr_printdlg.c_PRINTDLG_SetUpPaperComboBoxA.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	" Printer: %s, Port: %s, ComboID: %d\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"no Name Entries found!\n"
.LC2:
	.string	"Number of caps is different\n"
	.text
	.p2align 4
	.type	PRINTDLG_SetUpPaperComboBoxA, @function
PRINTDLG_SetUpPaperComboBoxA:
.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	r13, rcx
	mov	ecx, esi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, edi
	lea	rdi, .LC0[rip]
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdx
	mov	rdx, r13
	mov	rsi, rbx
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	QWORD PTR 16[rsp], r8
	call	TRACE@PLT
	mov	edx, DWORD PTR CB_GETCURSEL[rip]
	xor	r8d, r8d
	xor	ecx, ecx
	mov	esi, ebp
	mov	edi, r12d
	call	SendDlgItemMessageA@PLT
	cmp	DWORD PTR CB_ERR[rip], eax
	jne	.L29
.L2:
	cmp	QWORD PTR 16[rsp], 0
	mov	eax, DWORD PTR cmb2[rip]
	mov	QWORD PTR 8[rsp], 0
	je	.L4
.L35:
	cmp	ebp, eax
	mov	rax, QWORD PTR 16[rsp]
	je	.L30
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR 40[rsp], rax
.L7:
	mov	eax, DWORD PTR DC_BINNAMES[rip]
	mov	ebp, DWORD PTR cmb3[rip]
	mov	r14d, 24
	mov	DWORD PTR 24[rsp], eax
	mov	eax, DWORD PTR DC_BINS[rip]
	mov	DWORD PTR 36[rsp], eax
.L8:
	mov	r8, QWORD PTR 16[rsp]
	mov	edx, DWORD PTR 24[rsp]
	xor	ecx, ecx
	mov	rsi, r13
	mov	rdi, rbx
	call	DeviceCapabilitiesA@PLT
	mov	r15d, eax
	test	eax, eax
	je	.L31
	mov	eax, DWORD PTR FALSE[rip]
	js	.L1
.L10:
	mov	r8, QWORD PTR 16[rsp]
	mov	edx, DWORD PTR 36[rsp]
	xor	ecx, ecx
	mov	rsi, r13
	mov	rdi, rbx
	call	DeviceCapabilitiesA@PLT
	cmp	eax, r15d
	jne	.L12
	mov	edx, r15d
	sal	r15d, 3
	imul	edx, r14d
.L13:
	xor	eax, eax
	mov	DWORD PTR [rsp], edx
	call	GetProcessHeap@PLT
	mov	edx, DWORD PTR [rsp]
	xor	esi, esi
	mov	edi, eax
	call	HeapAlloc@PLT
	mov	QWORD PTR [rsp], rax
	xor	eax, eax
	call	GetProcessHeap@PLT
	mov	edx, r15d
	xor	esi, esi
	mov	edi, eax
	call	HeapAlloc@PLT
	mov	r8, QWORD PTR 16[rsp]
	mov	rsi, r13
	mov	rdi, rbx
	mov	rcx, QWORD PTR [rsp]
	mov	edx, DWORD PTR 24[rsp]
	mov	r15, rax
	call	DeviceCapabilitiesA@PLT
	mov	r8, QWORD PTR 16[rsp]
	mov	rsi, r13
	mov	rdi, rbx
	mov	edx, DWORD PTR 36[rsp]
	mov	rcx, r15
	xor	r13d, r13d
	call	DeviceCapabilitiesA@PLT
	mov	edx, DWORD PTR CB_RESETCONTENT[rip]
	xor	r8d, r8d
	xor	ecx, ecx
	mov	ebx, eax
	mov	esi, ebp
	mov	edi, r12d
	call	SendDlgItemMessageA@PLT
	test	ebx, ebx
	jle	.L14
	.p2align 4,,10
	.p2align 3
.L15:
	mov	eax, r14d
	mov	rdx, QWORD PTR [rsp]
	xor	ecx, ecx
	mov	esi, ebp
	imul	eax, r13d
	mov	edi, r12d
	cdqe
	lea	r8, [rdx+rax]
	mov	edx, DWORD PTR CB_ADDSTRING[rip]
	call	SendDlgItemMessageA@PLT
	mov	edx, DWORD PTR CB_SETITEMDATA[rip]
	mov	esi, ebp
	mov	edi, r12d
	mov	rcx, rax
	movsx	rax, r13d
	add	r13d, 1
	mov	r8, QWORD PTR [r15+rax*8]
	call	SendDlgItemMessageA@PLT
	cmp	ebx, r13d
	jg	.L15
	xor	r14d, r14d
	mov	QWORD PTR 24[rsp], r15
	xor	r13d, r13d
	mov	r15d, r14d
	mov	r14, QWORD PTR 40[rsp]
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L33:
	mov	edx, DWORD PTR CB_GETITEMDATA[rip]
	xor	r8d, r8d
	mov	ecx, r15d
	mov	esi, ebp
	mov	edi, r12d
	call	SendDlgItemMessageA@PLT
	cmp	rax, r14
	cmove	r13d, r15d
	add	r15d, 1
	cmp	ebx, r15d
	je	.L32
.L18:
	mov	edx, DWORD PTR CB_GETITEMDATA[rip]
	xor	r8d, r8d
	mov	ecx, r15d
	mov	esi, ebp
	mov	edi, r12d
	call	SendDlgItemMessageA@PLT
	cmp	rax, QWORD PTR 8[rsp]
	jne	.L33
	mov	r14d, r15d
	mov	r15, QWORD PTR 24[rsp]
	cmp	ebx, r14d
	jle	.L14
	cmp	QWORD PTR 16[rsp], 0
	mov	r13d, r14d
	je	.L14
	cmp	DWORD PTR cmb2[rip], ebp
	mov	rax, QWORD PTR 16[rsp]
	mov	rbx, QWORD PTR 8[rsp]
	je	.L34
	mov	QWORD PTR 8[rax], rbx
.L14:
	mov	edx, DWORD PTR CB_SETCURSEL[rip]
	xor	r8d, r8d
	mov	ecx, r13d
	mov	esi, ebp
	mov	edi, r12d
	call	SendDlgItemMessageA@PLT
	xor	eax, eax
	call	GetProcessHeap@PLT
	mov	rdx, r15
	xor	esi, esi
	mov	edi, eax
	xor	eax, eax
	call	HeapFree@PLT
	xor	eax, eax
	call	GetProcessHeap@PLT
	mov	rdx, QWORD PTR [rsp]
	xor	esi, esi
	mov	edi, eax
	xor	eax, eax
	call	HeapFree@PLT
	mov	eax, DWORD PTR TRUE[rip]
.L1:
	add	rsp, 56
	.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
.L30:
	.cfi_restore_state
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR 40[rsp], rax
.L6:
	mov	eax, DWORD PTR DC_PAPERNAMES[rip]
	mov	r14d, 64
	mov	DWORD PTR 24[rsp], eax
	mov	eax, DWORD PTR DC_PAPERS[rip]
	mov	DWORD PTR 36[rsp], eax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L29:
	mov	edx, DWORD PTR CB_GETITEMDATA[rip]
	xor	r8d, r8d
	mov	ecx, eax
	mov	esi, ebp
	mov	edi, r12d
	call	SendDlgItemMessageA@PLT
	cmp	QWORD PTR DMPAPER_USER[rip], rax
	mov	QWORD PTR 8[rsp], rax
	jle	.L2
	cmp	QWORD PTR 16[rsp], 0
	mov	eax, DWORD PTR cmb2[rip]
	jne	.L35
.L4:
	mov	QWORD PTR 40[rsp], 0
	cmp	ebp, eax
	jne	.L7
	mov	rax, QWORD PTR 16[rsp]
	mov	QWORD PTR 40[rsp], rax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L12:
	lea	rdi, .LC2[rip]
	xor	r15d, r15d
	call	ERR@PLT
	xor	edx, edx
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L32:
	mov	r15, QWORD PTR 24[rsp]
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L31:
	lea	rdi, .LC1[rip]
	call	WARN@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L34:
	mov	QWORD PTR [rax], rbx
	jmp	.L14
	.cfi_endproc
.LFE0:
	.size	PRINTDLG_SetUpPaperComboBoxA, .-PRINTDLG_SetUpPaperComboBoxA
	.comm	cmb3,4,4
	.comm	cmb2,4,4
	.comm	TRUE,4,4
	.comm	FALSE,4,4
	.comm	DMPAPER_USER,8,8
	.comm	DC_PAPERS,4,4
	.comm	DC_PAPERNAMES,4,4
	.comm	DC_BINS,4,4
	.comm	DC_BINNAMES,4,4
	.comm	CB_SETITEMDATA,4,4
	.comm	CB_SETCURSEL,4,4
	.comm	CB_RESETCONTENT,4,4
	.comm	CB_GETITEMDATA,4,4
	.comm	CB_GETCURSEL,4,4
	.comm	CB_ERR,4,4
	.comm	CB_ADDSTRING,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_SetUpPaperComboBoxA.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	" Printer: %s, Port: %s, ComboID: %d\012\000"
	.align	2
.LC1:
	.ascii	"no Name Entries found!\012\000"
	.align	2
.LC2:
	.ascii	"Number of caps is different\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	PRINTDLG_SetUpPaperComboBoxA, %function
PRINTDLG_SetUpPaperComboBoxA:
	@ args = 4, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r7, r2
	mov	r8, r3
	mov	r9, #0
	mov	r4, r1
	mov	r5, r0
	mov	r3, r1
	sub	sp, sp, #36
	mov	r2, r8
	mov	r1, r7
	ldr	r0, .L32
	bl	TRACE
	ldr	r2, .L32+4
	str	r9, [sp]
	ldr	r2, [r2]
	mov	r1, r4
	mov	r0, r5
	mov	r3, r9
	bl	SendDlgItemMessageA
	ldr	r2, .L32+8
	ldr	r2, [r2]
	cmp	r2, r0
	bne	.L27
.L2:
	mov	r3, #0
	str	r3, [sp, #12]
.L3:
	ldr	r3, [sp, #72]
	cmp	r3, #0
	ldr	r3, .L32+12
	ldr	r3, [r3]
	beq	.L4
	cmp	r3, r4
	ldr	r3, [sp, #72]
	beq	.L28
	ldr	r3, [r3, #4]
	str	r3, [sp, #8]
.L7:
	mov	r3, #24
	ldr	r1, .L32+16
	ldr	r2, .L32+20
	str	r3, [sp, #16]
	ldr	r3, .L32+24
	ldr	r4, [r1]
	ldr	r9, [r2]
	ldr	r10, [r3]
.L8:
	ldr	r3, [sp, #72]
	mov	r2, r9
	str	r3, [sp]
	mov	r1, r8
	mov	r3, #0
	mov	r0, r7
	bl	DeviceCapabilitiesA
	subs	r6, r0, #0
	beq	.L29
	blt	.L30
.L10:
	ldr	r3, [sp, #72]
	mov	r2, r10
	str	r3, [sp]
	mov	r1, r8
	mov	r3, #0
	mov	r0, r7
	bl	DeviceCapabilitiesA
	cmp	r0, r6
	bne	.L12
	ldr	fp, [sp, #16]
	mul	fp, r6, fp
	lsl	r6, r6, #2
.L13:
	bl	GetProcessHeap
	mov	r2, fp
	mov	r1, #0
	bl	HeapAlloc
	mov	fp, r0
	str	r0, [sp, #20]
	bl	GetProcessHeap
	mov	r2, r6
	mov	r1, #0
	bl	HeapAlloc
	mov	r6, r0
	ldr	r3, [sp, #72]
	mov	r1, r8
	mov	r2, r9
	str	r0, [sp, #24]
	str	r3, [sp]
	mov	r0, r7
	mov	r3, fp
	bl	DeviceCapabilitiesA
	ldr	r3, [sp, #72]
	mov	r1, r8
	mov	r2, r10
	mov	r0, r7
	str	r3, [sp]
	mov	r3, r6
	bl	DeviceCapabilitiesA
	mov	r7, #0
	mov	r8, r0
	ldr	r2, .L32+28
	str	r7, [sp]
	mov	r3, r7
	mov	r1, r4
	mov	r0, r5
	ldr	r2, [r2]
	bl	SendDlgItemMessageA
	cmp	r8, r7
	ble	.L14
	sub	r6, r6, #4
	add	r9, r6, r8, lsl #2
	mov	r7, fp
	str	r8, [sp, #28]
	ldr	fp, .L32+32
	mov	r8, r4
	ldr	r10, .L32+36
	mov	r4, r9
	ldr	r9, [sp, #16]
.L15:
	str	r7, [sp]
	mov	r3, #0
	mov	r1, r8
	ldr	r2, [fp]
	mov	r0, r5
	bl	SendDlgItemMessageA
	ldr	r2, [r6, #4]!
	mov	r3, r0
	str	r2, [sp]
	mov	r1, r8
	mov	r0, r5
	ldr	r2, [r10]
	bl	SendDlgItemMessageA
	cmp	r6, r4
	add	r7, r7, r9
	bne	.L15
	mov	r7, #0
	mov	r4, r8
	mov	r10, r7
	mov	r9, r7
	ldr	r8, [sp, #28]
	ldr	r6, .L32+40
	ldr	fp, [sp, #12]
	b	.L18
.L31:
	str	r9, [sp]
	mov	r3, r10
	mov	r1, r4
	mov	r0, r5
	ldr	r2, [r6]
	bl	SendDlgItemMessageA
	ldr	r3, [sp, #8]
	cmp	r0, r3
	moveq	r7, r10
	add	r10, r10, #1
	cmp	r8, r10
	beq	.L14
.L18:
	str	r9, [sp]
	mov	r3, r10
	mov	r1, r4
	mov	r0, r5
	ldr	r2, [r6]
	bl	SendDlgItemMessageA
	cmp	r0, fp
	bne	.L31
	cmp	r8, r10
	ble	.L14
	ldr	r3, [sp, #72]
	cmp	r3, #0
	moveq	r7, r10
	beq	.L14
	mov	r7, r10
	ldr	r3, .L32+12
	ldr	r2, [sp, #12]
	ldr	r3, [r3]
	cmp	r3, r4
	ldr	r3, [sp, #72]
	streq	r2, [r3]
	strne	r2, [r3, #4]
.L14:
	mov	r6, #0
	ldr	r2, .L32+44
	str	r6, [sp]
	mov	r3, r7
	mov	r1, r4
	ldr	r2, [r2]
	mov	r0, r5
	bl	SendDlgItemMessageA
	bl	GetProcessHeap
	mov	r1, r6
	ldr	r2, [sp, #24]
	bl	HeapFree
	bl	GetProcessHeap
	mov	r1, r6
	ldr	r2, [sp, #20]
	bl	HeapFree
	ldr	r3, .L32+48
	ldr	r0, [r3]
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L28:
	ldr	r3, [r3]
	str	r3, [sp, #8]
.L6:
	ldr	r3, .L32+52
	ldr	r2, .L32+56
	ldr	r10, [r3]
	mov	r3, #64
	ldr	r9, [r2]
	str	r3, [sp, #16]
	b	.L8
.L27:
	ldr	r6, .L32+40
	str	r9, [sp]
	mov	r3, r0
	mov	r1, r4
	mov	r0, r5
	ldr	r2, [r6]
	bl	SendDlgItemMessageA
	ldr	r3, .L32+60
	str	r0, [sp, #12]
	ldr	r3, [r3]
	cmp	r3, r0
	bgt	.L3
	b	.L2
.L12:
	mov	r6, #0
	ldr	r0, .L32+64
	mov	fp, r6
	bl	ERR
	b	.L13
.L29:
	ldr	r0, .L32+68
	bl	WARN
	b	.L10
.L4:
	cmp	r3, r4
	ldr	r3, [sp, #72]
	str	r3, [sp, #8]
	bne	.L7
	b	.L6
.L30:
	ldr	r3, .L32+72
	ldr	r0, [r3]
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L33:
	.align	2
.L32:
	.word	.LC0
	.word	CB_GETCURSEL
	.word	CB_ERR
	.word	cmb2
	.word	cmb3
	.word	DC_BINNAMES
	.word	DC_BINS
	.word	CB_RESETCONTENT
	.word	CB_ADDSTRING
	.word	CB_SETITEMDATA
	.word	CB_GETITEMDATA
	.word	CB_SETCURSEL
	.word	TRUE
	.word	DC_PAPERS
	.word	DC_PAPERNAMES
	.word	DMPAPER_USER
	.word	.LC2
	.word	.LC1
	.word	FALSE
	.size	PRINTDLG_SetUpPaperComboBoxA, .-PRINTDLG_SetUpPaperComboBoxA
	.comm	cmb3,4,4
	.comm	cmb2,4,4
	.comm	TRUE,4,4
	.comm	FALSE,4,4
	.comm	DMPAPER_USER,4,4
	.comm	DC_PAPERS,4,4
	.comm	DC_PAPERNAMES,4,4
	.comm	DC_BINS,4,4
	.comm	DC_BINNAMES,4,4
	.comm	CB_SETITEMDATA,4,4
	.comm	CB_SETCURSEL,4,4
	.comm	CB_RESETCONTENT,4,4
	.comm	CB_GETITEMDATA,4,4
	.comm	CB_GETCURSEL,4,4
	.comm	CB_ERR,4,4
	.comm	CB_ADDSTRING,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
