	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvme_nvm_get_bb_tbl
_nvme_nvm_get_bb_tbl:                   ## @nvme_nvm_get_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movl	%esi, %r12d
	movq	%rdi, %r13
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movq	8(%rax), %r14
	movl	4(%rdi), %ebx
	imull	(%rdi), %ebx
	leal	24(%rbx), %r15d
	movq	_nvme_nvm_admin_get_bb_tbl@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -48(%rbp)
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movl	%eax, -52(%rbp)
	movl	%r12d, %edi
	callq	_cpu_to_le64
	movl	%eax, -56(%rbp)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	4(%r14), %edi
	leaq	-56(%rbp), %rsi
	movq	%rax, %r12
	movq	%rax, %rdx
	movl	%r15d, %ecx
	callq	_nvme_submit_sync_cmd
	testl	%eax, %eax
	movq	%r14, %rbx
	je	LBB0_4
## %bb.3:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movq	%r12, %rdi
	jmp	LBB0_14
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_4:
	movq	(%r12), %rax
	cmpb	$66, (%rax)
	jne	LBB0_8
## %bb.5:
	cmpb	$66, 1(%rax)
	jne	LBB0_8
## %bb.6:
	cmpb	$76, 2(%rax)
	jne	LBB0_8
## %bb.7:
	cmpb	$84, 3(%rax)
	jne	LBB0_8
## %bb.9:
	movl	16(%r12), %edi
	movq	%r12, %r14
	callq	_le16_to_cpu
	cmpl	$1, %eax
	jne	LBB0_10
## %bb.11:
	movl	12(%r14), %edi
	callq	_le32_to_cpu
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	cmpl	%r12d, %eax
	jne	LBB0_12
## %bb.13:
	movl	8(%r14), %esi
	movl	4(%r13), %edx
	imull	(%r13), %edx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_memcpy
	movq	%r14, %rdi
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_8:
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_err
	movq	%r12, %rdi
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_14:
	callq	_kfree
LBB0_15:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movq	%rbx, %rcx
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movl	(%rcx), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	movq	%r14, %rdi
	jmp	LBB0_14
LBB0_12:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movq	%rbx, %rcx
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movl	(%rcx), %r15d
	movl	12(%r14), %edi
	callq	_le32_to_cpu
	leaq	L_.str.3(%rip), %rsi
	movl	%r15d, %edi
	movl	%eax, %edx
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	movq	%r14, %rdi
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_nvme_nvm_admin_get_bb_tbl,4,2  ## @nvme_nvm_admin_get_bb_tbl
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"get bad block table failed (%d)\n"

	.comm	_EIO,4,2                        ## @EIO
L_.str.1:                               ## @.str.1
	.asciz	"bbt format mismatch\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"bbt version not supported\n"

L_.str.3:                               ## @.str.3
	.asciz	"bbt unsuspected blocks returned (%u!=%u)"

	.no_dead_strip	_nvme_nvm_get_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_get_bb_tbl
_nvme_nvm_get_bb_tbl:                   ; @nvme_nvm_get_bb_tbl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	ldp	w9, w10, [x0]
	mul	w23, w10, w9
Lloh0:
	adrp	x9, _nvme_nvm_admin_get_bb_tbl@GOTPAGE
Lloh1:
	ldr	x9, [x9, _nvme_nvm_admin_get_bb_tbl@GOTPAGEOFF]
	add	w22, w23, #24
Lloh2:
	ldr	w9, [x9]
	str	w9, [sp, #24]
	ldp	x8, x24, [x8]
	ldr	w0, [x8]
	bl	_cpu_to_le32
	str	w0, [sp, #20]
	mov	x0, x19
	bl	_cpu_to_le64
	str	w0, [sp, #16]
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	w0, [x24, #4]
	add	x1, sp, #16
	mov	x2, x19
	mov	x3, x22
	bl	_nvme_submit_sync_cmd
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_4
; %bb.2:
	ldr	w8, [x24]
	str	x0, [sp]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x8
	bl	_dev_err
Lloh8:
	adrp	x8, _EIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_12
LBB0_3:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_14
LBB0_4:
	ldr	x8, [x19]
	ldrb	w9, [x8]
	cmp	w9, #66
	b.ne	LBB0_11
; %bb.5:
	ldrb	w9, [x8, #1]
	cmp	w9, #66
	b.ne	LBB0_11
; %bb.6:
	ldrb	w9, [x8, #2]
	cmp	w9, #76
	b.ne	LBB0_11
; %bb.7:
	ldrb	w8, [x8, #3]
	cmp	w8, #84
	b.ne	LBB0_11
; %bb.8:
	ldr	w0, [x19, #16]
	bl	_le16_to_cpu
	cmp	w0, #1
	b.ne	LBB0_15
; %bb.9:
	ldr	w0, [x19, #12]
	bl	_le32_to_cpu
	cmp	w0, w23
	b.ne	LBB0_16
; %bb.10:
	ldr	w1, [x19, #8]
	ldp	w8, w9, [x21]
	mul	w2, w9, w8
	mov	x0, x20
	bl	_memcpy
	mov	w20, #0
	b	LBB0_13
LBB0_11:
	ldr	w0, [x24]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_13:
	mov	x0, x19
	bl	_kfree
LBB0_14:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_15:
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w20, w8
	ldr	w0, [x24]
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
	b	LBB0_13
LBB0_16:
Lloh22:
	adrp	x8, _EINVAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w20, w8
	ldr	w21, [x24]
	ldr	w0, [x19, #12]
	bl	_le32_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x0, x23, [sp]
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_nvme_nvm_admin_get_bb_tbl,4,2  ; @nvme_nvm_admin_get_bb_tbl
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"get bad block table failed (%d)\n"

	.comm	_EIO,4,2                        ; @EIO
l_.str.1:                               ; @.str.1
	.asciz	"bbt format mismatch\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"bbt version not supported\n"

l_.str.3:                               ; @.str.3
	.asciz	"bbt unsuspected blocks returned (%u!=%u)"

	.no_dead_strip	_nvme_nvm_get_bb_tbl
.subsections_via_symbols
