	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %r13d
	movq	$0, -72(%rbp)
	movq	$0, -80(%rbp)
	movq	$0, -88(%rbp)
	cmpl	$1, %edi
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_usage
LBB0_2:
	leaq	8(%r14), %r15
	movq	8(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rbx
	movl	$132, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_12
LBB0_4:
	movq	(%r15), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	leaq	L_.str.3(%rip), %rbx
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movl	$129, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_12
LBB0_6:
	movq	(%r15), %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	movl	$130, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_12
LBB0_8:
	movq	(%r15), %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	movl	$128, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_12
LBB0_10:
	movq	(%r15), %rdi
	leaq	L_.str.6(%rip), %rsi
	callq	_strcmp
	movl	$131, %ecx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	xorl	%eax, %eax
	callq	_usage
                                        ## implicit-def: $eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
                                        ## implicit-def: $rbx
LBB0_12:
	decl	%r13d
	leaq	LJTI0_0(%rip), %r14
	movq	_optarg@GOTPCREL(%rip), %r12
	movl	$0, -64(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_14
LBB0_13:                                ##   in Loop: Header=BB0_14 Depth=1
	incl	-64(%rbp)                       ## 4-byte Folded Spill
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %edi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_getopt
                                        ## kill: def $eax killed $eax def $rax
	leal	-99(%rax), %ecx
	cmpl	$10, %ecx
	ja	LBB0_23
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movslq	(%r14,%rcx,4), %rax
	addq	%r14, %rax
	jmpq	*%rax
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=1
	movl	(%r12), %eax
	movq	_cfgpath@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_14
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=1
	movl	(%r12), %edi
	leaq	-72(%rbp), %rsi
	callq	_expand_number
	cmpl	$-1, %eax
	jne	LBB0_14
## %bb.18:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	_EX_USAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.8(%rip), %rsi
	callq	_errx
	jmp	LBB0_14
LBB0_19:                                ##   in Loop: Header=BB0_14 Depth=1
	movl	(%r12), %edi
	leaq	-88(%rbp), %rsi
	callq	_expand_number
	cmpl	$-1, %eax
	jne	LBB0_14
## %bb.20:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	_EX_USAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.9(%rip), %rsi
	callq	_errx
	jmp	LBB0_14
LBB0_21:                                ##   in Loop: Header=BB0_14 Depth=1
	movl	(%r12), %edi
	leaq	-80(%rbp), %rsi
	callq	_expand_number
	cmpl	$-1, %eax
	jne	LBB0_14
## %bb.22:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	_EX_USAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
	callq	_errx
	jmp	LBB0_14
LBB0_23:                                ##   in Loop: Header=BB0_14 Depth=1
	cmpl	$-1, %eax
	je	LBB0_25
LBB0_24:                                ##   in Loop: Header=BB0_14 Depth=1
	xorl	%eax, %eax
	callq	_usage
	jmp	LBB0_14
LBB0_25:
	movq	_optind@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	cmpl	$132, %ebx
	je	LBB0_27
## %bb.26:
	cmpl	$129, %ebx
	jne	LBB0_29
LBB0_27:
	cmpl	%r12d, %r13d
	jne	LBB0_29
## %bb.28:
	xorl	%eax, %eax
	callq	_usage
LBB0_29:
	leaq	(%r15,%r12,8), %r15
	movq	_PJDLOG_MODE_STD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_pjdlog_init
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	callq	_pjdlog_debug_set
	movq	_cfgpath@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_yy_config_parse
	movq	_cfg@GOTPCREL(%rip), %r14
	movq	%rax, (%r14)
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_PJDLOG_ASSERT
	leal	-128(%rbx), %eax
	cmpl	$4, %eax
	ja	LBB0_34
## %bb.30:
	movl	%r13d, %r14d
	subl	%r12d, %r14d
	leaq	LJTI0_1(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_31:
	xorl	%eax, %eax
	callq	_nv_alloc
	movq	%r12, %rbx
	movq	%rax, %r12
	movq	%rax, -56(%rbp)
	movq	_HASTCTL_CMD_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.11(%rip), %rdx
	movq	%r12, %rdi
	callq	_nv_add_uint8
	cmpl	%ebx, %r13d
	jne	LBB0_41
## %bb.32:
	leaq	L_.str.16(%rip), %rsi
	leaq	L_.str.15(%rip), %rdx
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	callq	_nv_add_string
	jmp	LBB0_55
LBB0_33:
	movq	-88(%rbp), %rdx
	movq	-80(%rbp), %rcx
	movq	-72(%rbp), %r8
	movl	%r14d, %edi
	movq	%r15, %rsi
	callq	_control_create
	jmp	LBB0_40
LBB0_34:
	leaq	L_.str.17(%rip), %rdi
	callq	_PJDLOG_ABORT
                                        ## implicit-def: $r12
	jmp	LBB0_56
LBB0_35:
	movq	%r12, %rbx
	cmpl	$1, %r14d
	jg	LBB0_37
## %bb.36:
	xorl	%eax, %eax
	callq	_usage
LBB0_37:
	xorl	%eax, %eax
	callq	_nv_alloc
	movq	%rax, %r12
	movq	%rax, -56(%rbp)
	movq	_HASTCTL_CMD_SETROLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.11(%rip), %rdx
	movq	%r12, %rdi
	callq	_nv_add_uint8
	movq	(%r15), %rdi
	leaq	L_.str.12(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_45
## %bb.38:
	movq	_HAST_ROLE_INIT@GOTPCREL(%rip), %rax
	jmp	LBB0_50
LBB0_39:
	movl	%r14d, %edi
	movq	%r15, %rsi
	callq	_control_dump
LBB0_40:
	leaq	L_.str.10(%rip), %rdi
	callq	_PJDLOG_ABORT
                                        ## implicit-def: $r12
	jmp	LBB0_55
LBB0_41:
	testl	%r14d, %r14d
	jle	LBB0_55
## %bb.42:
	movl	%r14d, %r13d
	xorl	%ebx, %ebx
	leaq	L_.str.15(%rip), %r14
	.p2align	4, 0x90
LBB0_43:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15,%rbx,8), %rsi
	movq	%r12, %rdi
	movq	%r14, %rdx
	movl	%ebx, %ecx
	callq	_nv_add_string
	incq	%rbx
	cmpq	%rbx, %r13
	jne	LBB0_43
	jmp	LBB0_55
LBB0_45:
	movq	(%r15), %rdi
	leaq	L_.str.13(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_48
## %bb.46:
	movq	_HAST_ROLE_PRIMARY@GOTPCREL(%rip), %rax
	jmp	LBB0_50
LBB0_48:
	movq	(%r15), %rdi
	leaq	L_.str.14(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_54
## %bb.49:
	movq	_HAST_ROLE_SECONDARY@GOTPCREL(%rip), %rax
LBB0_50:
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r12, %rdi
	callq	_nv_add_uint8
	cmpl	$2, %r14d
	jl	LBB0_55
LBB0_51:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	decl	%r14d
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rbx,8), %rbx
	addq	$16, %rbx
	xorl	%ecx, %ecx
	leaq	L_.str.15(%rip), %r13
	.p2align	4, 0x90
LBB0_52:                                ## =>This Inner Loop Header: Depth=1
	leaq	1(%rcx), %r15
	movq	(%rbx,%rcx,8), %rsi
	movq	%r12, %rdi
	movq	%r13, %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_nv_add_string
	movq	%r15, %rcx
	cmpq	%r15, %r14
	jne	LBB0_52
## %bb.53:
	movq	-64(%rbp), %r15                 ## 8-byte Reload
LBB0_55:
	movq	_cfg@GOTPCREL(%rip), %r14
LBB0_56:
	movq	(%r14), %rax
	movl	(%rax), %esi
	movq	_controlconn@GOTPCREL(%rip), %rbx
	xorl	%edi, %edi
	movq	%rbx, %rdx
	callq	_proto_client
	cmpl	$-1, %eax
	jne	LBB0_58
## %bb.57:
	movq	_EX_OSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rax
	movl	(%rax), %edx
	leaq	L_.str.18(%rip), %rsi
	callq	_pjdlog_exit
LBB0_58:
	movl	(%rbx), %edi
	movq	_HAST_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_proto_connect
	cmpl	$-1, %eax
	jne	LBB0_60
## %bb.59:
	movq	_EX_OSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rax
	movl	(%rax), %edx
	leaq	L_.str.19(%rip), %rsi
	callq	_pjdlog_exit
LBB0_60:
	xorl	%edi, %edi
	callq	_drop_privs
	testq	%rax, %rax
	jne	LBB0_71
## %bb.61:
	movl	(%rbx), %esi
	xorl	%edi, %edi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_hast_proto_send
	cmpl	$-1, %eax
	jne	LBB0_63
## %bb.62:
	movq	_EX_UNAVAILABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rax
	movl	(%rax), %edx
	leaq	L_.str.20(%rip), %rsi
	callq	_pjdlog_exit
LBB0_63:
	movq	%r12, %rdi
	callq	_nv_free
	movl	(%rbx), %edi
	leaq	-56(%rbp), %rsi
	callq	_hast_proto_recv_hdr
	cmpl	$-1, %eax
	jne	LBB0_65
## %bb.64:
	movq	_EX_UNAVAILABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rax
	movl	(%rax), %edx
	leaq	L_.str.21(%rip), %rsi
	callq	_pjdlog_exit
LBB0_65:
	movq	-56(%rbp), %rdi
	leaq	L_.str.22(%rip), %rsi
	callq	_nv_get_int16
	movl	%eax, %r14d
	testl	%eax, %eax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_67
## %bb.66:
	movq	_EX_SOFTWARE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.23(%rip), %rsi
	movl	%r14d, %edx
	callq	_pjdlog_exitx
LBB0_67:
	movq	-56(%rbp), %rdi
	xorl	%esi, %esi
	callq	_nv_set_error
	cmpl	$128, %ebx
	je	LBB0_73
## %bb.68:
	cmpl	$130, %ebx
	je	LBB0_72
## %bb.69:
	cmpl	$129, %ebx
	jne	LBB0_74
## %bb.70:
	movq	-56(%rbp), %rdi
	movq	(%r15), %rsi
	callq	_control_set_role
	movl	%eax, %edi
	callq	_exit
LBB0_71:
	movq	_EX_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
LBB0_72:
	movq	-56(%rbp), %rdi
	callq	_control_list
	movl	%eax, %edi
	callq	_exit
LBB0_73:
	movq	-56(%rbp), %rdi
	callq	_control_status
	movl	%eax, %edi
	callq	_exit
LBB0_74:
	leaq	L_.str.17(%rip), %rdi
	callq	_PJDLOG_ABORT
	movl	%r14d, %edi
	callq	_exit
LBB0_54:
	xorl	%eax, %eax
	callq	_usage
	cmpl	$2, %r14d
	jge	LBB0_51
	jmp	LBB0_55
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
LJTI0_0:
	.long	L0_0_set_16
	.long	L0_0_set_13
	.long	L0_0_set_21
	.long	L0_0_set_24
	.long	L0_0_set_24
	.long	L0_0_set_24
	.long	L0_0_set_24
	.long	L0_0_set_24
	.long	L0_0_set_17
	.long	L0_0_set_24
	.long	L0_0_set_19
.set L0_1_set_31, LBB0_31-LJTI0_1
.set L0_1_set_35, LBB0_35-LJTI0_1
.set L0_1_set_39, LBB0_39-LJTI0_1
.set L0_1_set_33, LBB0_33-LJTI0_1
LJTI0_1:
	.long	L0_1_set_31
	.long	L0_1_set_35
	.long	L0_1_set_31
	.long	L0_1_set_39
	.long	L0_1_set_33
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"create"

L_.str.1:                               ## @.str.1
	.asciz	"c:de:k:m:h"

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

L_.str.3:                               ## @.str.3
	.asciz	"c:dh"

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

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

L_.str.6:                               ## @.str.6
	.asciz	"dump"

	.comm	_optarg,4,2                     ## @optarg
	.comm	_cfgpath,4,2                    ## @cfgpath
	.comm	_EX_USAGE,4,2                   ## @EX_USAGE
L_.str.7:                               ## @.str.7
	.asciz	"Invalid extentsize"

L_.str.8:                               ## @.str.8
	.asciz	"Invalid keepdirty"

L_.str.9:                               ## @.str.9
	.asciz	"Invalid mediasize"

	.comm	_optind,8,3                     ## @optind
	.comm	_PJDLOG_MODE_STD,4,2            ## @PJDLOG_MODE_STD
	.comm	_cfg,8,3                        ## @cfg
L_.str.10:                              ## @.str.10
	.asciz	"What are we doing here?!"

	.comm	_HASTCTL_CMD_SETROLE,4,2        ## @HASTCTL_CMD_SETROLE
L_.str.11:                              ## @.str.11
	.asciz	"cmd"

L_.str.12:                              ## @.str.12
	.asciz	"init"

	.comm	_HAST_ROLE_INIT,4,2             ## @HAST_ROLE_INIT
L_.str.13:                              ## @.str.13
	.asciz	"primary"

	.comm	_HAST_ROLE_PRIMARY,4,2          ## @HAST_ROLE_PRIMARY
L_.str.14:                              ## @.str.14
	.asciz	"secondary"

	.comm	_HAST_ROLE_SECONDARY,4,2        ## @HAST_ROLE_SECONDARY
L_.str.15:                              ## @.str.15
	.asciz	"resource%d"

	.comm	_HASTCTL_CMD_STATUS,4,2         ## @HASTCTL_CMD_STATUS
L_.str.16:                              ## @.str.16
	.asciz	"all"

L_.str.17:                              ## @.str.17
	.asciz	"Impossible command!"

	.comm	_controlconn,4,2                ## @controlconn
	.comm	_EX_OSERR,4,2                   ## @EX_OSERR
L_.str.18:                              ## @.str.18
	.asciz	"Unable to setup control connection to %s"

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

	.comm	_EX_CONFIG,4,2                  ## @EX_CONFIG
	.comm	_EX_UNAVAILABLE,4,2             ## @EX_UNAVAILABLE
L_.str.20:                              ## @.str.20
	.asciz	"Unable to send command to hastd via %s"

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

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

	.comm	_EX_SOFTWARE,4,2                ## @EX_SOFTWARE
L_.str.23:                              ## @.str.23
	.asciz	"Error %d received from hastd."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x20, x1
	stp	xzr, xzr, [sp, #16]
	str	xzr, [sp, #32]
	subs	w21, w0, #1
	b.ne	LBB0_2
; %bb.1:
	bl	_usage
LBB0_2:
	mov	x19, x20
	ldr	x0, [x19, #8]!
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	str	x20, [sp]                       ; 8-byte Folded Spill
	cbnz	x0, LBB0_4
; %bb.3:
Lloh2:
	adrp	x22, l_.str.1@PAGE
Lloh3:
	add	x22, x22, l_.str.1@PAGEOFF
	mov	w8, #132
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	b	LBB0_13
LBB0_4:
	ldr	x0, [x19]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_6
; %bb.5:
Lloh6:
	adrp	x22, l_.str.3@PAGE
Lloh7:
	add	x22, x22, l_.str.3@PAGEOFF
	mov	w8, #129
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	b	LBB0_13
LBB0_6:
	ldr	x0, [x19]
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_8
; %bb.7:
Lloh10:
	adrp	x22, l_.str.3@PAGE
Lloh11:
	add	x22, x22, l_.str.3@PAGEOFF
	mov	w8, #130
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	b	LBB0_13
LBB0_8:
	ldr	x0, [x19]
Lloh12:
	adrp	x1, l_.str.5@PAGE
Lloh13:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_10
; %bb.9:
Lloh14:
	adrp	x22, l_.str.3@PAGE
Lloh15:
	add	x22, x22, l_.str.3@PAGEOFF
	mov	w8, #128
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	b	LBB0_13
LBB0_10:
	ldr	x0, [x19]
Lloh16:
	adrp	x1, l_.str.6@PAGE
Lloh17:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_12
; %bb.11:
Lloh18:
	adrp	x22, l_.str.3@PAGE
Lloh19:
	add	x22, x22, l_.str.3@PAGEOFF
	mov	w8, #131
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	b	LBB0_13
LBB0_12:
	bl	_usage
                                        ; implicit-def: $w8
                                        ; kill: killed $w8
                                        ; implicit-def: $x22
LBB0_13:
	mov	w23, #0
Lloh20:
	adrp	x20, lJTI0_0@PAGE
Lloh21:
	add	x20, x20, lJTI0_0@PAGEOFF
Lloh22:
	adrp	x27, _optarg@GOTPAGE
Lloh23:
	ldr	x27, [x27, _optarg@GOTPAGEOFF]
Lloh24:
	adrp	x28, _cfgpath@GOTPAGE
Lloh25:
	ldr	x28, [x28, _cfgpath@GOTPAGEOFF]
Lloh26:
	adrp	x24, _EX_USAGE@GOTPAGE
Lloh27:
	ldr	x24, [x24, _EX_USAGE@GOTPAGEOFF]
Lloh28:
	adrp	x25, l_.str.8@PAGE
Lloh29:
	add	x25, x25, l_.str.8@PAGEOFF
Lloh30:
	adrp	x26, l_.str.9@PAGE
Lloh31:
	add	x26, x26, l_.str.9@PAGEOFF
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	w23, w23, #1
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	bl	_getopt
	sub	w8, w0, #99
	cmp	w8, #10
	b.hi	LBB0_24
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	adr	x9, LBB0_14
	ldrb	w10, [x20, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_17:                                ;   in Loop: Header=BB0_15 Depth=1
	ldr	w8, [x27]
	str	w8, [x28]
	b	LBB0_15
LBB0_18:                                ;   in Loop: Header=BB0_15 Depth=1
	ldr	w0, [x27]
	add	x1, sp, #16
	bl	_expand_number
	cmn	w0, #1
	b.ne	LBB0_15
; %bb.19:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w0, [x24]
	mov	x1, x25
	bl	_errx
	b	LBB0_15
LBB0_20:                                ;   in Loop: Header=BB0_15 Depth=1
	ldr	w0, [x27]
	add	x1, sp, #32
	bl	_expand_number
	cmn	w0, #1
	b.ne	LBB0_15
; %bb.21:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w0, [x24]
	mov	x1, x26
	bl	_errx
	b	LBB0_15
LBB0_22:                                ;   in Loop: Header=BB0_15 Depth=1
	ldr	w0, [x27]
	add	x1, sp, #24
	bl	_expand_number
	cmn	w0, #1
	b.ne	LBB0_15
; %bb.23:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w0, [x24]
Lloh32:
	adrp	x1, l_.str.7@PAGE
Lloh33:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_errx
	b	LBB0_15
LBB0_24:                                ;   in Loop: Header=BB0_15 Depth=1
	cmn	w0, #1
	b.eq	LBB0_26
LBB0_25:                                ;   in Loop: Header=BB0_15 Depth=1
	bl	_usage
	b	LBB0_15
LBB0_26:
Lloh34:
	adrp	x8, _optind@GOTPAGE
Lloh35:
	ldr	x8, [x8, _optind@GOTPAGEOFF]
Lloh36:
	ldr	x25, [x8]
	add	x19, x19, x25, lsl #3
	ldr	w26, [sp, #12]                  ; 4-byte Folded Reload
	cmp	w26, #132
	b.eq	LBB0_28
; %bb.27:
	cmp	w26, #129
	b.ne	LBB0_30
LBB0_28:
	cmp	w21, w25
	b.ne	LBB0_30
; %bb.29:
	bl	_usage
LBB0_30:
Lloh37:
	adrp	x8, _PJDLOG_MODE_STD@GOTPAGE
Lloh38:
	ldr	x8, [x8, _PJDLOG_MODE_STD@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
	bl	_pjdlog_init
	mov	x0, x23
	bl	_pjdlog_debug_set
	ldr	w0, [x28]
	mov	w1, #1
	bl	_yy_config_parse
Lloh40:
	adrp	x24, _cfg@GOTPAGE
Lloh41:
	ldr	x24, [x24, _cfg@GOTPAGEOFF]
	str	x0, [x24]
	cmp	x0, #0
	cset	w0, ne
	bl	_PJDLOG_ASSERT
	sub	w8, w26, #128
	cmp	w8, #4
	b.hi	LBB0_35
; %bb.31:
	sub	w23, w21, w25
Lloh42:
	adrp	x9, lJTI0_1@PAGE
Lloh43:
	add	x9, x9, lJTI0_1@PAGEOFF
	adr	x10, LBB0_32
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_32:
	bl	_nv_alloc
	mov	x22, x0
	str	x0, [sp, #40]
Lloh44:
	adrp	x8, _HASTCTL_CMD_STATUS@GOTPAGE
Lloh45:
	ldr	x8, [x8, _HASTCTL_CMD_STATUS@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
Lloh47:
	adrp	x2, l_.str.11@PAGE
Lloh48:
	add	x2, x2, l_.str.11@PAGEOFF
	bl	_nv_add_uint8
	cmp	w21, w25
	b.ne	LBB0_59
; %bb.33:
Lloh49:
	adrp	x1, l_.str.16@PAGE
Lloh50:
	add	x1, x1, l_.str.16@PAGEOFF
Lloh51:
	adrp	x2, l_.str.15@PAGE
Lloh52:
	add	x2, x2, l_.str.15@PAGEOFF
	mov	x0, x22
	mov	w3, #0
	bl	_nv_add_string
	b	LBB0_43
LBB0_34:
	ldp	x3, x2, [sp, #24]
	ldr	x4, [sp, #16]
	mov	x0, x23
	mov	x1, x19
	bl	_control_create
	b	LBB0_41
LBB0_35:
Lloh53:
	adrp	x0, l_.str.17@PAGE
Lloh54:
	add	x0, x0, l_.str.17@PAGEOFF
	b	LBB0_42
LBB0_36:
	subs	w21, w23, #1
	b.gt	LBB0_38
; %bb.37:
	bl	_usage
LBB0_38:
	bl	_nv_alloc
	mov	x22, x0
	str	x0, [sp, #40]
Lloh55:
	adrp	x8, _HASTCTL_CMD_SETROLE@GOTPAGE
Lloh56:
	ldr	x8, [x8, _HASTCTL_CMD_SETROLE@GOTPAGEOFF]
Lloh57:
	ldr	w1, [x8]
Lloh58:
	adrp	x2, l_.str.11@PAGE
Lloh59:
	add	x2, x2, l_.str.11@PAGEOFF
	bl	_nv_add_uint8
	ldr	x0, [x19]
Lloh60:
	adrp	x1, l_.str.12@PAGE
Lloh61:
	add	x1, x1, l_.str.12@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_65
; %bb.39:
Lloh62:
	adrp	x8, _HAST_ROLE_INIT@GOTPAGE
Lloh63:
	ldr	x8, [x8, _HAST_ROLE_INIT@GOTPAGEOFF]
	b	LBB0_69
LBB0_40:
	mov	x0, x23
	mov	x1, x19
	bl	_control_dump
LBB0_41:
Lloh64:
	adrp	x0, l_.str.10@PAGE
Lloh65:
	add	x0, x0, l_.str.10@PAGEOFF
LBB0_42:
	bl	_PJDLOG_ABORT
                                        ; implicit-def: $x22
LBB0_43:
	ldr	x8, [x24]
	ldr	w1, [x8]
Lloh66:
	adrp	x20, _controlconn@GOTPAGE
Lloh67:
	ldr	x20, [x20, _controlconn@GOTPAGEOFF]
	mov	x0, #0
	mov	x2, x20
	bl	_proto_client
	cmn	w0, #1
	b.ne	LBB0_45
; %bb.44:
Lloh68:
	adrp	x8, _EX_OSERR@GOTPAGE
Lloh69:
	ldr	x8, [x8, _EX_OSERR@GOTPAGEOFF]
Lloh70:
	ldr	w0, [x8]
	ldr	x8, [x24]
	ldr	w2, [x8]
Lloh71:
	adrp	x1, l_.str.18@PAGE
Lloh72:
	add	x1, x1, l_.str.18@PAGEOFF
	bl	_pjdlog_exit
LBB0_45:
	ldr	w0, [x20]
Lloh73:
	adrp	x8, _HAST_TIMEOUT@GOTPAGE
Lloh74:
	ldr	x8, [x8, _HAST_TIMEOUT@GOTPAGEOFF]
Lloh75:
	ldr	w1, [x8]
	bl	_proto_connect
	cmn	w0, #1
	b.ne	LBB0_47
; %bb.46:
Lloh76:
	adrp	x8, _EX_OSERR@GOTPAGE
Lloh77:
	ldr	x8, [x8, _EX_OSERR@GOTPAGEOFF]
Lloh78:
	ldr	w0, [x8]
	ldr	x8, [x24]
	ldr	w2, [x8]
Lloh79:
	adrp	x1, l_.str.19@PAGE
Lloh80:
	add	x1, x1, l_.str.19@PAGEOFF
	bl	_pjdlog_exit
LBB0_47:
	mov	x0, #0
	bl	_drop_privs
	cbnz	x0, LBB0_58
; %bb.48:
	ldr	w1, [x20]
	mov	x2, x22
	mov	x3, #0
	mov	w4, #0
	bl	_hast_proto_send
	cmn	w0, #1
	b.ne	LBB0_50
; %bb.49:
Lloh81:
	adrp	x8, _EX_UNAVAILABLE@GOTPAGE
Lloh82:
	ldr	x8, [x8, _EX_UNAVAILABLE@GOTPAGEOFF]
Lloh83:
	ldr	w0, [x8]
	ldr	x8, [x24]
	ldr	w2, [x8]
Lloh84:
	adrp	x1, l_.str.20@PAGE
Lloh85:
	add	x1, x1, l_.str.20@PAGEOFF
	bl	_pjdlog_exit
LBB0_50:
	mov	x0, x22
	bl	_nv_free
	ldr	w0, [x20]
	add	x1, sp, #40
	bl	_hast_proto_recv_hdr
	cmn	w0, #1
	b.ne	LBB0_52
; %bb.51:
Lloh86:
	adrp	x8, _EX_UNAVAILABLE@GOTPAGE
Lloh87:
	ldr	x8, [x8, _EX_UNAVAILABLE@GOTPAGEOFF]
Lloh88:
	ldr	w0, [x8]
	ldr	x8, [x24]
	ldr	w2, [x8]
Lloh89:
	adrp	x1, l_.str.21@PAGE
Lloh90:
	add	x1, x1, l_.str.21@PAGEOFF
	bl	_pjdlog_exit
LBB0_52:
	ldr	x0, [sp, #40]
Lloh91:
	adrp	x1, l_.str.22@PAGE
Lloh92:
	add	x1, x1, l_.str.22@PAGEOFF
	bl	_nv_get_int16
	mov	x20, x0
	cbz	w0, LBB0_54
; %bb.53:
Lloh93:
	adrp	x8, _EX_SOFTWARE@GOTPAGE
Lloh94:
	ldr	x8, [x8, _EX_SOFTWARE@GOTPAGEOFF]
Lloh95:
	ldr	w0, [x8]
Lloh96:
	adrp	x1, l_.str.23@PAGE
Lloh97:
	add	x1, x1, l_.str.23@PAGEOFF
	mov	x2, x20
	bl	_pjdlog_exitx
LBB0_54:
	ldr	x0, [sp, #40]
	mov	w1, #0
	bl	_nv_set_error
	cmp	w26, #128
	b.eq	LBB0_63
; %bb.55:
	cmp	w26, #130
	b.eq	LBB0_62
; %bb.56:
	cmp	w26, #129
	b.ne	LBB0_64
; %bb.57:
	ldr	x0, [sp, #40]
	ldr	x1, [x19]
	bl	_control_set_role
	bl	_exit
LBB0_58:
Lloh98:
	adrp	x8, _EX_CONFIG@GOTPAGE
Lloh99:
	ldr	x8, [x8, _EX_CONFIG@GOTPAGEOFF]
Lloh100:
	ldr	w0, [x8]
	bl	_exit
LBB0_59:
	cmp	w23, #1
	b.lt	LBB0_43
; %bb.60:
	mov	x20, #0
Lloh101:
	adrp	x21, l_.str.15@PAGE
Lloh102:
	add	x21, x21, l_.str.15@PAGEOFF
LBB0_61:                                ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x19, x20, lsl #3]
	mov	x0, x22
	mov	x2, x21
	mov	x3, x20
	bl	_nv_add_string
	add	x20, x20, #1
	cmp	x23, x20
	b.ne	LBB0_61
	b	LBB0_43
LBB0_62:
	ldr	x0, [sp, #40]
	bl	_control_list
	bl	_exit
LBB0_63:
	ldr	x0, [sp, #40]
	bl	_control_status
	bl	_exit
LBB0_64:
Lloh103:
	adrp	x0, l_.str.17@PAGE
Lloh104:
	add	x0, x0, l_.str.17@PAGEOFF
	bl	_PJDLOG_ABORT
	mov	x0, x20
	bl	_exit
LBB0_65:
	ldr	x0, [x19]
Lloh105:
	adrp	x1, l_.str.13@PAGE
Lloh106:
	add	x1, x1, l_.str.13@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_67
; %bb.66:
Lloh107:
	adrp	x8, _HAST_ROLE_PRIMARY@GOTPAGE
Lloh108:
	ldr	x8, [x8, _HAST_ROLE_PRIMARY@GOTPAGEOFF]
	b	LBB0_69
LBB0_67:
	ldr	x0, [x19]
Lloh109:
	adrp	x1, l_.str.14@PAGE
Lloh110:
	add	x1, x1, l_.str.14@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_72
; %bb.68:
Lloh111:
	adrp	x8, _HAST_ROLE_SECONDARY@GOTPAGE
Lloh112:
	ldr	x8, [x8, _HAST_ROLE_SECONDARY@GOTPAGEOFF]
LBB0_69:
	ldr	w1, [x8]
Lloh113:
	adrp	x2, l_.str.2@PAGE
Lloh114:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_nv_add_uint8
	cmp	w23, #2
	b.lt	LBB0_43
LBB0_70:
	mov	x3, #0
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	add	x8, x8, x25, lsl #3
	add	x23, x8, #16
Lloh115:
	adrp	x20, l_.str.15@PAGE
Lloh116:
	add	x20, x20, l_.str.15@PAGEOFF
LBB0_71:                                ; =>This Inner Loop Header: Depth=1
	add	x25, x3, #1
	ldr	x1, [x23, x3, lsl #3]
	mov	x0, x22
	mov	x2, x20
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_nv_add_string
	mov	x3, x25
	cmp	x21, x25
	b.ne	LBB0_71
	b	LBB0_43
LBB0_72:
	bl	_usage
	cmp	w23, #2
	b.lt	LBB0_43
	b	LBB0_70
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	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
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh62, Lloh63
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpLdrGot	Lloh66, Lloh67
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpAdd	Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpAdd	Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpAdd	Lloh89, Lloh90
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpAdd	Lloh91, Lloh92
	.loh AdrpAdd	Lloh96, Lloh97
	.loh AdrpLdrGotLdr	Lloh93, Lloh94, Lloh95
	.loh AdrpLdrGotLdr	Lloh98, Lloh99, Lloh100
	.loh AdrpAdd	Lloh101, Lloh102
	.loh AdrpAdd	Lloh103, Lloh104
	.loh AdrpAdd	Lloh105, Lloh106
	.loh AdrpLdrGot	Lloh107, Lloh108
	.loh AdrpAdd	Lloh109, Lloh110
	.loh AdrpLdrGot	Lloh111, Lloh112
	.loh AdrpAdd	Lloh113, Lloh114
	.loh AdrpAdd	Lloh115, Lloh116
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_17-LBB0_14)>>2
	.byte	(LBB0_14-LBB0_14)>>2
	.byte	(LBB0_22-LBB0_14)>>2
	.byte	(LBB0_25-LBB0_14)>>2
	.byte	(LBB0_25-LBB0_14)>>2
	.byte	(LBB0_25-LBB0_14)>>2
	.byte	(LBB0_25-LBB0_14)>>2
	.byte	(LBB0_25-LBB0_14)>>2
	.byte	(LBB0_18-LBB0_14)>>2
	.byte	(LBB0_25-LBB0_14)>>2
	.byte	(LBB0_20-LBB0_14)>>2
lJTI0_1:
	.byte	(LBB0_32-LBB0_32)>>2
	.byte	(LBB0_36-LBB0_32)>>2
	.byte	(LBB0_32-LBB0_32)>>2
	.byte	(LBB0_40-LBB0_32)>>2
	.byte	(LBB0_34-LBB0_32)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"create"

l_.str.1:                               ; @.str.1
	.asciz	"c:de:k:m:h"

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

l_.str.3:                               ; @.str.3
	.asciz	"c:dh"

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

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

l_.str.6:                               ; @.str.6
	.asciz	"dump"

	.comm	_optarg,4,2                     ; @optarg
	.comm	_cfgpath,4,2                    ; @cfgpath
	.comm	_EX_USAGE,4,2                   ; @EX_USAGE
l_.str.7:                               ; @.str.7
	.asciz	"Invalid extentsize"

l_.str.8:                               ; @.str.8
	.asciz	"Invalid keepdirty"

l_.str.9:                               ; @.str.9
	.asciz	"Invalid mediasize"

	.comm	_optind,8,3                     ; @optind
	.comm	_PJDLOG_MODE_STD,4,2            ; @PJDLOG_MODE_STD
	.comm	_cfg,8,3                        ; @cfg
l_.str.10:                              ; @.str.10
	.asciz	"What are we doing here?!"

	.comm	_HASTCTL_CMD_SETROLE,4,2        ; @HASTCTL_CMD_SETROLE
l_.str.11:                              ; @.str.11
	.asciz	"cmd"

l_.str.12:                              ; @.str.12
	.asciz	"init"

	.comm	_HAST_ROLE_INIT,4,2             ; @HAST_ROLE_INIT
l_.str.13:                              ; @.str.13
	.asciz	"primary"

	.comm	_HAST_ROLE_PRIMARY,4,2          ; @HAST_ROLE_PRIMARY
l_.str.14:                              ; @.str.14
	.asciz	"secondary"

	.comm	_HAST_ROLE_SECONDARY,4,2        ; @HAST_ROLE_SECONDARY
l_.str.15:                              ; @.str.15
	.asciz	"resource%d"

	.comm	_HASTCTL_CMD_STATUS,4,2         ; @HASTCTL_CMD_STATUS
l_.str.16:                              ; @.str.16
	.asciz	"all"

l_.str.17:                              ; @.str.17
	.asciz	"Impossible command!"

	.comm	_controlconn,4,2                ; @controlconn
	.comm	_EX_OSERR,4,2                   ; @EX_OSERR
l_.str.18:                              ; @.str.18
	.asciz	"Unable to setup control connection to %s"

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

	.comm	_EX_CONFIG,4,2                  ; @EX_CONFIG
	.comm	_EX_UNAVAILABLE,4,2             ; @EX_UNAVAILABLE
l_.str.20:                              ; @.str.20
	.asciz	"Unable to send command to hastd via %s"

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

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

	.comm	_EX_SOFTWARE,4,2                ; @EX_SOFTWARE
l_.str.23:                              ; @.str.23
	.asciz	"Error %d received from hastd."

.subsections_via_symbols
