	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_printer_setup
_check_printer_setup:                   ## @check_printer_setup
	.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	%rbx
	subq	$2088, %rsp                     ## imm = 0x828
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r15d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_PRINTER_ENUM_LOCAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-2096(%rbp), %rbx
	movq	%rbx, (%rsp)
	leaq	-2088(%rbp), %r9
	xorl	%esi, %esi
	movl	$2, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_EnumPrintersW
	movq	-2088(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	testq	%rax, %rax
	jle	LBB0_4
LBB0_3:
	movq	_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movq	_PRINTER_ENUM_CONNECTIONS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, (%rsp)
	leaq	-2088(%rbp), %r9
	xorl	%esi, %esi
	movl	$2, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_EnumPrintersW
	movq	-2088(%rbp), %rax
	testq	%rax, %rax
	jg	LBB0_3
LBB0_4:
	movq	_COMDLG32_hInstance@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_PD32_NO_DEVICES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-2080(%rbp), %r14
	movq	%r14, %rdx
	movl	$255, %ecx
	callq	_LoadStringW
	movl	(%rbx), %edi
	movq	_PD32_PRINT_TITLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-1056(%rbp), %rbx
	movq	%rbx, %rdx
	movl	$255, %ecx
	callq	_LoadStringW
	movq	_MB_OK@GOTPCREL(%rip), %rax
	movq	_MB_ICONWARNING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%r15d, %edi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_MessageBoxW
	movq	_FALSE@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_7
## %bb.6:
	addq	$2088, %rsp                     ## imm = 0x828
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PRINTER_ENUM_LOCAL,4,2         ## @PRINTER_ENUM_LOCAL
	.comm	_PRINTER_ENUM_CONNECTIONS,4,2   ## @PRINTER_ENUM_CONNECTIONS
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_COMDLG32_hInstance,4,2         ## @COMDLG32_hInstance
	.comm	_PD32_NO_DEVICES,4,2            ## @PD32_NO_DEVICES
	.comm	_PD32_PRINT_TITLE,4,2           ## @PD32_PRINT_TITLE
	.comm	_MB_OK,4,2                      ## @MB_OK
	.comm	_MB_ICONWARNING,4,2             ## @MB_ICONWARNING
	.comm	_FALSE,4,2                      ## @FALSE
	.no_dead_strip	_check_printer_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_printer_setup
_check_printer_setup:                   ; @check_printer_setup
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w27, -40
	.cfi_offset w28, -48
	sub	sp, sp, #2080
	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, #-40]
Lloh3:
	adrp	x8, _PRINTER_ENUM_LOCAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PRINTER_ENUM_LOCAL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x5, sp, #16
	add	x6, sp, #8
	mov	x1, #0
	mov	w2, #2
	mov	x3, #0
	mov	w4, #0
	bl	_EnumPrintersW
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_3
; %bb.1:
	cmp	x8, #0
	b.le	LBB0_4
LBB0_2:
Lloh6:
	adrp	x8, _TRUE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
Lloh8:
	adrp	x8, _PRINTER_ENUM_CONNECTIONS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PRINTER_ENUM_CONNECTIONS@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	add	x5, sp, #16
	add	x6, sp, #8
	mov	x1, #0
	mov	w2, #2
	mov	x3, #0
	mov	w4, #0
	bl	_EnumPrintersW
	ldr	x8, [sp, #16]
	cmp	x8, #0
	b.gt	LBB0_2
LBB0_4:
Lloh11:
	adrp	x20, _COMDLG32_hInstance@GOTPAGE
Lloh12:
	ldr	x20, [x20, _COMDLG32_hInstance@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh13:
	adrp	x8, _PD32_NO_DEVICES@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PD32_NO_DEVICES@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	add	x2, sp, #24
	mov	w3, #255
	bl	_LoadStringW
	ldr	w0, [x20]
Lloh16:
	adrp	x8, _PD32_PRINT_TITLE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PD32_PRINT_TITLE@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	add	x2, sp, #1048
	mov	w3, #255
	bl	_LoadStringW
Lloh19:
	adrp	x8, _MB_OK@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MB_OK@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _MB_ICONWARNING@GOTPAGE
Lloh23:
	ldr	x9, [x9, _MB_ICONWARNING@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w3, w9, w8
	add	x1, sp, #24
	add	x2, sp, #1048
	mov	x0, x19
	bl	_MessageBoxW
Lloh25:
	adrp	x8, _FALSE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	ldur	x8, [x29, #-40]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	add	sp, sp, #2080
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #48             ; 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 AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_PRINTER_ENUM_LOCAL,4,2         ; @PRINTER_ENUM_LOCAL
	.comm	_PRINTER_ENUM_CONNECTIONS,4,2   ; @PRINTER_ENUM_CONNECTIONS
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_COMDLG32_hInstance,4,2         ; @COMDLG32_hInstance
	.comm	_PD32_NO_DEVICES,4,2            ; @PD32_NO_DEVICES
	.comm	_PD32_PRINT_TITLE,4,2           ; @PD32_PRINT_TITLE
	.comm	_MB_OK,4,2                      ; @MB_OK
	.comm	_MB_ICONWARNING,4,2             ; @MB_ICONWARNING
	.comm	_FALSE,4,2                      ; @FALSE
	.no_dead_strip	_check_printer_setup
.subsections_via_symbols
