	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cmd_attach
_cmd_attach:                            ## @cmd_attach
	.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	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r12
	xorl	%eax, %eax
	callq	_gctl_get_handle
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %rcx
	movq	%rax, %rdi
	movl	$-1, %edx
	callq	_gctl_ro_param
	leaq	L_.str.2(%rip), %rsi
	leaq	L_.str.3(%rip), %rcx
	movq	%rbx, %rdi
	movl	$-1, %edx
	callq	_gctl_ro_param
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	movl	$-1, %edx
	movq	%r14, %rcx
	callq	_gctl_ro_param
	movq	_SHA512_DIGEST_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	(%r12), %rcx
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	callq	_gctl_ro_param
	testq	%r15, %r15
	je	LBB0_4
## %bb.1:
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_open
	movl	%eax, %r12d
	testl	%eax, %eax
	jns	LBB0_3
## %bb.2:
	leaq	L_.str.6(%rip), %rsi
	movl	$1, %edi
	movq	%r15, %rdx
	callq	_err
LBB0_3:
	leaq	-48(%rbp), %r15
	movl	%r12d, %edi
	movq	%r15, %rsi
	movl	$16, %edx
	callq	_read
	leaq	L_.str.7(%rip), %rsi
	movq	%rbx, %rdi
	movl	$16, %edx
	movq	%r15, %rcx
	callq	_gctl_ro_param
	movl	%r12d, %edi
	callq	_close
LBB0_4:
	movq	%rbx, %rdi
	callq	_gctl_issue
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.8(%rip), %rsi
	movl	$1, %edi
	movq	%r14, %rdx
	movq	%rax, %rcx
	callq	_errx
LBB0_6:
	xorl	%edi, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"verb"

L_.str.1:                               ## @.str.1
	.asciz	"create geom"

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

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

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

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

	.comm	_SHA512_DIGEST_LENGTH,4,2       ## @SHA512_DIGEST_LENGTH
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
L_.str.6:                               ## @.str.6
	.asciz	"%s"

L_.str.7:                               ## @.str.7
	.asciz	"key"

L_.str.8:                               ## @.str.8
	.asciz	"Attach to %s failed: %s"

	.no_dead_strip	_cmd_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cmd_attach
_cmd_attach:                            ; @cmd_attach
	.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	x21, x2
	mov	x19, x1
	mov	x22, x0
	bl	_gctl_get_handle
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
Lloh2:
	adrp	x3, l_.str.1@PAGE
Lloh3:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	w2, #-1
	bl	_gctl_ro_param
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
Lloh6:
	adrp	x3, l_.str.3@PAGE
Lloh7:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	w2, #-1
	bl	_gctl_ro_param
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	mov	w2, #-1
	mov	x3, x19
	bl	_gctl_ro_param
Lloh10:
	adrp	x8, _SHA512_DIGEST_LENGTH@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SHA512_DIGEST_LENGTH@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	ldr	x3, [x22]
Lloh13:
	adrp	x1, l_.str.5@PAGE
Lloh14:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_gctl_ro_param
	cbz	x21, LBB0_4
; %bb.1:
Lloh15:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	bl	_open
	mov	x22, x0
	tbz	w0, #31, LBB0_3
; %bb.2:
Lloh18:
	adrp	x1, l_.str.6@PAGE
Lloh19:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w0, #1
	mov	x2, x21
	bl	_err
LBB0_3:
	mov	x1, sp
	mov	x0, x22
	mov	w2, #16
	bl	_read
Lloh20:
	adrp	x1, l_.str.7@PAGE
Lloh21:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x3, sp
	mov	x0, x20
	mov	w2, #16
	bl	_gctl_ro_param
	mov	x0, x22
	bl	_close
LBB0_4:
	mov	x0, x20
	bl	_gctl_issue
	cbz	x0, LBB0_6
; %bb.5:
	mov	x3, x0
Lloh22:
	adrp	x1, l_.str.8@PAGE
Lloh23:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_errx
LBB0_6:
	mov	w0, #0
	bl	_exit
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"verb"

l_.str.1:                               ; @.str.1
	.asciz	"create geom"

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

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

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

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

	.comm	_SHA512_DIGEST_LENGTH,4,2       ; @SHA512_DIGEST_LENGTH
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
l_.str.6:                               ; @.str.6
	.asciz	"%s"

l_.str.7:                               ; @.str.7
	.asciz	"key"

l_.str.8:                               ; @.str.8
	.asciz	"Attach to %s failed: %s"

	.no_dead_strip	_cmd_attach
.subsections_via_symbols
