	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pd_next_buf
_pd_next_buf:                           ## @pd_next_buf
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_pd_count@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	decq	%rax
	movq	%rax, (%r15)
	movq	_pd_buf@GOTPCREL(%rip), %r12
	addl	$512, (%r12)                    ## imm = 0x200
	movq	_pd_block@GOTPCREL(%rip), %rcx
	incl	(%rcx)
	movq	_pd_run@GOTPCREL(%rip), %rcx
	decl	(%rcx)
	je	LBB0_1
## %bb.2:
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	_pd_lock@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_pd_req@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	___blk_end_request_cur
	movq	(%r13), %rdi
	callq	_blk_rq_cur_sectors
	movq	%rax, (%r15)
	movq	(%r13), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	jmp	LBB0_4
LBB0_1:
	movl	$1, %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pd_count,8,3                   ## @pd_count
	.comm	_pd_run,4,2                     ## @pd_run
	.comm	_pd_buf,4,2                     ## @pd_buf
	.comm	_pd_block,4,2                   ## @pd_block
	.comm	_pd_lock,4,2                    ## @pd_lock
	.comm	_pd_req,8,3                     ## @pd_req
	.no_dead_strip	_pd_next_buf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pd_next_buf
_pd_next_buf:                           ; @pd_next_buf
	.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
Lloh0:
	adrp	x20, _pd_count@GOTPAGE
Lloh1:
	ldr	x20, [x20, _pd_count@GOTPAGEOFF]
	ldr	x8, [x20]
	sub	x8, x8, #1
Lloh2:
	adrp	x9, _pd_run@GOTPAGE
Lloh3:
	ldr	x9, [x9, _pd_run@GOTPAGEOFF]
Lloh4:
	adrp	x10, _pd_block@GOTPAGE
Lloh5:
	ldr	x10, [x10, _pd_block@GOTPAGEOFF]
	str	x8, [x20]
	ldr	w11, [x10]
	add	w11, w11, #1
	str	w11, [x10]
Lloh6:
	adrp	x21, _pd_buf@GOTPAGE
Lloh7:
	ldr	x21, [x21, _pd_buf@GOTPAGEOFF]
	ldr	w10, [x21]
	add	w10, w10, #512
	str	w10, [x21]
	ldr	w10, [x9]
	subs	w10, w10, #1
	str	w10, [x9]
	b.eq	LBB0_4
; %bb.1:
	cbnz	x8, LBB0_3
; %bb.2:
Lloh8:
	adrp	x19, _pd_lock@GOTPAGE
Lloh9:
	ldr	x19, [x19, _pd_lock@GOTPAGEOFF]
	mov	x0, x19
	bl	_spin_lock_irqsave
Lloh10:
	adrp	x22, _pd_req@GOTPAGE
Lloh11:
	ldr	x22, [x22, _pd_req@GOTPAGEOFF]
	ldr	x0, [x22]
	mov	w1, #0
	bl	___blk_end_request_cur
	ldr	x0, [x22]
	bl	_blk_rq_cur_sectors
	str	x0, [x20]
	ldr	x8, [x22]
	ldr	w8, [x8]
	str	w8, [x21]
	mov	x0, x19
	bl	_spin_unlock_irqrestore
LBB0_3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	mov	w0, #1
LBB0_5:
	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
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_pd_count,8,3                   ; @pd_count
	.comm	_pd_run,4,2                     ; @pd_run
	.comm	_pd_buf,4,2                     ; @pd_buf
	.comm	_pd_block,4,2                   ; @pd_block
	.comm	_pd_lock,4,2                    ; @pd_lock
	.comm	_pd_req,8,3                     ; @pd_req
	.no_dead_strip	_pd_next_buf
.subsections_via_symbols
