	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvme_nvm_set_bb_tbl
_nvme_nvm_set_bb_tbl:                   ## @nvme_nvm_set_bb_tbl
	.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	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	(%rdi), %rax
	movq	(%rax), %r12
	movq	_nvme_nvm_admin_set_bb_tbl@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movq	8(%r12), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movl	%eax, -44(%rbp)
	movl	(%r15), %edi
	callq	_cpu_to_le64
	movl	%eax, -48(%rbp)
	decl	%ebx
	movl	%ebx, %edi
	callq	_cpu_to_le16
	movl	%eax, -52(%rbp)
	movl	%r14d, -56(%rbp)
	movq	(%r12), %rax
	movl	4(%rax), %edi
	leaq	-56(%rbp), %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_nvme_submit_sync_cmd
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	(%r12), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_err
LBB0_2:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_nvme_nvm_admin_set_bb_tbl,4,2  ## @nvme_nvm_admin_set_bb_tbl
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set bad block table failed (%d)\n"

	.no_dead_strip	_nvme_nvm_set_bb_tbl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvme_nvm_set_bb_tbl
_nvme_nvm_set_bb_tbl:                   ; @nvme_nvm_set_bb_tbl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x3
	mov	x20, x2
	mov	x21, x1
	ldr	x8, [x0]
	ldr	x22, [x8]
Lloh0:
	adrp	x8, _nvme_nvm_admin_set_bb_tbl@GOTPAGE
Lloh1:
	ldr	x8, [x8, _nvme_nvm_admin_set_bb_tbl@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	ldr	x8, [x22, #8]
	ldr	w0, [x8]
	bl	_cpu_to_le32
	str	w0, [sp, #20]
	ldr	w0, [x21]
	bl	_cpu_to_le64
	str	w0, [sp, #16]
	sub	w0, w20, #1
	bl	_cpu_to_le16
	stp	w19, w0, [sp, #8]
	ldr	x8, [x22]
	ldr	w0, [x8, #4]
	add	x1, sp, #8
	mov	x2, #0
	mov	w3, #0
	bl	_nvme_submit_sync_cmd
	mov	x19, x0
	cbz	w0, LBB0_2
; %bb.1:
	ldr	x8, [x22]
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_dev_err
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_nvme_nvm_admin_set_bb_tbl,4,2  ; @nvme_nvm_admin_set_bb_tbl
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set bad block table failed (%d)\n"

	.no_dead_strip	_nvme_nvm_set_bb_tbl
.subsections_via_symbols
