	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_blkif_request
_do_blkif_request:                      ## @do_blkif_request
	.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	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
	movq	%r14, %rdi
	callq	_blk_peek_request
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rax, %rbx
	movq	_REQ_TYPE_FS@GOTPCREL(%rip), %r15
	movq	_EIO@GOTPCREL(%rip), %r13
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rbx), %rax
	movq	(%rax), %r12
	movq	%r12, %rdi
	callq	_RING_FULL
	testq	%rax, %rax
	jne	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_blk_start_request
	movq	(%rbx), %rax
	cmpq	(%r15), %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%esi, %esi
	subl	(%r13), %esi
	movq	%rbx, %rdi
	callq	___blk_end_request_all
	movq	%r14, %rdi
	callq	_blk_peek_request
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
	jmp	LBB0_8
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	12(%rbx), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_blk_rq_pos
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_blk_rq_cur_sectors
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_blk_rq_sectors
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	8(%rbx), %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_rq_data_dir
	testq	%rax, %rax
	leaq	L_.str.2(%rip), %r10
	leaq	L_.str.3(%rip), %rax
	cmoveq	%rax, %r10
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	xorl	%eax, %eax
	pushq	%r10
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	callq	_pr_debug
	addq	$16, %rsp
	movq	%rbx, %rdi
	callq	_blkif_queue_request
	testq	%rax, %rax
	jne	LBB0_6
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	incl	-44(%rbp)                       ## 4-byte Folded Spill
	movq	%r14, %rdi
	callq	_blk_peek_request
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
	jmp	LBB0_11
LBB0_6:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_blk_requeue_request
LBB0_7:
	movq	%r14, %rdi
	callq	_blk_stop_queue
LBB0_8:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_9
LBB0_11:
	movq	%r12, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_flush_requests                 ## TAILCALL
LBB0_9:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Entered do_blkif_request\n"

	.comm	_REQ_TYPE_FS,8,3                ## @REQ_TYPE_FS
	.comm	_EIO,4,2                        ## @EIO
L_.str.1:                               ## @.str.1
	.asciz	"do_blk_req %p: cmd %p, sec %lx, (%u/%u) buffer:%p [%s]\n"

L_.str.2:                               ## @.str.2
	.asciz	"write"

L_.str.3:                               ## @.str.3
	.asciz	"read"

	.no_dead_strip	_do_blkif_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_blkif_request
_do_blkif_request:                      ; @do_blkif_request
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	mov	x0, x19
	bl	_blk_peek_request
	cbz	x0, LBB0_11
; %bb.1:
	mov	x22, x0
	mov	w26, #0
Lloh2:
	adrp	x27, _REQ_TYPE_FS@GOTPAGE
Lloh3:
	ldr	x27, [x27, _REQ_TYPE_FS@GOTPAGEOFF]
Lloh4:
	adrp	x28, _EIO@GOTPAGE
Lloh5:
	ldr	x28, [x28, _EIO@GOTPAGEOFF]
Lloh6:
	adrp	x23, l_.str.1@PAGE
Lloh7:
	add	x23, x23, l_.str.1@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #16]
	ldr	x20, [x8]
	mov	x0, x20
	bl	_RING_FULL
	cbnz	x0, LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x22
	bl	_blk_start_request
	ldr	x8, [x22]
	ldr	x9, [x27]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x28]
	neg	w1, w8
	mov	x0, x22
	bl	___blk_end_request_all
	mov	x0, x19
	bl	_blk_peek_request
	mov	x22, x0
	cbnz	x0, LBB0_2
	b	LBB0_9
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x22, #12]
	str	x8, [sp, #72]                   ; 8-byte Folded Spill
	mov	x0, x22
	bl	_blk_rq_pos
	str	x0, [sp, #64]                   ; 8-byte Folded Spill
	mov	x0, x22
	bl	_blk_rq_cur_sectors
	mov	x24, x0
	mov	x0, x22
	bl	_blk_rq_sectors
	mov	x25, x0
	ldr	w21, [x22, #8]
	mov	x0, x22
	bl	_rq_data_dir
	cmp	x0, #0
Lloh8:
	adrp	x8, l_.str.2@PAGE
Lloh9:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh10:
	adrp	x9, l_.str.3@PAGE
Lloh11:
	add	x9, x9, l_.str.3@PAGEOFF
	csel	x8, x9, x8, eq
	stp	x21, x8, [sp, #40]
	stp	x24, x25, [sp, #24]
	ldr	x9, [sp, #64]                   ; 8-byte Folded Reload
	ldr	x8, [sp, #72]                   ; 8-byte Folded Reload
	stp	x8, x9, [sp, #8]
	str	x22, [sp]
	mov	x0, x23
	bl	_pr_debug
	mov	x0, x22
	bl	_blkif_queue_request
	cbnz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w26, w26, #1
	mov	x0, x19
	bl	_blk_peek_request
	mov	x22, x0
	cbnz	x0, LBB0_2
	b	LBB0_10
LBB0_7:
	mov	x0, x19
	mov	x1, x22
	bl	_blk_requeue_request
LBB0_8:
	mov	x0, x19
	bl	_blk_stop_queue
LBB0_9:
	cbz	w26, LBB0_11
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	b	_flush_requests
LBB0_11:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Entered do_blkif_request\n"

	.comm	_REQ_TYPE_FS,8,3                ; @REQ_TYPE_FS
	.comm	_EIO,4,2                        ; @EIO
l_.str.1:                               ; @.str.1
	.asciz	"do_blk_req %p: cmd %p, sec %lx, (%u/%u) buffer:%p [%s]\n"

l_.str.2:                               ; @.str.2
	.asciz	"write"

l_.str.3:                               ; @.str.3
	.asciz	"read"

	.no_dead_strip	_do_blkif_request
.subsections_via_symbols
