	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hastctl
_hastctl:                               ## @hastctl
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	_cfgpath@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_yy_config_parse
	movl	$-1, %r15d
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	movq	%rax, %rbx
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdx
	xorl	%edi, %edi
	callq	_proto_client
	cmpl	$-1, %eax
	je	LBB0_2
## %bb.3:
	movq	-40(%rbp), %rdi
	movq	_HAST_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_proto_connect
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.6:
	movq	-40(%rbp), %rsi
	xorl	%edi, %edi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_hast_proto_send
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.8:
	movq	-40(%rbp), %rdi
	leaq	-48(%rbp), %rsi
	callq	_hast_proto_recv_hdr
	cmpl	$-1, %eax
	je	LBB0_9
## %bb.10:
	movq	-40(%rbp), %rdi
	callq	_proto_close
	movq	-48(%rbp), %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_nv_get_int16
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	leaq	L_.str.5(%rip), %rdi
	movl	%eax, %esi
	callq	_pjdlog_error
	movq	-48(%rbp), %rdi
	callq	_nv_free
	jmp	LBB0_13
LBB0_2:
	movl	(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_pjdlog_error
	jmp	LBB0_13
LBB0_4:
	movl	(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_5
LBB0_7:
	movl	(%rbx), %esi
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_5
LBB0_9:
	movl	(%rbx), %esi
	leaq	L_.str.3(%rip), %rdi
LBB0_5:
	callq	_pjdlog_error
	movq	-40(%rbp), %rdi
	callq	_proto_close
LBB0_13:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	-48(%rbp), %rdi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	callq	_nv_set_error
	movq	-48(%rbp), %rax
	movq	%rax, (%r14)
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_cfgpath,4,2                    ## @cfgpath
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to setup control connection to %s"

	.comm	_HAST_TIMEOUT,4,2               ## @HAST_TIMEOUT
L_.str.1:                               ## @.str.1
	.asciz	"Unable to connect to hastd via %s"

L_.str.2:                               ## @.str.2
	.asciz	"Unable to send command to hastd via %s"

L_.str.3:                               ## @.str.3
	.asciz	"cannot receive reply from hastd via %s"

L_.str.4:                               ## @.str.4
	.asciz	"error"

L_.str.5:                               ## @.str.5
	.asciz	"Error %d received from hastd."

	.no_dead_strip	_hastctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hastctl
_hastctl:                               ; @hastctl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _cfgpath@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cfgpath@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_yy_config_parse
	cbz	x0, LBB0_12
; %bb.1:
	mov	x20, x0
	ldr	w1, [x0]
	add	x2, sp, #8
	mov	x0, #0
	bl	_proto_client
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.2:
	ldr	x0, [sp, #8]
Lloh3:
	adrp	x8, _HAST_TIMEOUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HAST_TIMEOUT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_proto_connect
	cmn	w0, #1
	b.eq	LBB0_8
; %bb.3:
	ldr	x1, [sp, #8]
	mov	x0, #0
	mov	x2, x21
	mov	x3, #0
	mov	w4, #0
	bl	_hast_proto_send
	cmn	w0, #1
	b.eq	LBB0_9
; %bb.4:
	ldr	x0, [sp, #8]
	mov	x1, sp
	bl	_hast_proto_recv_hdr
	cmn	w0, #1
	b.eq	LBB0_10
; %bb.5:
	ldr	x0, [sp, #8]
	bl	_proto_close
	ldr	x0, [sp]
Lloh6:
	adrp	x1, l_.str.4@PAGE
Lloh7:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_nv_get_int16
	mov	x1, x0
	cbz	w0, LBB0_14
; %bb.6:
Lloh8:
	adrp	x0, l_.str.5@PAGE
Lloh9:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_pjdlog_error
	ldr	x0, [sp]
	bl	_nv_free
	b	LBB0_12
LBB0_7:
	ldr	w1, [x20]
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pjdlog_error
	b	LBB0_12
LBB0_8:
	ldr	w1, [x20]
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_9:
	ldr	w1, [x20]
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_10:
	ldr	w1, [x20]
Lloh16:
	adrp	x0, l_.str.3@PAGE
Lloh17:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_11:
	bl	_pjdlog_error
	ldr	x0, [sp, #8]
	bl	_proto_close
LBB0_12:
	mov	w0, #-1
LBB0_13:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_14:
	ldr	x0, [sp]
	bl	_nv_set_error
	mov	w0, #0
	ldr	x8, [sp]
	str	x8, [x19]
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_cfgpath,4,2                    ; @cfgpath
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to setup control connection to %s"

	.comm	_HAST_TIMEOUT,4,2               ; @HAST_TIMEOUT
l_.str.1:                               ; @.str.1
	.asciz	"Unable to connect to hastd via %s"

l_.str.2:                               ; @.str.2
	.asciz	"Unable to send command to hastd via %s"

l_.str.3:                               ; @.str.3
	.asciz	"cannot receive reply from hastd via %s"

l_.str.4:                               ; @.str.4
	.asciz	"error"

l_.str.5:                               ; @.str.5
	.asciz	"Error %d received from hastd."

	.no_dead_strip	_hastctl
.subsections_via_symbols
