	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sanitize
_sanitize:                              ## @sanitize
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -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_2
## %bb.1:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_opt@GOTPCREL(%rip), %rax
	movq	40(%rax), %rdi
	testq	%rdi, %rdi
	jne	LBB0_6
## %bb.3:
	xorl	%r13d, %r13d
	movq	_opt@GOTPCREL(%rip), %rax
	cmpq	$0, 32(%rax)
	movl	$0, %r12d
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	jne	LBB0_12
## %bb.4:
	leaq	L_.str(%rip), %rsi
LBB0_5:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fprintf
	movl	%ebx, %edi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_arg_help
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_12
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	movl	$1, -52(%rbp)                   ## 4-byte Folded Spill
	xorl	%r13d, %r13d
	jmp	LBB0_10
LBB0_8:
	movq	_opt@GOTPCREL(%rip), %rax
	movq	40(%rax), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_44
## %bb.9:
	movl	$2, -52(%rbp)                   ## 4-byte Folded Spill
	movb	$1, %r13b
LBB0_10:
	xorl	%r12d, %r12d
LBB0_11:
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
LBB0_12:
	movq	_opt@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	cmpl	$17, %eax
	jl	LBB0_15
LBB0_14:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	callq	_fprintf
	movl	%ebx, %edi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_arg_help
LBB0_15:
	movq	_opt@GOTPCREL(%rip), %rax
	movq	8(%rax), %rdi
	leaq	-44(%rbp), %rsi
	movl	$1, %edx
	movl	$1, %ecx
	callq	_open_dev
	movl	-44(%rbp), %edi
	leaq	-80(%rbp), %rsi
	leaq	-72(%rbp), %rdx
	callq	_get_nsid
	cmpq	$0, -72(%rbp)
	je	LBB0_17
## %bb.16:
	movl	-44(%rbp), %edi
	callq	_close
	movq	-80(%rbp), %rdi
	leaq	-44(%rbp), %rsi
	movl	$1, %edx
	movl	$1, %ecx
	callq	_open_dev
LBB0_17:
	movq	-80(%rbp), %rdi
	callq	_free
	movq	_opt@GOTPCREL(%rip), %rax
	cmpq	$0, 32(%rax)
	jne	LBB0_31
## %bb.18:
	movl	-44(%rbp), %edi
	leaq	-64(%rbp), %rsi
	callq	_read_controller_data
	movl	-64(%rbp), %eax
	movq	_NVME_CTRLR_DATA_SANICAP_BES_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%eax, %edx
	sarl	%cl, %edx
	movq	_NVME_CTRLR_DATA_SANICAP_BES_MASK@GOTPCREL(%rip), %rcx
	testl	%edx, (%rcx)
	setne	%cl
	xorb	$1, %r13b
	orb	%cl, %r13b
	jne	LBB0_20
## %bb.19:
	leaq	L_.str.7(%rip), %rsi
	movl	$1, %edi
	callq	_errx
	movl	-64(%rbp), %eax
LBB0_20:
	movq	_NVME_CTRLR_DATA_SANICAP_OWS_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%eax, %edx
	sarl	%cl, %edx
	movq	_NVME_CTRLR_DATA_SANICAP_OWS_MASK@GOTPCREL(%rip), %rcx
	testl	%edx, (%rcx)
	setne	%cl
	xorb	$1, %r12b
	orb	%cl, %r12b
	jne	LBB0_22
## %bb.21:
	leaq	L_.str.8(%rip), %rsi
	movl	$1, %edi
	callq	_errx
	movl	-64(%rbp), %eax
LBB0_22:
	movq	_NVME_CTRLR_DATA_SANICAP_CES_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movq	_NVME_CTRLR_DATA_SANICAP_CES_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	setne	%al
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	xorb	$1, %cl
	orb	%al, %cl
	jne	LBB0_24
## %bb.23:
	leaq	L_.str.9(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_24:
	cmpq	$0, -72(%rbp)
	je	LBB0_27
## %bb.25:
	cmpl	$2, -60(%rbp)
	jl	LBB0_27
## %bb.26:
	leaq	L_.str.10(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_27:
	leaq	-120(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	_NVME_OPC_SANITIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -96(%rbp)
	movq	_opt@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movl	16(%rbx), %ecx
	shll	$9, %ecx
	addl	-52(%rbp), %ecx                 ## 4-byte Folded Reload
	movl	20(%rbx), %edx
	shll	$8, %edx
	orl	%ecx, %edx
	shll	$4, %eax
	movzbl	%al, %eax
	orl	%edx, %eax
	movl	24(%rbx), %edi
	shll	$3, %edi
	orl	%eax, %edi
	callq	_htole32
	movq	%rax, -104(%rbp)
	movl	28(%rbx), %edi
	callq	_htole32
	movq	%rax, -112(%rbp)
	movl	-44(%rbp), %edi
	movq	_NVME_PASSTHROUGH_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	callq	_ioctl
	testq	%rax, %rax
	jns	LBB0_29
## %bb.28:
	leaq	L_.str.11(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_29:
	leaq	-120(%rbp), %rdi
	callq	_nvme_completion_is_error
	testq	%rax, %rax
	je	LBB0_31
## %bb.30:
	leaq	L_.str.12(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_31:
	movl	$1, %ebx
	movq	_NVME_SS_PAGE_SSTAT_STATUS_SHIFT@GOTPCREL(%rip), %r15
	movq	_NVME_SS_PAGE_SSTAT_STATUS_MASK@GOTPCREL(%rip), %r12
	leaq	L_.str.15(%rip), %r14
	movq	_stdout@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_32:                                ## =>This Inner Loop Header: Depth=1
	movl	-44(%rbp), %edi
	movq	_NVME_LOG_SANITIZE_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NVME_GLOBAL_NAMESPACE_TAG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$8
	leaq	-88(%rbp), %rax
	pushq	%rax
	callq	_read_logpage
	addq	$16, %rsp
	movl	-88(%rbp), %eax
	movzbl	(%r15), %ecx
	sarl	%cl, %eax
	andl	(%r12), %eax
	cmpl	$129, %eax
	jne	LBB0_34
## %bb.33:                              ##   in Loop: Header=BB0_32 Depth=1
	movl	-84(%rbp), %edx
	imull	$100, %edx, %esi
	leal	32768(%rsi), %eax
	addl	$98303, %esi                    ## imm = 0x17FFF
	testl	%eax, %eax
	cmovnsl	%eax, %esi
	sarl	$16, %esi
	movq	%r14, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	callq	_printf
	movl	(%r13), %edi
	callq	_fflush
	cmpl	$16, %ebx
	adcl	$0, %ebx
	movl	%ebx, %edi
	callq	_sleep
	jmp	LBB0_32
LBB0_34:
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_40
## %bb.35:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_36:
	leaq	L_.str.13(%rip), %rdi
	jmp	LBB0_41
LBB0_37:
	leaq	L_.str.16(%rip), %rdi
	jmp	LBB0_41
LBB0_38:
	leaq	L_.str.17(%rip), %rdi
	jmp	LBB0_41
LBB0_39:
	leaq	L_.str.14(%rip), %rdi
	jmp	LBB0_41
LBB0_40:
	leaq	L_.str.18(%rip), %rdi
LBB0_41:
	xorl	%eax, %eax
	callq	_printf
	cmpl	$2, %ebx
	jb	LBB0_43
## %bb.42:
	leaq	L_.str.19(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_43:
	movl	$10, %edi
	callq	_putchar
	movl	-44(%rbp), %edi
	callq	_close
	xorl	%edi, %edi
	callq	_exit
LBB0_44:
	movq	_opt@GOTPCREL(%rip), %rax
	movq	40(%rax), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_46
## %bb.45:
	movl	$3, -52(%rbp)                   ## 4-byte Folded Spill
	movb	$1, %r12b
	xorl	%r13d, %r13d
	jmp	LBB0_11
LBB0_46:
	movq	_opt@GOTPCREL(%rip), %rax
	movq	40(%rax), %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_48
## %bb.47:
	movl	$4, -52(%rbp)                   ## 4-byte Folded Spill
	movb	$1, %al
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	jmp	LBB0_12
LBB0_48:
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_5
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_36, LBB0_36-LJTI0_0
.set L0_0_set_40, LBB0_40-LJTI0_0
.set L0_0_set_37, LBB0_37-LJTI0_0
.set L0_0_set_38, LBB0_38-LJTI0_0
.set L0_0_set_39, LBB0_39-LJTI0_0
LJTI0_0:
	.long	L0_0_set_36
	.long	L0_0_set_40
	.long	L0_0_set_37
	.long	L0_0_set_38
	.long	L0_0_set_39
	.end_data_region
                                        ## -- End function
	.comm	_opt,48,3                       ## @opt
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Sanitize Action is not specified\n"

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

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

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

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

L_.str.5:                               ## @.str.5
	.asciz	"Incorrect Sanitize Action value\n"

L_.str.6:                               ## @.str.6
	.asciz	"Incorrect Overwrite Pass Count value\n"

	.comm	_NVME_CTRLR_DATA_SANICAP_BES_SHIFT,4,2 ## @NVME_CTRLR_DATA_SANICAP_BES_SHIFT
	.comm	_NVME_CTRLR_DATA_SANICAP_BES_MASK,4,2 ## @NVME_CTRLR_DATA_SANICAP_BES_MASK
L_.str.7:                               ## @.str.7
	.asciz	"controller does not support Block Erase"

	.comm	_NVME_CTRLR_DATA_SANICAP_OWS_SHIFT,4,2 ## @NVME_CTRLR_DATA_SANICAP_OWS_SHIFT
	.comm	_NVME_CTRLR_DATA_SANICAP_OWS_MASK,4,2 ## @NVME_CTRLR_DATA_SANICAP_OWS_MASK
L_.str.8:                               ## @.str.8
	.asciz	"controller does not support Overwrite"

	.comm	_NVME_CTRLR_DATA_SANICAP_CES_SHIFT,4,2 ## @NVME_CTRLR_DATA_SANICAP_CES_SHIFT
	.comm	_NVME_CTRLR_DATA_SANICAP_CES_MASK,4,2 ## @NVME_CTRLR_DATA_SANICAP_CES_MASK
L_.str.9:                               ## @.str.9
	.asciz	"controller does not support Crypto Erase"

L_.str.10:                              ## @.str.10
	.asciz	"can't sanitize one of namespaces, specify controller"

	.comm	_NVME_OPC_SANITIZE,4,2          ## @NVME_OPC_SANITIZE
	.comm	_NVME_PASSTHROUGH_CMD,4,2       ## @NVME_PASSTHROUGH_CMD
L_.str.11:                              ## @.str.11
	.asciz	"sanitize request failed"

L_.str.12:                              ## @.str.12
	.asciz	"sanitize request returned error"

	.comm	_NVME_LOG_SANITIZE_STATUS,4,2   ## @NVME_LOG_SANITIZE_STATUS
	.comm	_NVME_GLOBAL_NAMESPACE_TAG,4,2  ## @NVME_GLOBAL_NAMESPACE_TAG
	.comm	_NVME_SS_PAGE_SSTAT_STATUS_SHIFT,4,2 ## @NVME_SS_PAGE_SSTAT_STATUS_SHIFT
	.comm	_NVME_SS_PAGE_SSTAT_STATUS_MASK,4,2 ## @NVME_SS_PAGE_SSTAT_STATUS_MASK
L_.str.13:                              ## @.str.13
	.asciz	"Never sanitized"

L_.str.14:                              ## @.str.14
	.asciz	"Sanitize completed"

L_.str.15:                              ## @.str.15
	.asciz	"Sanitize in progress: %u%% (%u/65535)\r"

	.comm	_stdout,4,2                     ## @stdout
L_.str.16:                              ## @.str.16
	.asciz	"Sanitize failed"

L_.str.17:                              ## @.str.17
	.asciz	"Sanitize completed with deallocation"

L_.str.18:                              ## @.str.18
	.asciz	"Sanitize status unknown"

L_.str.19:                              ## @.str.19
	.asciz	"                       "

	.no_dead_strip	_sanitize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sanitize
_sanitize:                              ; @sanitize
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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	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, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_2:
Lloh0:
	adrp	x22, _opt@GOTPAGE
Lloh1:
	ldr	x22, [x22, _opt@GOTPAGEOFF]
	ldr	x0, [x22, #40]
	cbnz	x0, LBB0_7
; %bb.3:
	ldr	x8, [x22, #32]
	cbnz	x8, LBB0_6
; %bb.4:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
LBB0_5:
Lloh4:
	adrp	x8, _stderr@GOTPAGE
Lloh5:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_fprintf
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_arg_help
LBB0_6:
	mov	w26, #0
	mov	w25, #0
	mov	w24, #0
	mov	w23, #0
	b	LBB0_15
LBB0_7:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_9
; %bb.8:
	mov	w26, #0
	mov	w25, #0
	mov	w24, #0
	mov	w23, #1
	b	LBB0_15
LBB0_9:
	ldr	x0, [x22, #40]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_11
; %bb.10:
	mov	w25, #0
	mov	w24, #0
	mov	w23, #2
	mov	w26, #1
	b	LBB0_15
LBB0_11:
	ldr	x0, [x22, #40]
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_13
; %bb.12:
	mov	w26, #0
	mov	w24, #0
	mov	w23, #3
	mov	w25, #1
	b	LBB0_15
LBB0_13:
	ldr	x0, [x22, #40]
Lloh13:
	adrp	x1, l_.str.4@PAGE
Lloh14:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_strcmp
	cbnz	x0, LBB0_46
; %bb.14:
	mov	w26, #0
	mov	w25, #0
	mov	w23, #4
	mov	w24, #1
LBB0_15:
	ldr	w8, [x22]
	cmp	w8, #0
	ccmp	w8, #17, #0, ne
	b.lt	LBB0_17
; %bb.16:
Lloh15:
	adrp	x8, _stderr@GOTPAGE
Lloh16:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x1, l_.str.6@PAGE
Lloh19:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_fprintf
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_arg_help
LBB0_17:
	ldr	x0, [x22, #8]
	add	x1, sp, #28
	mov	w2, #1
	mov	w3, #1
	bl	_open_dev
	ldr	w0, [sp, #28]
	add	x1, sp, #40
	add	x2, sp, #32
	bl	_get_nsid
	ldr	x8, [sp, #32]
	cbz	x8, LBB0_19
; %bb.18:
	ldr	w0, [sp, #28]
	bl	_close
	ldr	x0, [sp, #40]
	add	x1, sp, #28
	mov	w2, #1
	mov	w3, #1
	bl	_open_dev
LBB0_19:
	ldr	x0, [sp, #40]
	bl	_free
	ldr	x8, [x22, #32]
	cbnz	x8, LBB0_33
; %bb.20:
	ldr	w0, [sp, #28]
	add	x1, sp, #88
	bl	_read_controller_data
	ldr	w8, [sp, #88]
Lloh20:
	adrp	x9, _NVME_CTRLR_DATA_SANICAP_BES_SHIFT@GOTPAGE
Lloh21:
	ldr	x9, [x9, _NVME_CTRLR_DATA_SANICAP_BES_SHIFT@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
Lloh23:
	adrp	x10, _NVME_CTRLR_DATA_SANICAP_BES_MASK@GOTPAGE
Lloh24:
	ldr	x10, [x10, _NVME_CTRLR_DATA_SANICAP_BES_MASK@GOTPAGEOFF]
	asr	w9, w8, w9
Lloh25:
	ldr	w10, [x10]
	tst	w9, w10
	cset	w9, ne
	eor	w10, w26, #0x1
	orr	w9, w10, w9
	tbnz	w9, #0, LBB0_22
; %bb.21:
Lloh26:
	adrp	x1, l_.str.7@PAGE
Lloh27:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	w0, #1
	bl	_errx
	ldr	w8, [sp, #88]
LBB0_22:
Lloh28:
	adrp	x9, _NVME_CTRLR_DATA_SANICAP_OWS_SHIFT@GOTPAGE
Lloh29:
	ldr	x9, [x9, _NVME_CTRLR_DATA_SANICAP_OWS_SHIFT@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
Lloh31:
	adrp	x10, _NVME_CTRLR_DATA_SANICAP_OWS_MASK@GOTPAGE
Lloh32:
	ldr	x10, [x10, _NVME_CTRLR_DATA_SANICAP_OWS_MASK@GOTPAGEOFF]
	asr	w9, w8, w9
Lloh33:
	ldr	w10, [x10]
	tst	w9, w10
	cset	w9, ne
	eor	w10, w25, #0x1
	orr	w9, w10, w9
	tbnz	w9, #0, LBB0_24
; %bb.23:
Lloh34:
	adrp	x1, l_.str.8@PAGE
Lloh35:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	w0, #1
	bl	_errx
	ldr	w8, [sp, #88]
LBB0_24:
Lloh36:
	adrp	x9, _NVME_CTRLR_DATA_SANICAP_CES_SHIFT@GOTPAGE
Lloh37:
	ldr	x9, [x9, _NVME_CTRLR_DATA_SANICAP_CES_SHIFT@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
Lloh39:
	adrp	x10, _NVME_CTRLR_DATA_SANICAP_CES_MASK@GOTPAGE
Lloh40:
	ldr	x10, [x10, _NVME_CTRLR_DATA_SANICAP_CES_MASK@GOTPAGEOFF]
	asr	w8, w8, w9
Lloh41:
	ldr	w9, [x10]
	tst	w8, w9
	cset	w8, ne
	eor	w9, w24, #0x1
	orr	w8, w9, w8
	tbnz	w8, #0, LBB0_26
; %bb.25:
Lloh42:
	adrp	x1, l_.str.9@PAGE
Lloh43:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_26:
	ldr	x8, [sp, #32]
	cbz	x8, LBB0_29
; %bb.27:
	ldr	w8, [sp, #92]
	cmp	w8, #2
	b.lt	LBB0_29
; %bb.28:
Lloh44:
	adrp	x1, l_.str.10@PAGE
Lloh45:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_29:
	add	x0, sp, #56
	mov	w1, #0
	mov	w2, #32
	bl	_memset
Lloh46:
	adrp	x8, _NVME_OPC_SANITIZE@GOTPAGE
Lloh47:
	ldr	x8, [x8, _NVME_OPC_SANITIZE@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	str	w8, [sp, #80]
	ldp	w8, w9, [x22, #16]
	ldr	w10, [x22]
	ldr	w11, [x22, #24]
	bfi	w23, w8, #9, #23
	orr	w8, w23, w9, lsl #8
	bfi	w8, w10, #4, #4
	orr	w0, w8, w11, lsl #3
	bl	_htole32
	str	x0, [sp, #72]
	ldr	w0, [x22, #28]
	bl	_htole32
	str	x0, [sp, #64]
	ldr	w0, [sp, #28]
Lloh49:
	adrp	x8, _NVME_PASSTHROUGH_CMD@GOTPAGE
Lloh50:
	ldr	x8, [x8, _NVME_PASSTHROUGH_CMD@GOTPAGEOFF]
Lloh51:
	ldr	w1, [x8]
	add	x2, sp, #56
	bl	_ioctl
	tbz	x0, #63, LBB0_31
; %bb.30:
Lloh52:
	adrp	x1, l_.str.11@PAGE
Lloh53:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_31:
	add	x0, sp, #56
	bl	_nvme_completion_is_error
	cbz	x0, LBB0_33
; %bb.32:
Lloh54:
	adrp	x1, l_.str.12@PAGE
Lloh55:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_33:
	mov	w19, #1
Lloh56:
	adrp	x21, _NVME_LOG_SANITIZE_STATUS@GOTPAGE
Lloh57:
	ldr	x21, [x21, _NVME_LOG_SANITIZE_STATUS@GOTPAGEOFF]
Lloh58:
	adrp	x22, _NVME_GLOBAL_NAMESPACE_TAG@GOTPAGE
Lloh59:
	ldr	x22, [x22, _NVME_GLOBAL_NAMESPACE_TAG@GOTPAGEOFF]
	mov	w23, #100
Lloh60:
	adrp	x24, _NVME_SS_PAGE_SSTAT_STATUS_SHIFT@GOTPAGE
Lloh61:
	ldr	x24, [x24, _NVME_SS_PAGE_SSTAT_STATUS_SHIFT@GOTPAGEOFF]
	mov	w25, #32767
	movk	w25, #1, lsl #16
Lloh62:
	adrp	x26, _NVME_SS_PAGE_SSTAT_STATUS_MASK@GOTPAGE
Lloh63:
	ldr	x26, [x26, _NVME_SS_PAGE_SSTAT_STATUS_MASK@GOTPAGEOFF]
Lloh64:
	adrp	x20, l_.str.15@PAGE
Lloh65:
	add	x20, x20, l_.str.15@PAGEOFF
Lloh66:
	adrp	x27, _stdout@GOTPAGE
Lloh67:
	ldr	x27, [x27, _stdout@GOTPAGEOFF]
LBB0_34:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [sp, #28]
	ldr	w1, [x21]
	ldr	w2, [x22]
	add	x6, sp, #48
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	mov	w7, #8
	bl	_read_logpage
	ldr	w8, [sp, #48]
	ldr	w9, [x24]
	asr	w8, w8, w9
	ldr	w9, [x26]
	and	w8, w8, w9
	cmp	w8, #129
	b.ne	LBB0_36
; %bb.35:                               ;   in Loop: Header=BB0_34 Depth=1
	ldr	w8, [sp, #52]
	mul	w9, w8, w23
	add	w10, w9, #8, lsl #12            ; =32768
	add	w9, w9, w25
	cmp	w10, #0
	csel	w9, w9, w10, lt
	asr	w9, w9, #16
	stp	x9, x8, [sp]
	mov	x0, x20
	bl	_printf
	ldr	w0, [x27]
	bl	_fflush
	cmp	w19, #16
	cinc	w19, w19, lo
	mov	x0, x19
	bl	_sleep
	b	LBB0_34
LBB0_36:
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_42
; %bb.37:
Lloh68:
	adrp	x9, lJTI0_0@PAGE
Lloh69:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_38
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_38:
Lloh70:
	adrp	x0, l_.str.13@PAGE
Lloh71:
	add	x0, x0, l_.str.13@PAGEOFF
	b	LBB0_43
LBB0_39:
Lloh72:
	adrp	x0, l_.str.16@PAGE
Lloh73:
	add	x0, x0, l_.str.16@PAGEOFF
	b	LBB0_43
LBB0_40:
Lloh74:
	adrp	x0, l_.str.17@PAGE
Lloh75:
	add	x0, x0, l_.str.17@PAGEOFF
	b	LBB0_43
LBB0_41:
Lloh76:
	adrp	x0, l_.str.14@PAGE
Lloh77:
	add	x0, x0, l_.str.14@PAGEOFF
	b	LBB0_43
LBB0_42:
Lloh78:
	adrp	x0, l_.str.18@PAGE
Lloh79:
	add	x0, x0, l_.str.18@PAGEOFF
LBB0_43:
	bl	_printf
	cmp	w19, #2
	b.lo	LBB0_45
; %bb.44:
Lloh80:
	adrp	x0, l_.str.19@PAGE
Lloh81:
	add	x0, x0, l_.str.19@PAGEOFF
	bl	_printf
LBB0_45:
	mov	w0, #10
	bl	_putchar
	ldr	w0, [sp, #28]
	bl	_close
	mov	w0, #0
	bl	_exit
LBB0_46:
Lloh82:
	adrp	x1, l_.str.5@PAGE
Lloh83:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh66, Lloh67
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpLdrGot	Lloh62, Lloh63
	.loh AdrpLdrGot	Lloh60, Lloh61
	.loh AdrpLdrGot	Lloh58, Lloh59
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpAdd	Lloh68, Lloh69
	.loh AdrpAdd	Lloh70, Lloh71
	.loh AdrpAdd	Lloh72, Lloh73
	.loh AdrpAdd	Lloh74, Lloh75
	.loh AdrpAdd	Lloh76, Lloh77
	.loh AdrpAdd	Lloh78, Lloh79
	.loh AdrpAdd	Lloh80, Lloh81
	.loh AdrpAdd	Lloh82, Lloh83
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_38-LBB0_38)>>2
	.byte	(LBB0_42-LBB0_38)>>2
	.byte	(LBB0_39-LBB0_38)>>2
	.byte	(LBB0_40-LBB0_38)>>2
	.byte	(LBB0_41-LBB0_38)>>2
                                        ; -- End function
	.comm	_opt,48,3                       ; @opt
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Sanitize Action is not specified\n"

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

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

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

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

l_.str.5:                               ; @.str.5
	.asciz	"Incorrect Sanitize Action value\n"

l_.str.6:                               ; @.str.6
	.asciz	"Incorrect Overwrite Pass Count value\n"

	.comm	_NVME_CTRLR_DATA_SANICAP_BES_SHIFT,4,2 ; @NVME_CTRLR_DATA_SANICAP_BES_SHIFT
	.comm	_NVME_CTRLR_DATA_SANICAP_BES_MASK,4,2 ; @NVME_CTRLR_DATA_SANICAP_BES_MASK
l_.str.7:                               ; @.str.7
	.asciz	"controller does not support Block Erase"

	.comm	_NVME_CTRLR_DATA_SANICAP_OWS_SHIFT,4,2 ; @NVME_CTRLR_DATA_SANICAP_OWS_SHIFT
	.comm	_NVME_CTRLR_DATA_SANICAP_OWS_MASK,4,2 ; @NVME_CTRLR_DATA_SANICAP_OWS_MASK
l_.str.8:                               ; @.str.8
	.asciz	"controller does not support Overwrite"

	.comm	_NVME_CTRLR_DATA_SANICAP_CES_SHIFT,4,2 ; @NVME_CTRLR_DATA_SANICAP_CES_SHIFT
	.comm	_NVME_CTRLR_DATA_SANICAP_CES_MASK,4,2 ; @NVME_CTRLR_DATA_SANICAP_CES_MASK
l_.str.9:                               ; @.str.9
	.asciz	"controller does not support Crypto Erase"

l_.str.10:                              ; @.str.10
	.asciz	"can't sanitize one of namespaces, specify controller"

	.comm	_NVME_OPC_SANITIZE,4,2          ; @NVME_OPC_SANITIZE
	.comm	_NVME_PASSTHROUGH_CMD,4,2       ; @NVME_PASSTHROUGH_CMD
l_.str.11:                              ; @.str.11
	.asciz	"sanitize request failed"

l_.str.12:                              ; @.str.12
	.asciz	"sanitize request returned error"

	.comm	_NVME_LOG_SANITIZE_STATUS,4,2   ; @NVME_LOG_SANITIZE_STATUS
	.comm	_NVME_GLOBAL_NAMESPACE_TAG,4,2  ; @NVME_GLOBAL_NAMESPACE_TAG
	.comm	_NVME_SS_PAGE_SSTAT_STATUS_SHIFT,4,2 ; @NVME_SS_PAGE_SSTAT_STATUS_SHIFT
	.comm	_NVME_SS_PAGE_SSTAT_STATUS_MASK,4,2 ; @NVME_SS_PAGE_SSTAT_STATUS_MASK
l_.str.13:                              ; @.str.13
	.asciz	"Never sanitized"

l_.str.14:                              ; @.str.14
	.asciz	"Sanitize completed"

l_.str.15:                              ; @.str.15
	.asciz	"Sanitize in progress: %u%% (%u/65535)\r"

	.comm	_stdout,4,2                     ; @stdout
l_.str.16:                              ; @.str.16
	.asciz	"Sanitize failed"

l_.str.17:                              ; @.str.17
	.asciz	"Sanitize completed with deallocation"

l_.str.18:                              ; @.str.18
	.asciz	"Sanitize status unknown"

l_.str.19:                              ; @.str.19
	.asciz	"                       "

	.no_dead_strip	_sanitize
.subsections_via_symbols
