	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvm_bb_chunk_sense
_nvm_bb_chunk_sense:                    ## @nvm_bb_chunk_sense
	.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
	movl	%esi, %r15d
	movq	%rdi, %r14
	xorps	%xmm0, %xmm0
	movups	%xmm0, -64(%rbp)
	movups	%xmm0, -80(%rbp)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_alloc_page
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	leaq	-48(%rbp), %r12
	leaq	-40(%rbp), %rsi
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_bio_init
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	callq	_bio_add_page
	movq	_REQ_OP_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_bio_set_op_attrs
	movq	%r12, -64(%rbp)
	movq	_NVM_OP_PREAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, -88(%rbp)
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_generic_to_dev_addr
	movl	%eax, -76(%rbp)
	leaq	-88(%rbp), %rsi
	movq	%r14, %rdi
	callq	_nvm_submit_io_sync_raw
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	___free_page
	movl	-80(%rbp), %eax
	jmp	LBB0_4
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	addq	$64, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_REQ_OP_READ,4,2                ## @REQ_OP_READ
	.comm	_NVM_OP_PREAD,4,2               ## @NVM_OP_PREAD
	.no_dead_strip	_nvm_bb_chunk_sense
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvm_bb_chunk_sense
_nvm_bb_chunk_sense:                    ; @nvm_bb_chunk_sense
	.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	x21, x1
	mov	x19, x0
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #32]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_alloc_page
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	add	x22, sp, #16
	add	x0, sp, #16
	add	x1, sp, #8
	mov	w2, #1
	bl	_bio_init
Lloh3:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x0, sp, #16
	mov	x1, x20
	mov	w3, #0
	bl	_bio_add_page
Lloh6:
	adrp	x8, _REQ_OP_READ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _REQ_OP_READ@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x0, sp, #16
	mov	w2, #0
	bl	_bio_set_op_attrs
Lloh9:
	adrp	x8, _NVM_OP_PREAD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NVM_OP_PREAD@GOTPAGEOFF]
	str	x22, [sp, #48]
Lloh11:
	ldr	w8, [x8]
	str	w8, [sp, #40]
	movi.2s	v0, #1
	str	d0, [sp, #24]
	and	x1, x21, #0xffffffff
	mov	x0, x19
	bl	_generic_to_dev_addr
	str	w0, [sp, #36]
	add	x1, sp, #24
	mov	x0, x19
	bl	_nvm_submit_io_sync_raw
	cbnz	w0, LBB0_4
; %bb.2:
	mov	x0, x20
	bl	___free_page
	ldr	w0, [sp, #32]
	b	LBB0_4
LBB0_3:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_REQ_OP_READ,4,2                ; @REQ_OP_READ
	.comm	_NVM_OP_PREAD,4,2               ; @NVM_OP_PREAD
	.no_dead_strip	_nvm_bb_chunk_sense
.subsections_via_symbols
