	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function resvacquire
_resvacquire:                           ## @resvacquire
	.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	$64, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r15
	movl	%esi, %edi
	movq	%rdx, %rsi
	movq	%r15, %rdx
	callq	_arg_parse
	testq	%rax, %rax
	je	LBB0_1
## %bb.8:
	addq	$64, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_acquire_opt@GOTPCREL(%rip), %r12
	movl	16(%r12), %edi
	leaq	-36(%rbp), %rsi
	movl	$1, %edx
	movl	$1, %ecx
	callq	_open_dev
	movl	-36(%rbp), %edi
	leaq	-56(%rbp), %rdx
	xorl	%esi, %esi
	callq	_get_nsid
	cmpq	$0, -56(%rbp)
	jne	LBB0_3
## %bb.2:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
	movl	%ebx, %edi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_arg_help
LBB0_3:
	movl	12(%r12), %edi
	callq	_htole64
	movl	%eax, -48(%rbp)
	movl	8(%r12), %edi
	callq	_htole64
	movl	%eax, -44(%rbp)
	leaq	-88(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	_NVME_OPC_RESERVATION_ACQUIRE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movl	(%r12), %eax
	movl	4(%r12), %edi
	andl	$7, %eax
	shll	$8, %edi
	orl	%eax, %edi
	callq	_htole32
	movl	%eax, -64(%rbp)
	leaq	-48(%rbp), %rax
	movq	%rax, -72(%rbp)
	movl	$8, -88(%rbp)
	movq	$0, -80(%rbp)
	movl	-36(%rbp), %edi
	movq	_NVME_PASSTHROUGH_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_ioctl
	testq	%rax, %rax
	jns	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_5:
	leaq	-84(%rbp), %rdi
	callq	_nvme_completion_is_error
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_7:
	movl	-36(%rbp), %edi
	callq	_close
	xorl	%edi, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_acquire_opt,20,2               ## @acquire_opt
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"This command require namespace-id\n"

	.comm	_NVME_OPC_RESERVATION_ACQUIRE,4,2 ## @NVME_OPC_RESERVATION_ACQUIRE
	.comm	_NVME_PASSTHROUGH_CMD,4,2       ## @NVME_PASSTHROUGH_CMD
L_.str.1:                               ## @.str.1
	.asciz	"acquire request failed"

L_.str.2:                               ## @.str.2
	.asciz	"acquire request returned error"

	.no_dead_strip	_resvacquire
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function resvacquire
_resvacquire:                           ; @resvacquire
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x2
	mov	x21, x1
	mov	x20, x0
	mov	x0, x1
	mov	x1, x2
	mov	x2, x20
	bl	_arg_parse
	cbz	x0, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_2:
Lloh0:
	adrp	x22, _acquire_opt@GOTPAGE
Lloh1:
	ldr	x22, [x22, _acquire_opt@GOTPAGEOFF]
	ldr	w0, [x22, #16]
	add	x1, sp, #20
	mov	w2, #1
	mov	w3, #1
	bl	_open_dev
	ldr	w0, [sp, #20]
	add	x2, sp, #8
	mov	x1, #0
	bl	_get_nsid
	ldr	x8, [sp, #8]
	cbnz	x8, LBB0_4
; %bb.3:
Lloh2:
	adrp	x8, _stderr@GOTPAGE
Lloh3:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_arg_help
LBB0_4:
	ldr	w0, [x22, #12]
	bl	_htole64
	str	w0, [sp, #24]
	ldr	w0, [x22, #8]
	bl	_htole64
	str	w0, [sp, #28]
	add	x19, sp, #32
	add	x0, sp, #32
	mov	w1, #0
	mov	w2, #32
	bl	_memset
Lloh7:
	adrp	x8, _NVME_OPC_RESERVATION_ACQUIRE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _NVME_OPC_RESERVATION_ACQUIRE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [sp, #60]
	ldp	w8, w9, [x22]
	and	w0, w8, #0x7
	bfi	w0, w9, #8, #24
	bl	_htole32
	str	w0, [sp, #56]
	add	x8, sp, #24
	mov	w9, #8
	str	w9, [sp, #32]
	stp	xzr, x8, [sp, #40]
	ldr	w0, [sp, #20]
Lloh10:
	adrp	x8, _NVME_PASSTHROUGH_CMD@GOTPAGE
Lloh11:
	ldr	x8, [x8, _NVME_PASSTHROUGH_CMD@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	add	x2, sp, #32
	bl	_ioctl
	tbz	x0, #63, LBB0_6
; %bb.5:
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_6:
	orr	x0, x19, #0x4
	bl	_nvme_completion_is_error
	cbz	x0, LBB0_8
; %bb.7:
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_8:
	ldr	w0, [sp, #20]
	bl	_close
	mov	w0, #0
	bl	_exit
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_acquire_opt,20,2               ; @acquire_opt
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"This command require namespace-id\n"

	.comm	_NVME_OPC_RESERVATION_ACQUIRE,4,2 ; @NVME_OPC_RESERVATION_ACQUIRE
	.comm	_NVME_PASSTHROUGH_CMD,4,2       ; @NVME_PASSTHROUGH_CMD
l_.str.1:                               ; @.str.1
	.asciz	"acquire request failed"

l_.str.2:                               ; @.str.2
	.asciz	"acquire request returned error"

	.no_dead_strip	_resvacquire
.subsections_via_symbols
