	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function pagesetup_set_devnames
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_pagesetup_set_devnames:                ## @pagesetup_set_devnames
	.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
	movl	%ecx, %ebx
	movl	%edx, %r12d
	movl	%esi, %ecx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	cmpq	$0, 8(%rdi)
	movl	%ebx, -1080(%rbp)               ## 4-byte Spill
	movl	%esi, -1084(%rbp)               ## 4-byte Spill
	je	LBB0_2
## %bb.1:
	movl	%ecx, %edi
	callq	_lstrlenW
                                        ## kill: def $eax killed $eax def $rax
	leal	4(,%rax,4), %r13d
	movl	%r12d, %edi
	callq	_lstrlenW
                                        ## kill: def $eax killed $eax def $rax
	leal	4(,%rax,4), %r15d
	movl	%ebx, %edi
	callq	_lstrlenW
                                        ## kill: def $eax killed $eax def $rax
	leal	4(,%rax,4), %eax
	jmp	LBB0_3
LBB0_2:
	movq	%r14, %rbx
	movq	_CP_ACP@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsp)
	xorl	%esi, %esi
	movl	%ecx, %edx
	movl	$-1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_WideCharToMultiByte
	movl	%eax, %r13d
	movl	(%r14), %edi
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsp)
	xorl	%esi, %esi
	movl	%r12d, %edx
	movl	$-1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_WideCharToMultiByte
	movl	%eax, %r15d
	movl	(%r14), %edi
	movq	%rbx, %r14
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsp)
	xorl	%esi, %esi
	movl	-1080(%rbp), %edx               ## 4-byte Reload
	movl	$-1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_WideCharToMultiByte
                                        ## kill: def $eax killed $eax def $rax
LBB0_3:
	movq	%rax, -1096(%rbp)               ## 8-byte Spill
	addl	%r15d, %eax
	leal	16(%r13,%rax), %esi
	movq	(%r14), %rax
	movl	(%rax), %edi
	movq	_GMEM_MOVEABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testl	%edi, %edi
	je	LBB0_5
## %bb.4:
	callq	_GlobalReAlloc
	jmp	LBB0_6
LBB0_5:
	movl	%edx, %edi
	callq	_GlobalAlloc
LBB0_6:
	movq	(%r14), %rcx
	movl	%eax, (%rcx)
	movl	%eax, %edi
	callq	_GlobalLock
	movq	%r14, %rbx
	movq	%rax, %r14
	movq	%rbx, -1104(%rbp)               ## 8-byte Spill
	cmpq	$0, 8(%rbx)
	je	LBB0_8
## %bb.7:
	leaq	16(%r14), %rdi
	movl	$4, -1076(%rbp)
	movl	$4, (%r14)
	movl	-1084(%rbp), %esi               ## 4-byte Reload
	callq	_lstrcpyW
	movslq	%r13d, %rax
	andq	$-4, %rax
	leaq	(%r14,%rax), %rbx
	addq	$16, %rbx
	sarl	$2, %r13d
	addl	-1076(%rbp), %r13d
	movl	%r13d, 4(%r14)
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_lstrcpyW
	movslq	%r15d, %rax
	movq	%rax, %rdi
	andq	$-4, %rdi
	addq	%rbx, %rdi
	sarl	$2, %eax
	addl	%r13d, %eax
	movl	%eax, 8(%r14)
	movl	-1080(%rbp), %esi               ## 4-byte Reload
	callq	_lstrcpyW
	jmp	LBB0_9
LBB0_8:
	leaq	16(%r14), %r8
	movl	$16, -1076(%rbp)
	movl	$16, (%r14)
	movq	_CP_ACP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsp)
	xorl	%esi, %esi
	movl	-1084(%rbp), %edx               ## 4-byte Reload
	movl	$-1, %ecx
	movl	%r13d, %r9d
	callq	_WideCharToMultiByte
	movslq	%r13d, %rax
	leaq	(%r14,%rax), %rbx
	addq	$16, %rbx
	addl	-1076(%rbp), %r13d
	movl	%r13d, 4(%r14)
	movq	_CP_ACP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsp)
	xorl	%esi, %esi
	movl	%r12d, %edx
	movl	$-1, %ecx
	movq	%rbx, %r8
	movl	%r15d, %r9d
	callq	_WideCharToMultiByte
	movslq	%r15d, %r8
	addq	%rbx, %r8
	addl	%r15d, %r13d
	movl	%r13d, 8(%r14)
	movq	_CP_ACP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsp)
	xorl	%esi, %esi
	movl	-1080(%rbp), %edx               ## 4-byte Reload
	movl	$-1, %ecx
	movq	-1096(%rbp), %r9                ## 8-byte Reload
                                        ## kill: def $r9d killed $r9d killed $r9
	callq	_WideCharToMultiByte
LBB0_9:
	movl	$0, 12(%r14)
	leaq	-1072(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movl	%eax, -1076(%rbp)
	leaq	-1076(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_GetDefaultPrinterW
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_lstrcmpW
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:
	movl	$1, 12(%r14)
LBB0_11:
	movq	-1104(%rbp), %rax               ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_GlobalUnlock
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	addq	$1080, %rsp                     ## imm = 0x438
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CP_ACP,4,2                     ## @CP_ACP
	.comm	_GMEM_MOVEABLE,4,2              ## @GMEM_MOVEABLE
	.no_dead_strip	_pagesetup_set_devnames
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pagesetup_set_devnames
_pagesetup_set_devnames:                ; @pagesetup_set_devnames
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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 w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	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, #-96]
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x22
	bl	_lstrlenW
	lsl	w8, w0, #2
	add	w24, w8, #4
	mov	x0, x20
	bl	_lstrlenW
	lsl	w8, w0, #2
	add	w23, w8, #4
	mov	x0, x21
	bl	_lstrlenW
	lsl	w8, w0, #2
	add	w26, w8, #4
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x25, _CP_ACP@GOTPAGE
Lloh4:
	ldr	x25, [x25, _CP_ACP@GOTPAGEOFF]
	ldr	w0, [x25]
	mov	w1, #0
	mov	x2, x22
	mov	w3, #-1
	mov	x4, #0
	mov	w5, #0
	mov	x6, #0
	mov	x7, #0
	bl	_WideCharToMultiByte
	mov	x24, x0
	ldr	w0, [x25]
	mov	w1, #0
	mov	x2, x20
	mov	w3, #-1
	mov	x4, #0
	mov	w5, #0
	mov	x6, #0
	mov	x7, #0
	bl	_WideCharToMultiByte
	mov	x23, x0
	ldr	w0, [x25]
	mov	w1, #0
	mov	x2, x21
	mov	w3, #-1
	mov	x4, #0
	mov	w5, #0
	mov	x6, #0
	mov	x7, #0
	bl	_WideCharToMultiByte
	mov	x26, x0
LBB0_3:
	add	w8, w23, w26
	add	w8, w8, w24
	add	w1, w8, #16
	ldr	x8, [x19]
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _GMEM_MOVEABLE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GMEM_MOVEABLE@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	cbz	w0, LBB0_5
; %bb.4:
	bl	_GlobalReAlloc
	b	LBB0_6
LBB0_5:
	mov	x0, x2
	bl	_GlobalAlloc
LBB0_6:
	ldr	x8, [x19]
	str	w0, [x8]
	bl	_GlobalLock
	mov	x25, x0
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_8
; %bb.7:
	add	x26, x25, #16
	mov	w8, #4
	str	w8, [sp, #12]
	str	w8, [x25]
	mov	x0, x26
	mov	x1, x22
	bl	_lstrcpyW
	sxtw	x8, w24
	and	x8, x8, #0xfffffffffffffffc
	add	x22, x26, x8
	ldr	w8, [sp, #12]
	add	w24, w8, w24, asr #2
	str	w24, [x25, #4]
	mov	x0, x22
	mov	x1, x20
	bl	_lstrcpyW
	sxtw	x8, w23
	and	x8, x8, #0xfffffffffffffffc
	add	x0, x22, x8
	add	w8, w24, w23, asr #2
	str	w8, [x25, #8]
	mov	x1, x21
	bl	_lstrcpyW
	b	LBB0_9
LBB0_8:
	add	x27, x25, #16
	mov	w8, #16
	str	w8, [sp, #12]
	str	w8, [x25]
Lloh8:
	adrp	x28, _CP_ACP@GOTPAGE
Lloh9:
	ldr	x28, [x28, _CP_ACP@GOTPAGEOFF]
	ldr	w0, [x28]
	mov	w1, #0
	mov	x2, x22
	mov	w3, #-1
	mov	x4, x27
	mov	x5, x24
	mov	x6, #0
	mov	x7, #0
	bl	_WideCharToMultiByte
	add	x22, x27, w24, sxtw
	ldr	w8, [sp, #12]
	add	w24, w8, w24
	str	w24, [x25, #4]
	ldr	w0, [x28]
	mov	w1, #0
	mov	x2, x20
	mov	w3, #-1
	mov	x4, x22
	mov	x5, x23
	mov	x6, #0
	mov	x7, #0
	bl	_WideCharToMultiByte
	add	x4, x22, w23, sxtw
	add	w8, w24, w23
	str	w8, [x25, #8]
	ldr	w0, [x28]
	mov	w1, #0
	mov	x2, x21
	mov	w3, #-1
	mov	x5, x26
	mov	x6, #0
	mov	x7, #0
	bl	_WideCharToMultiByte
LBB0_9:
	str	wzr, [x25, #12]
	add	x0, sp, #16
	bl	_ARRAY_SIZE
	str	w0, [sp, #12]
	add	x0, sp, #16
	add	x1, sp, #12
	bl	_GetDefaultPrinterW
	add	x0, sp, #16
	mov	x1, x20
	bl	_lstrcmpW
	cbnz	w0, LBB0_11
; %bb.10:
	mov	w8, #1
	str	w8, [x25, #12]
LBB0_11:
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_GlobalUnlock
	ldur	x8, [x29, #-96]
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_13
; %bb.12:
	add	sp, sp, #1056
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_CP_ACP,4,2                     ; @CP_ACP
	.comm	_GMEM_MOVEABLE,4,2              ; @GMEM_MOVEABLE
	.no_dead_strip	_pagesetup_set_devnames
.subsections_via_symbols
