	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function PRINTDLG_SetUpPrinterListComboW
_PRINTDLG_SetUpPrinterListComboW:       ## @PRINTDLG_SetUpPrinterListComboW
	.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	$1096, %rsp                     ## imm = 0x448
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -1120(%rbp)               ## 8-byte Spill
	movl	%esi, %r14d
	movl	%edi, %r12d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PRINTER_ENUM_LOCAL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	-1096(%rbp), %r13
	movq	%r13, (%rsp)
	leaq	-1104(%rbp), %r9
	xorl	%esi, %esi
	movl	$2, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_EnumPrintersW
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	-1104(%rbp), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapAlloc
	movq	%rax, %r15
	movl	(%rbx), %edi
	movq	-1104(%rbp), %r8
	movq	%r13, (%rsp)
	xorl	%esi, %esi
	movl	$2, %edx
	movq	%rax, %rcx
	leaq	-1104(%rbp), %r9
	callq	_EnumPrintersW
	cmpq	$0, -1096(%rbp)
	je	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	movq	_CB_ADDSTRING@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edx
	movl	(%r15,%rbx,8), %r8d
	movl	%r12d, %edi
	movl	%r14d, %esi
	xorl	%ecx, %ecx
	callq	_SendDlgItemMessageW
	incq	%rbx
	cmpq	-1096(%rbp), %rbx
	jb	LBB0_2
LBB0_3:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%r15, %rdx
	callq	_HeapFree
	movq	-1120(%rbp), %rbx               ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.5:
	movq	_CB_FINDSTRINGEXACT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r12d, %edi
	movl	%r14d, %esi
	movq	$-1, %rcx
	movl	%ebx, %r8d
	callq	_SendDlgItemMessageW
	movq	%rax, %r15
	movq	_CB_ERR@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jne	LBB0_10
## %bb.6:
	leaq	-1088(%rbp), %rdi
	callq	_ARRAY_SIZE
	movq	%rax, -1112(%rbp)
	movq	%rbx, %rdi
	callq	_debugstr_w
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_WARN
	jmp	LBB0_7
LBB0_4:
	leaq	-1088(%rbp), %rdi
	callq	_ARRAY_SIZE
	movq	%rax, -1112(%rbp)
LBB0_7:
	leaq	-1088(%rbp), %rdi
	leaq	-1112(%rbp), %rsi
	callq	_GetDefaultPrinterW
	testl	%eax, %eax
	je	LBB0_11
## %bb.8:
	movq	_CB_FINDSTRINGEXACT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-1088(%rbp), %r8
	movl	%r12d, %edi
	movl	%r14d, %esi
	movq	$-1, %rcx
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_SendDlgItemMessageW
	movq	%rax, %r15
	movq	_CB_ERR@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	jne	LBB0_10
## %bb.9:
	leaq	L_.str.1(%rip), %rdi
	callq	_TRACE
LBB0_10:
	movq	_CB_SETCURSEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r12d, %edi
	movl	%r14d, %esi
	movq	%r15, %rcx
	xorl	%r8d, %r8d
	callq	_SendDlgItemMessageW
LBB0_11:
	movq	-1096(%rbp), %rax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_13
## %bb.12:
	addq	$1096, %rsp                     ## imm = 0x448
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PRINTER_ENUM_LOCAL,4,2         ## @PRINTER_ENUM_LOCAL
	.comm	_CB_ADDSTRING,4,2               ## @CB_ADDSTRING
	.comm	_CB_FINDSTRINGEXACT,4,2         ## @CB_FINDSTRINGEXACT
	.comm	_CB_ERR,8,3                     ## @CB_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't find %s in printer list so trying to find default\n"

L_.str.1:                               ## @.str.1
	.asciz	"Can't find default printer in printer list\n"

	.comm	_CB_SETCURSEL,4,2               ## @CB_SETCURSEL
	.no_dead_strip	_PRINTDLG_SetUpPrinterListComboW
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function PRINTDLG_SetUpPrinterListComboW
_PRINTDLG_SetUpPrinterListComboW:       ; @PRINTDLG_SetUpPrinterListComboW
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [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 w27, -72
	.cfi_offset w28, -80
	sub	sp, sp, #1072
	mov	x21, x2
	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]
Lloh3:
	adrp	x23, _PRINTER_ENUM_LOCAL@GOTPAGE
Lloh4:
	ldr	x23, [x23, _PRINTER_ENUM_LOCAL@GOTPAGEOFF]
	ldr	w0, [x23]
	add	x5, sp, #16
	add	x6, sp, #8
	mov	x1, #0
	mov	w2, #2
	mov	x3, #0
	mov	x4, #0
	bl	_EnumPrintersW
	bl	_GetProcessHeap
	ldr	x2, [sp, #16]
	mov	w1, #0
	bl	_HeapAlloc
	mov	x22, x0
	ldr	w0, [x23]
	ldr	x4, [sp, #16]
	add	x5, sp, #16
	add	x6, sp, #8
	mov	x1, #0
	mov	w2, #2
	mov	x3, x22
	bl	_EnumPrintersW
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x23, #0
Lloh5:
	adrp	x24, _CB_ADDSTRING@GOTPAGE
Lloh6:
	ldr	x24, [x24, _CB_ADDSTRING@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x24]
	ldr	x4, [x22, x23, lsl #3]
	mov	x0, x20
	mov	x1, x19
	mov	x3, #0
                                        ; kill: def $w4 killed $w4 killed $x4
	bl	_SendDlgItemMessageW
	add	x23, x23, #1
	ldr	x8, [sp, #8]
	cmp	x23, x8
	b.lo	LBB0_2
LBB0_3:
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x22
	bl	_HeapFree
Lloh7:
	adrp	x24, _CB_FINDSTRINGEXACT@GOTPAGE
Lloh8:
	ldr	x24, [x24, _CB_FINDSTRINGEXACT@GOTPAGEOFF]
Lloh9:
	adrp	x23, _CB_ERR@GOTPAGE
Lloh10:
	ldr	x23, [x23, _CB_ERR@GOTPAGEOFF]
	cbz	x21, LBB0_6
; %bb.4:
	ldr	w2, [x24]
	mov	x0, x20
	mov	x1, x19
	mov	x3, #-1
	mov	x4, x21
	bl	_SendDlgItemMessageW
	mov	x22, x0
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.5:
	add	x0, sp, #24
	bl	_ARRAY_SIZE
	str	x0, [sp]
	mov	x0, x21
	bl	_debugstr_w
	mov	x1, x0
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_WARN
	b	LBB0_7
LBB0_6:
	add	x0, sp, #24
	bl	_ARRAY_SIZE
	str	x0, [sp]
LBB0_7:
	add	x0, sp, #24
	mov	x1, sp
	bl	_GetDefaultPrinterW
	cbz	w0, LBB0_11
; %bb.8:
	ldr	w2, [x24]
	add	x4, sp, #24
	mov	x0, x20
	mov	x1, x19
	mov	x3, #-1
	bl	_SendDlgItemMessageW
	mov	x22, x0
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.9:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_TRACE
LBB0_10:
Lloh15:
	adrp	x8, _CB_SETCURSEL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CB_SETCURSEL@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	x3, x22
	mov	w4, #0
	bl	_SendDlgItemMessageW
LBB0_11:
	ldr	x0, [sp, #8]
	ldur	x8, [x29, #-72]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	add	sp, sp, #1072
	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	x28, x27, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_PRINTER_ENUM_LOCAL,4,2         ; @PRINTER_ENUM_LOCAL
	.comm	_CB_ADDSTRING,4,2               ; @CB_ADDSTRING
	.comm	_CB_FINDSTRINGEXACT,4,2         ; @CB_FINDSTRINGEXACT
	.comm	_CB_ERR,8,3                     ; @CB_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't find %s in printer list so trying to find default\n"

l_.str.1:                               ; @.str.1
	.asciz	"Can't find default printer in printer list\n"

	.comm	_CB_SETCURSEL,4,2               ; @CB_SETCURSEL
	.no_dead_strip	_PRINTDLG_SetUpPrinterListComboW
.subsections_via_symbols
