	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gvinum_attach
_gvinum_attach:                         ## @gvinum_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$0, -32(%rbp)
	movl	$-1, -28(%rbp)
	cmpl	$2, %edi
	jg	LBB0_1
## %bb.10:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_warnx                          ## TAILCALL
LBB0_1:
	movq	%rsi, %r14
	movl	%edi, %ebx
	cmpl	$3, %edi
	je	LBB0_7
## %bb.2:
	movq	24(%r14), %r15
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_3
## %bb.5:
	movq	%r15, %rdi
	jmp	LBB0_6
LBB0_3:
	movl	$1, -32(%rbp)
	cmpl	$5, %ebx
	jne	LBB0_7
## %bb.4:
	movq	32(%r14), %rdi
LBB0_6:
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_strtol
	movl	%eax, -28(%rbp)
LBB0_7:
	xorl	%eax, %eax
	callq	_gctl_get_handle
	movq	%rax, %rbx
	leaq	L_.str.2(%rip), %rsi
	leaq	L_.str.3(%rip), %rcx
	movq	%rax, %rdi
	movl	$-1, %edx
	xorl	%eax, %eax
	callq	_gctl_ro_param
	leaq	L_.str.4(%rip), %rsi
	leaq	L_.str.5(%rip), %rcx
	movq	%rbx, %rdi
	movl	$-1, %edx
	xorl	%eax, %eax
	callq	_gctl_ro_param
	movq	8(%r14), %rcx
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdi
	movl	$-1, %edx
	xorl	%eax, %eax
	callq	_gctl_ro_param
	movq	16(%r14), %rcx
	leaq	L_.str.7(%rip), %rsi
	movq	%rbx, %rdi
	movl	$-1, %edx
	xorl	%eax, %eax
	callq	_gctl_ro_param
	leaq	L_.str.8(%rip), %rsi
	leaq	-28(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$4, %edx
	xorl	%eax, %eax
	callq	_gctl_ro_param
	leaq	L_.str.1(%rip), %rsi
	leaq	-32(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$4, %edx
	xorl	%eax, %eax
	callq	_gctl_ro_param
	movq	%rbx, %rdi
	callq	_gctl_issue
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	leaq	L_.str.9(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_warnx
LBB0_9:
	movq	%rbx, %rdi
	callq	_gctl_free
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"usage:\tattach <subdisk> <plex> [rename] [<plexoffset>]\n\tattach <plex> <volume> [rename]"

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

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

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

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

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

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

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

L_.str.8:                               ## @.str.8
	.asciz	"offset"

L_.str.9:                               ## @.str.9
	.asciz	"attach failed: %s"

	.no_dead_strip	_gvinum_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gvinum_attach
_gvinum_attach:                         ; @gvinum_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	w8, #-1
	stp	w8, wzr, [sp, #8]
	cmp	w0, #2
	b.gt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	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
	b	_warnx
LBB0_2:
	mov	x19, x1
	mov	x20, x0
	cmp	w0, #3
	b.eq	LBB0_8
; %bb.3:
	ldr	x21, [x19, #24]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbz	w0, LBB0_5
; %bb.4:
	mov	x0, x21
	b	LBB0_7
LBB0_5:
	mov	w8, #1
	str	w8, [sp, #12]
	cmp	w20, #5
	b.ne	LBB0_8
; %bb.6:
	ldr	x0, [x19, #32]
LBB0_7:
	mov	x1, #0
	mov	w2, #0
	bl	_strtol
	str	w0, [sp, #8]
LBB0_8:
	bl	_gctl_get_handle
	mov	x20, x0
Lloh4:
	adrp	x8, l_.str.3@PAGE
Lloh5:
	add	x8, x8, l_.str.3@PAGEOFF
	str	x8, [sp]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w2, #-1
	bl	_gctl_ro_param
Lloh8:
	adrp	x8, l_.str.5@PAGE
Lloh9:
	add	x8, x8, l_.str.5@PAGEOFF
	str	x8, [sp]
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	mov	w2, #-1
	bl	_gctl_ro_param
	ldr	x8, [x19, #8]
	str	x8, [sp]
Lloh12:
	adrp	x1, l_.str.6@PAGE
Lloh13:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	mov	w2, #-1
	bl	_gctl_ro_param
	ldr	x8, [x19, #16]
	str	x8, [sp]
Lloh14:
	adrp	x1, l_.str.7@PAGE
Lloh15:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x20
	mov	w2, #-1
	bl	_gctl_ro_param
	add	x8, sp, #8
	str	x8, [sp]
Lloh16:
	adrp	x1, l_.str.8@PAGE
Lloh17:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x20
	mov	w2, #4
	bl	_gctl_ro_param
	add	x8, sp, #12
	str	x8, [sp]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	w2, #4
	bl	_gctl_ro_param
	mov	x0, x20
	bl	_gctl_issue
	cbz	x0, LBB0_10
; %bb.9:
	str	x0, [sp]
Lloh20:
	adrp	x0, l_.str.9@PAGE
Lloh21:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_warnx
LBB0_10:
	mov	x0, x20
	bl	_gctl_free
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"usage:\tattach <subdisk> <plex> [rename] [<plexoffset>]\n\tattach <plex> <volume> [rename]"

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

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

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

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

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

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

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

l_.str.8:                               ; @.str.8
	.asciz	"offset"

l_.str.9:                               ; @.str.9
	.asciz	"attach failed: %s"

	.no_dead_strip	_gvinum_attach
.subsections_via_symbols
