	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function PRINTDLG_CreateDevNamesW
_PRINTDLG_CreateDevNamesW:              ## @PRINTDLG_CreateDevNamesW
	.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	$1080, %rsp                     ## imm = 0x438
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, -1120(%rbp)               ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-1088(%rbp), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, -1092(%rbp)
	movq	%rbx, %rdi
	movl	$92, %esi
	callq	_wcsrchr
	leaq	4(%rax), %r13
	testq	%rax, %rax
	cmoveq	%rbx, %r13
	movq	%r13, %rdi
	callq	_lstrlenW
	movslq	%eax, %r15
	movq	%r12, -1104(%rbp)               ## 8-byte Spill
	movq	%r12, %rdi
	callq	_lstrlenW
	movslq	%eax, %rbx
	movq	%r14, -1112(%rbp)               ## 8-byte Spill
	movq	%r14, %rdi
	movq	-1120(%rbp), %r12               ## 8-byte Reload
	callq	_lstrlenW
	cltq
	addq	%rbx, %rax
	shlq	$2, %rax
	leaq	(%rax,%r15,4), %rsi
	addq	$10, %rsi
	movl	(%r12), %edi
	movq	_GMEM_MOVEABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testl	%edi, %edi
	je	LBB0_2
## %bb.1:
	callq	_GlobalReAlloc
	jmp	LBB0_3
LBB0_2:
	movl	%edx, %edi
	callq	_GlobalAlloc
LBB0_3:
	movl	%eax, (%r12)
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	%eax, %edi
	callq	_GlobalLock
	movq	%rax, %r15
	leaq	32(%rax), %rdi
	movq	%r13, %rsi
	callq	_lstrcpyW
	movq	$32, 24(%r15)
	movq	%r13, %rdi
	callq	_lstrlenW
	cltq
	leaq	(%rax,%r15), %r13
	addq	$32, %r13
	leaq	33(%rax,%r15), %rbx
	movq	%rbx, %rdi
	movq	-1104(%rbp), %r14               ## 8-byte Reload
	movq	%r14, %rsi
	callq	_lstrcpyW
	subq	%r15, %rbx
	movq	%rbx, 16(%r15)
	movq	%r14, %rdi
	callq	_lstrlenW
	cltq
	leaq	(%rax,%r13), %rbx
	addq	$2, %rbx
	movq	%rbx, %rdi
	movq	-1112(%rbp), %rsi               ## 8-byte Reload
	callq	_lstrcpyW
	subq	%r15, %rbx
	movq	%rbx, 8(%r15)
	leaq	-1088(%rbp), %rbx
	leaq	-1092(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_GetDefaultPrinterW
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_lstrcmpW
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
	movl	%ecx, (%r15)
	movl	(%r12), %edi
	callq	_GlobalUnlock
	movq	_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_FALSE@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_8
## %bb.7:
	addq	$1080, %rsp                     ## imm = 0x438
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_GMEM_MOVEABLE,4,2              ## @GMEM_MOVEABLE
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_PRINTDLG_CreateDevNamesW
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function PRINTDLG_CreateDevNamesW
_PRINTDLG_CreateDevNamesW:              ; @PRINTDLG_CreateDevNamesW
	.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, #1056
	mov	x21, x3
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	add	x0, sp, #8
	bl	_ARRAY_SIZE
	str	w0, [sp, #4]
	mov	x0, x22
	mov	w1, #92
	bl	_wcsrchr
	add	x8, x0, #4
	cmp	x0, #0
	csel	x22, x22, x8, eq
	mov	x0, x22
	bl	_lstrlenW
	mov	x23, x0
	mov	x0, x20
	bl	_lstrlenW
	mov	x24, x0
	mov	x0, x21
	bl	_lstrlenW
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	add	x8, x8, w24, sxtw
	lsl	x8, x8, #2
	add	x8, x8, w23, sxtw #2
	add	x1, x8, #10
	ldr	w0, [x19]
Lloh3:
	adrp	x8, _GMEM_MOVEABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GMEM_MOVEABLE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	cbz	w0, LBB0_3
; %bb.1:
	bl	_GlobalReAlloc
	str	w0, [x19]
	cbz	w0, LBB0_4
LBB0_2:
	bl	_GlobalLock
	mov	x23, x0
	add	x24, x0, #32
	mov	x0, x24
	mov	x1, x22
	bl	_lstrcpyW
	mov	w8, #32
	str	x8, [x23, #24]
	mov	x0, x22
	bl	_lstrlenW
	add	w8, w0, #1
	add	x22, x24, w8, sxtw
	mov	x0, x22
	mov	x1, x20
	bl	_lstrcpyW
	sub	x8, x22, x23
	str	x8, [x23, #16]
	mov	x0, x20
	bl	_lstrlenW
	add	w8, w0, #1
	add	x22, x22, w8, sxtw
	mov	x0, x22
	mov	x1, x21
	bl	_lstrcpyW
	sub	x8, x22, x23
	str	x8, [x23, #8]
	add	x0, sp, #8
	add	x1, sp, #4
	bl	_GetDefaultPrinterW
	add	x0, sp, #8
	mov	x1, x20
	bl	_lstrcmpW
	cmp	x0, #0
	cset	w8, eq
	str	w8, [x23]
	ldr	w0, [x19]
	bl	_GlobalUnlock
Lloh6:
	adrp	x8, _TRUE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
	mov	x0, x2
	bl	_GlobalAlloc
	str	w0, [x19]
	cbnz	w0, LBB0_2
LBB0_4:
Lloh8:
	adrp	x8, _FALSE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	ldur	x8, [x29, #-72]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	add	sp, sp, #1056
	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_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_GMEM_MOVEABLE,4,2              ; @GMEM_MOVEABLE
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_PRINTDLG_CreateDevNamesW
.subsections_via_symbols
