	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CncStatusPrinterWindowStart    ## -- Begin function CncStatusPrinterWindowStart
	.p2align	4, 0x90
_CncStatusPrinterWindowStart:           ## @CncStatusPrinterWindowStart
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_CncConnect
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	%rax, %r15
	xorl	%eax, %eax
	callq	_NewPack
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	movq	%rax, %rdi
	callq	_PackAddStr
	movq	(%r14), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_PackAddUniStr
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_SendPack
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_FreePack
	testl	%r12d, %r12d
	je	LBB0_6
## %bb.3:
	movl	$16, %edi
	callq	_ZeroMalloc
	movq	%r15, 8(%rax)
	movq	%r14, (%rax)
	movq	%rax, (%r15)
	movq	_CncStatusPrinterWindowThreadProc@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	%rax, %rsi
	callq	_NewThread
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_WaitThreadInit
	movq	%rbx, %rdi
	callq	_ReleaseThread
	jmp	LBB0_8
LBB0_6:
	movq	%r15, %rdi
	callq	_ReleaseSock
LBB0_7:
	xorl	%r15d, %r15d
LBB0_8:
	movq	%r15, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"function"

L_.str.1:                               ## @.str.1
	.asciz	"status_printer"

L_.str.2:                               ## @.str.2
	.asciz	"account_name"

	.comm	_CncStatusPrinterWindowThreadProc,4,2 ## @CncStatusPrinterWindowThreadProc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CncStatusPrinterWindowStart    ; -- Begin function CncStatusPrinterWindowStart
	.p2align	2
_CncStatusPrinterWindowStart:           ; @CncStatusPrinterWindowStart
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [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 w21, -40
	.cfi_offset w22, -48
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	bl	_CncConnect
	mov	x19, x0
	cbz	x0, LBB0_6
; %bb.2:
	bl	_NewPack
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_PackAddStr
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	w2, [x8]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_PackAddUniStr
	mov	x0, x19
	mov	x1, x21
	bl	_SendPack
	mov	x22, x0
	mov	x0, x21
	bl	_FreePack
	cbz	w22, LBB0_4
; %bb.3:
	mov	w0, #16
	bl	_ZeroMalloc
	mov	x1, x0
	stp	x20, x19, [x0]
	str	x0, [x19]
Lloh6:
	adrp	x8, _CncStatusPrinterWindowThreadProc@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CncStatusPrinterWindowThreadProc@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_NewThread
	mov	x20, x0
	bl	_WaitThreadInit
	mov	x0, x20
	bl	_ReleaseThread
	b	LBB0_6
LBB0_4:
	mov	x0, x19
	bl	_ReleaseSock
LBB0_5:
	mov	x19, #0
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"function"

l_.str.1:                               ; @.str.1
	.asciz	"status_printer"

l_.str.2:                               ; @.str.2
	.asciz	"account_name"

	.comm	_CncStatusPrinterWindowThreadProc,4,2 ; @CncStatusPrinterWindowThreadProc
.subsections_via_symbols
