	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mspro_block_complete_req
_mspro_block_complete_req:              ## @mspro_block_complete_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r13d
	movq	%rdi, %rbx
	callq	_memstick_get_drvdata
	movq	%rax, %r12
	leaq	20(%rax), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	leaq	8(%rbx), %r14
	xorl	%edx, %edx
	cmpq	$0, 24(%r12)
	setne	%dl
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%r13d, %ecx
	callq	_dev_dbg
	movq	24(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.1:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	movl	(%rax), %eax
	addl	%r13d, %eax
	cmovel	%r14d, %r13d
	testl	%r13d, %r13d
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	jne	LBB0_3
## %bb.2:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movq	_MSPRO_CMD_STOP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_22
LBB0_3:
	movq	(%r12), %rax
	movq	_READ@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.4:
	movl	8(%r12), %r8d
	testl	%r8d, %r8d
	jle	LBB0_11
## %bb.5:
	movq	32(%r12), %r9
	movl	12(%r12), %edi
	movl	16(%r12), %r10d
	xorl	%r14d, %r14d
	subl	$1, %r10d
	cmovbl	%r14d, %r10d
	cmpl	$1, %r8d
	jne	LBB0_7
## %bb.6:
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_18:
	testl	%r13d, %r13d
	jne	LBB0_20
## %bb.19:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_20
LBB0_22:
	callq	_blk_rq_bytes
	movl	%eax, %r14d
	leaq	L_.str.1(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_dev_dbg
	jmp	LBB0_14
LBB0_7:
	movl	%r8d, %r11d
	andl	$-2, %r11d
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r9,%rbx,4), %eax
	movl	4(%r9,%rbx,4), %ecx
	xorl	%edx, %edx
	divl	%edi
	movl	%eax, %esi
	addl	%r14d, %esi
	addl	%r10d, %esi
	imull	%edi, %esi
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%edi
	movl	%eax, %r14d
	addl	%esi, %r14d
	addl	%r10d, %r14d
	imull	%edi, %r14d
	addq	$2, %rbx
	cmpq	%rbx, %r11
	jne	LBB0_8
LBB0_9:
	testb	$1, %r8b
	je	LBB0_11
## %bb.10:
	movl	(%r9,%rbx,4), %eax
	xorl	%edx, %edx
	divl	%edi
	addl	%r14d, %eax
	addl	%r10d, %eax
	imull	%edi, %eax
	movl	%eax, %r14d
LBB0_11:
	leaq	L_.str.1(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %edx
	movl	%r13d, %ecx
	callq	_dev_dbg
	testl	%r13d, %r13d
	je	LBB0_14
## %bb.12:
	testl	%r14d, %r14d
	jne	LBB0_14
## %bb.13:
	movq	24(%r12), %rdi
	callq	_blk_rq_cur_bytes
	movl	%eax, %r14d
LBB0_14:
	movq	24(%r12), %rbx
	movl	%r13d, %edi
	callq	_errno_to_blk_status
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	%r14d, %edx
	callq	_blk_update_request
	testl	%eax, %eax
	je	LBB0_17
## %bb.15:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_mspro_block_issue_req
	movl	%eax, %r13d
	testl	%eax, %eax
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_20
## %bb.16:
	xorl	%r13d, %r13d
	jmp	LBB0_21
LBB0_17:
	movq	24(%r12), %rbx
	movl	%r13d, %edi
	callq	_errno_to_blk_status
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	___blk_mq_end_request
	movq	$0, 24(%r12)
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_20:
	movq	_h_mspro_block_default_bad@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	%rbx, %rdi
	callq	_complete_all
LBB0_21:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movl	%r13d, %eax
	addq	$24, %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	"complete %d, %d\n"

	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_MSPRO_CMD_STOP,8,3             ## @MSPRO_CMD_STOP
	.comm	_READ,8,3                       ## @READ
L_.str.1:                               ## @.str.1
	.asciz	"transferred %x (%d)\n"

	.comm	_h_mspro_block_default_bad,4,2  ## @h_mspro_block_default_bad
	.no_dead_strip	_mspro_block_complete_req
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mspro_block_complete_req
_mspro_block_complete_req:              ; @mspro_block_complete_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	x20, x1
	mov	x21, x0
	bl	_memstick_get_drvdata
	mov	x22, x0
	add	x19, x0, #20
	mov	x0, x19
	bl	_spin_lock_irqsave
	add	x23, x21, #8
	ldr	x8, [x22, #24]
	cmp	x8, #0
	cset	w2, ne
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	mov	x3, x20
	bl	_dev_dbg
	ldr	x0, [x22, #24]
	cbz	x0, LBB0_7
; %bb.1:
Lloh2:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmn	w8, w20
	csel	w20, wzr, w20, eq
	cbnz	w20, LBB0_3
; %bb.2:
	ldr	x8, [x21, #16]
Lloh5:
	adrp	x9, _MSPRO_CMD_STOP@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MSPRO_CMD_STOP@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
LBB0_3:
	ldr	x8, [x22]
Lloh8:
	adrp	x9, _READ@GOTPAGE
Lloh9:
	ldr	x9, [x9, _READ@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.4:
	ldr	w8, [x22, #8]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.5:
	mov	w24, #0
	ldr	x9, [x22, #32]
	ldp	w10, w11, [x22, #12]
	sub	w12, w11, #1
	cmp	w11, #0
	csel	w11, wzr, w12, eq
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x9], #4
	udiv	w12, w12, w10
	add	w12, w12, w24
	add	w12, w12, w11
	mul	w24, w12, w10
	subs	x8, x8, #1
	b.ne	LBB0_6
	b	LBB0_10
LBB0_7:
	cbnz	w20, LBB0_17
; %bb.8:
Lloh11:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_17
LBB0_9:
	mov	w24, #0
LBB0_10:
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x23
	mov	x2, x24
	mov	x3, x20
	bl	_dev_dbg
	cbz	w20, LBB0_14
; %bb.11:
	cbnz	w24, LBB0_14
; %bb.12:
	ldr	x0, [x22, #24]
	bl	_blk_rq_cur_bytes
	mov	x24, x0
	b	LBB0_14
LBB0_13:
	bl	_blk_rq_bytes
	mov	x24, x0
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x23
	mov	x2, x24
	mov	w3, #0
	bl	_dev_dbg
LBB0_14:
	ldr	x23, [x22, #24]
	mov	x0, x20
	bl	_errno_to_blk_status
	mov	x1, x0
	mov	x0, x23
	mov	x2, x24
	bl	_blk_update_request
	cbz	w0, LBB0_16
; %bb.15:
	mov	x0, x21
	bl	_mspro_block_issue_req
	mov	x20, x0
	cbnz	w0, LBB0_17
	b	LBB0_18
LBB0_16:
	ldr	x23, [x22, #24]
	mov	x0, x20
	bl	_errno_to_blk_status
	mov	x1, x0
	mov	x0, x23
	bl	___blk_mq_end_request
	str	xzr, [x22, #24]
LBB0_17:
Lloh18:
	adrp	x8, _h_mspro_block_default_bad@GOTPAGE
Lloh19:
	ldr	x8, [x8, _h_mspro_block_default_bad@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x21, #4]
	mov	x0, x21
	bl	_complete_all
LBB0_18:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x20
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"complete %d, %d\n"

	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_MSPRO_CMD_STOP,8,3             ; @MSPRO_CMD_STOP
	.comm	_READ,8,3                       ; @READ
l_.str.1:                               ; @.str.1
	.asciz	"transferred %x (%d)\n"

	.comm	_h_mspro_block_default_bad,4,2  ; @h_mspro_block_default_bad
	.no_dead_strip	_mspro_block_complete_req
.subsections_via_symbols
