	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nextbuf
_nextbuf:                               ## @nextbuf
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	32(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.1:
	movq	(%r15), %rbx
	testq	%rbx, %rbx
	jne	LBB0_10
## %bb.2:
	movq	8(%r15), %r14
	testq	%r14, %r14
	jne	LBB0_5
## %bb.3:
	callq	_blk_peek_request
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_blk_start_request
	movq	%r14, 8(%r15)
	movq	8(%r14), %rax
	movq	%rax, 16(%r15)
	movq	%r14, %rdi
	callq	_rqbiocnt
	movq	%rax, (%r14)
LBB0_5:
	movl	24(%r15), %edi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mempool_alloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.6:
	movq	%rax, %rbx
	movq	16(%r15), %r12
	movq	%rax, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_bufinit
	movq	(%r12), %rax
	movq	%rax, 16(%r15)
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	movq	$0, 8(%r15)
LBB0_8:
	movq	%rbx, (%r15)
	jmp	LBB0_10
LBB0_11:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
LBB0_9:
	xorl	%ebx, %ebx
LBB0_10:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"aoe: nextbuf: unable to mempool_alloc!\n"

	.no_dead_strip	_nextbuf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nextbuf
_nextbuf:                               ; @nextbuf
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x0
	ldr	x0, [x0, #32]
	cbz	x0, LBB0_9
; %bb.1:
	ldr	x21, [x19]
	cbnz	x21, LBB0_10
; %bb.2:
	ldr	x20, [x19, #8]
	cbnz	x20, LBB0_5
; %bb.3:
	bl	_blk_peek_request
	cbz	x0, LBB0_9
; %bb.4:
	mov	x20, x0
	bl	_blk_start_request
	ldr	x8, [x20, #8]
	stp	x20, x8, [x19, #8]
	mov	x0, x20
	bl	_rqbiocnt
	str	x0, [x20]
LBB0_5:
	ldr	w0, [x19, #24]
Lloh0:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_mempool_alloc
	mov	x21, x0
	cbz	x0, LBB0_11
; %bb.6:
	ldr	x22, [x19, #16]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_bufinit
	ldr	x8, [x22]
	str	x8, [x19, #16]
	cbnz	x8, LBB0_8
; %bb.7:
	str	xzr, [x19, #8]
LBB0_8:
	str	x21, [x19]
	b	LBB0_10
LBB0_9:
	mov	x21, #0
LBB0_10:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_11:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"aoe: nextbuf: unable to mempool_alloc!\n"

	.no_dead_strip	_nextbuf
.subsections_via_symbols
