	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_req
_do_req:                                ## @do_req
	.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	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	(%rsi), %edi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mempool_alloc
	movq	%rax, %r13
	xorl	%eax, %eax
	testq	%r13, %r13
	je	LBB0_24
## %bb.1:
	movq	%rbx, 24(%r13)
	movq	_REQ_FLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_5
## %bb.2:
	movq	_VIRTIO_BLK_T_FLUSH@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movl	%eax, (%r13)
	movq	$0, 16(%r13)
	movq	%rbx, %rdi
LBB0_4:
	callq	_req_get_ioprio
	movq	%rax, 8(%r13)
LBB0_12:
	movq	8(%r14), %rdi
	movq	%r13, %rsi
	movl	$24, %edx
	callq	_sg_set_buf
	movq	24(%r13), %rsi
	movl	$1, %ebx
	cmpl	$130, 4(%rsi)
	jne	LBB0_14
## %bb.13:
	movq	8(%r14), %rdi
	addq	$4, %rdi
	movq	24(%rsi), %rax
	movl	8(%rsi), %edx
	movq	%rax, %rsi
	callq	_sg_set_buf
	movq	24(%r13), %rsi
	movl	$2, %ebx
LBB0_14:
	leaq	(,%rbx,4), %rdx
	addq	8(%r14), %rdx
	movq	%r15, %rdi
	callq	_blk_rq_map_sg
	movq	24(%r13), %rcx
	cmpl	$130, 4(%rcx)
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	leaq	(%rax,%rbx), %r15
	jne	LBB0_15
## %bb.16:
	leaq	(,%r15,4), %rdi
	addq	8(%r14), %rdi
	movq	16(%rcx), %rsi
	movq	_SCSI_SENSE_BUFFERSIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %r12
	callq	_sg_set_buf
	movq	8(%r14), %rax
	leaq	(%rax,%r15,4), %rdi
	addq	$4, %rdi
	leaq	56(%r13), %rsi
	movl	$24, %edx
	callq	_sg_set_buf
	movl	$2, %edi
	jmp	LBB0_17
LBB0_15:
	xorl	%edi, %edi
	movq	%rax, %r12
LBB0_17:
	movq	%rdi, %rbx
	orq	$1, %rbx
	addq	%r15, %rdi
	shlq	$2, %rdi
	addq	8(%r14), %rdi
	movq	%r13, %rsi
	addq	$32, %rsi
	movl	$24, %edx
	callq	_sg_set_buf
	testq	%r12, %r12
	je	LBB0_21
## %bb.18:
	movq	24(%r13), %rdi
	callq	_rq_data_dir
	movq	_WRITE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
## %bb.19:
	movq	_VIRTIO_BLK_T_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r13)
	jmp	LBB0_22
LBB0_5:
	movl	4(%rbx), %eax
	cmpl	$128, %eax
	je	LBB0_10
## %bb.6:
	cmpl	$130, %eax
	je	LBB0_9
## %bb.7:
	cmpl	$129, %eax
	jne	LBB0_11
## %bb.8:
	movl	$0, (%r13)
	movq	%rbx, %rdi
	callq	_blk_rq_pos
	movq	%rax, 16(%r13)
	movq	24(%r13), %rdi
	jmp	LBB0_4
LBB0_20:
	movq	_VIRTIO_BLK_T_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r13)
	addq	%r12, %rbx
LBB0_21:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
LBB0_22:
	movl	16(%r14), %edi
	movq	8(%r14), %rsi
	movq	%r15, %rdx
	movq	%rbx, %rcx
	movq	%r13, %r8
	callq	_virtqueue_add_buf
	movq	%rax, %rcx
	movl	$1, %eax
	testq	%rcx, %rcx
	jns	LBB0_24
## %bb.23:
	movl	(%r14), %esi
	movq	%r13, %rdi
	callq	_mempool_free
	xorl	%eax, %eax
LBB0_24:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	_VIRTIO_BLK_T_GET_ID@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_9:
	movq	_VIRTIO_BLK_T_SCSI_CMD@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_11:
	xorl	%eax, %eax
	callq	_BUG
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_REQ_FLUSH,4,2                  ## @REQ_FLUSH
	.comm	_VIRTIO_BLK_T_FLUSH,4,2         ## @VIRTIO_BLK_T_FLUSH
	.comm	_VIRTIO_BLK_T_SCSI_CMD,4,2      ## @VIRTIO_BLK_T_SCSI_CMD
	.comm	_VIRTIO_BLK_T_GET_ID,4,2        ## @VIRTIO_BLK_T_GET_ID
	.comm	_SCSI_SENSE_BUFFERSIZE,4,2      ## @SCSI_SENSE_BUFFERSIZE
	.comm	_WRITE,8,3                      ## @WRITE
	.comm	_VIRTIO_BLK_T_OUT,4,2           ## @VIRTIO_BLK_T_OUT
	.comm	_VIRTIO_BLK_T_IN,4,2            ## @VIRTIO_BLK_T_IN
	.no_dead_strip	_do_req
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_req
_do_req:                                ; @do_req
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x22, x2
	mov	x19, x1
	mov	x21, x0
	ldr	w0, [x1]
Lloh0:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_mempool_alloc
	cbz	x0, LBB0_23
; %bb.1:
	mov	x20, x0
	str	x22, [x0, #24]
	ldr	w8, [x22]
Lloh3:
	adrp	x9, _REQ_FLUSH@GOTPAGE
Lloh4:
	ldr	x9, [x9, _REQ_FLUSH@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.2:
Lloh6:
	adrp	x8, _VIRTIO_BLK_T_FLUSH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VIRTIO_BLK_T_FLUSH@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	str	w8, [x20]
	str	xzr, [x20, #16]
	mov	x0, x22
LBB0_4:
	bl	_req_get_ioprio
	str	x0, [x20, #8]
LBB0_5:
	ldr	x0, [x19, #8]
	mov	x1, x20
	mov	w2, #24
	bl	_sg_set_buf
	ldr	x1, [x20, #24]
	ldr	w8, [x1, #4]
	cmp	w8, #130
	b.ne	LBB0_7
; %bb.6:
	ldr	x8, [x19, #8]
	add	x0, x8, #4
	ldr	x8, [x1, #24]
	ldr	w2, [x1, #8]
	mov	x1, x8
	bl	_sg_set_buf
	ldr	x1, [x20, #24]
	mov	w24, #2
	b	LBB0_8
LBB0_7:
	mov	w24, #1
LBB0_8:
	ldr	x8, [x19, #8]
	add	x2, x8, x24, lsl #2
	mov	x0, x21
	bl	_blk_rq_map_sg
	mov	x22, x0
	ldr	x8, [x20, #24]
	ldr	w9, [x8, #4]
	cmp	w9, #130
	b.ne	LBB0_10
; %bb.9:
	ldr	x9, [x19, #8]
	add	x21, x22, x24
	lsl	x23, x21, #2
	add	x0, x9, x23
	ldr	x1, [x8, #16]
Lloh8:
	adrp	x8, _SCSI_SENSE_BUFFERSIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SCSI_SENSE_BUFFERSIZE@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	bl	_sg_set_buf
	ldr	x8, [x19, #8]
	add	x8, x23, x8
	add	x0, x8, #4
	add	x1, x20, #56
	mov	w2, #24
	bl	_sg_set_buf
	mov	w8, #2
	b	LBB0_11
LBB0_10:
	mov	x8, #0
	add	x21, x22, x24
LBB0_11:
	ldr	x9, [x19, #8]
	orr	x23, x8, #0x1
	add	x8, x8, x21
	add	x0, x9, x8, lsl #2
	add	x1, x20, #32
	mov	w2, #24
	bl	_sg_set_buf
	cbz	x22, LBB0_19
; %bb.12:
	ldr	x0, [x20, #24]
	bl	_rq_data_dir
Lloh11:
	adrp	x8, _WRITE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _WRITE@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_18
; %bb.13:
Lloh14:
	adrp	x8, _VIRTIO_BLK_T_OUT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _VIRTIO_BLK_T_OUT@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
	b	LBB0_20
LBB0_14:
	ldr	w8, [x22, #4]
	cmp	w8, #128
	b.eq	LBB0_24
; %bb.15:
	cmp	w8, #130
	b.eq	LBB0_25
; %bb.16:
	cmp	w8, #129
	b.ne	LBB0_26
; %bb.17:
	str	wzr, [x20]
	mov	x0, x22
	bl	_blk_rq_pos
	str	x0, [x20, #16]
	ldr	x0, [x20, #24]
	b	LBB0_4
LBB0_18:
Lloh17:
	adrp	x8, _VIRTIO_BLK_T_IN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _VIRTIO_BLK_T_IN@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
	add	x23, x23, x22
LBB0_19:
	mov	x21, x24
LBB0_20:
	ldr	w0, [x19, #16]
	ldr	x1, [x19, #8]
	mov	x2, x21
	mov	x3, x23
	mov	x4, x20
	bl	_virtqueue_add_buf
	tbnz	x0, #63, LBB0_22
; %bb.21:
	mov	w0, #1
	b	LBB0_23
LBB0_22:
	ldr	w1, [x19]
	mov	x0, x20
	bl	_mempool_free
	mov	w0, #0
LBB0_23:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_24:
Lloh20:
	adrp	x8, _VIRTIO_BLK_T_GET_ID@GOTPAGE
Lloh21:
	ldr	x8, [x8, _VIRTIO_BLK_T_GET_ID@GOTPAGEOFF]
	b	LBB0_3
LBB0_25:
Lloh22:
	adrp	x8, _VIRTIO_BLK_T_SCSI_CMD@GOTPAGE
Lloh23:
	ldr	x8, [x8, _VIRTIO_BLK_T_SCSI_CMD@GOTPAGEOFF]
	b	LBB0_3
LBB0_26:
	bl	_BUG
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_REQ_FLUSH,4,2                  ; @REQ_FLUSH
	.comm	_VIRTIO_BLK_T_FLUSH,4,2         ; @VIRTIO_BLK_T_FLUSH
	.comm	_VIRTIO_BLK_T_SCSI_CMD,4,2      ; @VIRTIO_BLK_T_SCSI_CMD
	.comm	_VIRTIO_BLK_T_GET_ID,4,2        ; @VIRTIO_BLK_T_GET_ID
	.comm	_SCSI_SENSE_BUFFERSIZE,4,2      ; @SCSI_SENSE_BUFFERSIZE
	.comm	_WRITE,8,3                      ; @WRITE
	.comm	_VIRTIO_BLK_T_OUT,4,2           ; @VIRTIO_BLK_T_OUT
	.comm	_VIRTIO_BLK_T_IN,4,2            ; @VIRTIO_BLK_T_IN
	.no_dead_strip	_do_req
.subsections_via_symbols
