	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pagesetup_change_printer_dialog
_pagesetup_change_printer_dialog:       ## @pagesetup_change_printer_dialog
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movl	%edi, %r14d
	leaq	-80(%rbp), %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movl	$40, -80(%rbp)
	movq	$0, -48(%rbp)
	movl	%r14d, -56(%rbp)
	movq	%r12, %rdi
	callq	_pagesetup_get_drvname
	movl	%eax, %r13d
	movq	%r12, %rdi
	callq	_pagesetup_get_devname
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_pagesetup_get_portname
	movl	%eax, %r15d
	leaq	-72(%rbp), %rdi
	movq	$0, -72(%rbp)
	movl	%r13d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_PRINTDLG_CreateDevNamesW
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_pagesetup_release_a_devname
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_pagesetup_release_a_devname
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_pagesetup_release_a_devname
	movq	%r12, %rdi
	callq	_pagesetup_get_devmode
	movq	%rax, %rbx
	movq	_GMEM_MOVEABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rsi
	addq	8(%rbx), %rsi
	callq	_GlobalAlloc
	movq	%rax, -64(%rbp)
	movq	%rax, %rdi
	callq	_GlobalLock
	movq	(%rbx), %rdx
	addq	8(%rbx), %rdx
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_memcpy
	movq	-64(%rbp), %rdi
	callq	_GlobalUnlock
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_pagesetup_release_devmode
	leaq	-80(%rbp), %rdi
	callq	_PrintDlgW
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	-64(%rbp), %rdi
	callq	_GlobalLock
	movq	%rax, %rbx
	movq	-72(%rbp), %rdi
	callq	_GlobalLock
	movslq	(%rax), %rcx
	leaq	(%rax,%rcx,4), %rsi
	movslq	4(%rax), %rcx
	leaq	(%rax,%rcx,4), %rdx
	movslq	8(%rax), %rcx
	leaq	(%rax,%rcx,4), %rcx
	movq	%r12, %rdi
	callq	_pagesetup_set_devnames
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_pagesetup_set_devmode
	movq	-72(%rbp), %rdi
	callq	_GlobalUnlock
	movq	-64(%rbp), %rdi
	callq	_GlobalUnlock
	movl	%r14d, %edi
	movq	%r12, %rsi
	callq	_pagesetup_init_combos
LBB0_2:
	movq	-64(%rbp), %rdi
	callq	_GlobalFree
	movq	-72(%rbp), %rdi
	callq	_GlobalFree
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GMEM_MOVEABLE,4,2              ## @GMEM_MOVEABLE
	.no_dead_strip	_pagesetup_change_printer_dialog
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pagesetup_change_printer_dialog
_pagesetup_change_printer_dialog:       ; @pagesetup_change_printer_dialog
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x19, x1
	mov	x20, x0
	add	x24, sp, #8
	mov	w21, #40
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	str	xzr, [sp, #40]
	str	w21, [sp, #8]
	str	w20, [sp, #32]
	mov	x0, x19
	bl	_pagesetup_get_drvname
	mov	x21, x0
	mov	x0, x19
	bl	_pagesetup_get_devname
	mov	x22, x0
	mov	x0, x19
	bl	_pagesetup_get_portname
	mov	x23, x0
	add	x0, x24, #8
	str	xzr, [sp, #16]
	mov	x1, x21
	mov	x2, x22
	mov	x3, x23
	bl	_PRINTDLG_CreateDevNamesW
	mov	x0, x19
	mov	x1, x23
	bl	_pagesetup_release_a_devname
	mov	x0, x19
	mov	x1, x22
	bl	_pagesetup_release_a_devname
	mov	x0, x19
	mov	x1, x21
	bl	_pagesetup_release_a_devname
	mov	x0, x19
	bl	_pagesetup_get_devmode
	mov	x21, x0
Lloh0:
	adrp	x8, _GMEM_MOVEABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GMEM_MOVEABLE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldp	x9, x8, [x21]
	add	x1, x9, x8
	bl	_GlobalAlloc
	str	x0, [sp, #24]
	bl	_GlobalLock
	ldp	x9, x8, [x21]
	add	x2, x9, x8
	mov	x1, x21
	bl	_memcpy
	ldr	x0, [sp, #24]
	bl	_GlobalUnlock
	mov	x0, x19
	mov	x1, x21
	bl	_pagesetup_release_devmode
	add	x0, sp, #8
	bl	_PrintDlgW
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x0, [sp, #24]
	bl	_GlobalLock
	mov	x21, x0
	ldr	x0, [sp, #16]
	bl	_GlobalLock
	ldpsw	x8, x9, [x0]
	add	x1, x0, x8, lsl #2
	add	x2, x0, x9, lsl #2
	ldrsw	x8, [x0, #8]
	add	x3, x0, x8, lsl #2
	mov	x0, x19
	bl	_pagesetup_set_devnames
	mov	x0, x19
	mov	x1, x21
	bl	_pagesetup_set_devmode
	ldr	x0, [sp, #16]
	bl	_GlobalUnlock
	ldr	x0, [sp, #24]
	bl	_GlobalUnlock
	mov	x0, x20
	mov	x1, x19
	bl	_pagesetup_init_combos
LBB0_2:
	ldr	x0, [sp, #24]
	bl	_GlobalFree
	ldr	x0, [sp, #16]
	bl	_GlobalFree
	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
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GMEM_MOVEABLE,4,2              ; @GMEM_MOVEABLE
	.no_dead_strip	_pagesetup_change_printer_dialog
.subsections_via_symbols
