	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function go
_go:                                    ## @go
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movl	%ecx, %r14d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_config_create
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_fatal_exit
LBB0_2:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_config_read
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	cmpl	$0, (%r13)
	je	LBB0_5
LBB0_6:
	movq	%r13, %rdi
	callq	_setup_ctx
	movq	%rax, %r12
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	testl	%r14d, %r14d
	jle	LBB0_7
## %bb.8:
	movq	(%r15), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_strcmp
	xorl	%edx, %edx
	testq	%rax, %rax
	sete	%dl
	jmp	LBB0_9
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	callq	_fatal_exit
	cmpl	$0, (%r13)
	jne	LBB0_6
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
	callq	_log_warn
	jmp	LBB0_6
LBB0_7:
	xorl	%edx, %edx
LBB0_9:
	movq	%r15, %r14
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_contact_server
	movl	%eax, %ebx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_setup_ssl
	movq	%rax, %r15
	movq	%rax, %rdi
	movl	%ebx, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movq	%r14, %r8
	callq	_go_cmd
	movl	%eax, %r14d
	testq	%r15, %r15
	je	LBB0_11
## %bb.10:
	movq	%r15, %rdi
	callq	_SSL_free
LBB0_11:
	movl	%ebx, %edi
	callq	_close
	testq	%r12, %r12
	je	LBB0_13
## %bb.12:
	movq	%r12, %rdi
	callq	_SSL_CTX_free
LBB0_13:
	movq	%r13, %rdi
	callq	_config_delete
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"out of memory"

L_.str.1:                               ## @.str.1
	.asciz	"could not read config file"

L_.str.2:                               ## @.str.2
	.asciz	"control-enable is 'no' in the config file."

L_.str.3:                               ## @.str.3
	.asciz	"status"

	.no_dead_strip	_go
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function go
_go:                                    ; @go
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [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 w25, -72
	.cfi_offset w26, -80
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
	bl	_config_create
	mov	x19, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_fatal_exit
LBB0_2:
	mov	x0, x19
	mov	x1, x24
	mov	x2, #0
	bl	_config_read
	cbz	w0, LBB0_6
; %bb.3:
	ldr	w8, [x19]
	cbz	w8, LBB0_7
LBB0_4:
	mov	x0, x19
	bl	_setup_ctx
	mov	x24, x0
	cmp	w21, #1
	b.lt	LBB0_8
; %bb.5:
	ldr	x0, [x20]
Lloh2:
	adrp	x1, l_.str.3@PAGE
Lloh3:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_strcmp
	cmp	x0, #0
	cset	w2, eq
	b	LBB0_9
LBB0_6:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_fatal_exit
	ldr	w8, [x19]
	cbnz	w8, LBB0_4
LBB0_7:
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_log_warn
	b	LBB0_4
LBB0_8:
	mov	w2, #0
LBB0_9:
	mov	x0, x23
	mov	x1, x19
	bl	_contact_server
	mov	x23, x0
	mov	x0, x24
	mov	x1, x23
	bl	_setup_ssl
	mov	x25, x0
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	mov	x4, x20
	bl	_go_cmd
	mov	x20, x0
	cbz	x25, LBB0_11
; %bb.10:
	mov	x0, x25
	bl	_SSL_free
LBB0_11:
	mov	x0, x23
	bl	_close
	cbz	x24, LBB0_13
; %bb.12:
	mov	x0, x24
	bl	_SSL_CTX_free
LBB0_13:
	mov	x0, x19
	bl	_config_delete
	mov	x0, x20
	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	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"out of memory"

l_.str.1:                               ; @.str.1
	.asciz	"could not read config file"

l_.str.2:                               ; @.str.2
	.asciz	"control-enable is 'no' in the config file."

l_.str.3:                               ; @.str.3
	.asciz	"status"

	.no_dead_strip	_go
.subsections_via_symbols
