	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function h_mspro_block_transfer_data
_h_mspro_block_transfer_data:           ## @h_mspro_block_transfer_data
	.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	%rsi, %r15
	movq	%rdi, %rbx
	callq	_memstick_get_drvdata
	movl	$0, -48(%rbp)
	movq	(%r15), %rdi
	movq	24(%rdi), %rsi
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mspro_block_complete_req       ## TAILCALL
LBB0_3:
	movq	%rax, %r14
	movl	(%rdi), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_22
## %bb.4:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_20:
	incl	8(%r14)
	movq	_MEMSTICK_CAP_AUTO_GET_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r14)
	je	LBB0_18
## %bb.21:
	movb	8(%rdi), %r12b
	jmp	LBB0_9
LBB0_22:
	xorl	%eax, %eax
	callq	_BUG
	jmp	LBB0_23
LBB0_5:
	movl	$130, %esi
	movq	%r14, %rdx
	movl	$1, %ecx
	callq	_memstick_init_req
	jmp	LBB0_6
LBB0_7:
	movb	8(%rdi), %r12b
	movl	$132, %esi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_memstick_init_req
	movq	_MEMSTICK_CAP_AUTO_GET_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r14)
	jne	LBB0_9
	jmp	LBB0_23
LBB0_8:
	movq	16(%rdi), %rax
	movb	(%rax), %r12b
LBB0_9:
	movq	_MEMSTICK_INT_CMDNAK@GOTPCREL(%rip), %rax
	movq	_MEMSTICK_INT_ERR@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	orb	(%rax), %cl
	testb	%r12b, %cl
	je	LBB0_11
## %bb.10:
	movq	_MSPRO_CMD_STOP@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, -41(%rbp)
	movq	(%r15), %rdi
	leaq	-41(%rbp), %rdx
	movl	$130, %esi
	movl	$1, %ecx
	callq	_memstick_init_req
	movq	_h_mspro_block_default@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	jmp	LBB0_23
LBB0_11:
	movl	8(%r14), %ecx
	movq	48(%r14), %r8
	movq	16(%r14), %rsi
	movq	%rsi, %rax
	shlq	$4, %rax
	movl	(%r8,%rax), %eax
	movl	24(%r14), %r9d
	cltd
	idivl	%r9d
	cmpl	%eax, %ecx
	jne	LBB0_16
## %bb.12:
	movl	$0, 8(%r14)
	incq	%rsi
	movq	%rsi, 16(%r14)
	xorl	%ecx, %ecx
	cmpq	32(%r14), %rsi
	jne	LBB0_16
## %bb.13:
	movq	_MEMSTICK_INT_CED@GOTPCREL(%rip), %rax
	testb	%r12b, (%rax)
	je	LBB0_15
## %bb.14:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	jmp	LBB0_2
LBB0_16:
	movq	_MEMSTICK_INT_BREQ@GOTPCREL(%rip), %rax
	testb	%r12b, (%rax)
	je	LBB0_17
## %bb.19:
	shlq	$4, %rsi
	leaq	(%r8,%rsi), %rdi
	imull	%r9d, %ecx
	movslq	%ecx, %rbx
	addq	8(%r8,%rsi), %rbx
	callq	_sg_page
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movq	%rbx, %rsi
	shrq	%cl, %rsi
	movl	%eax, %edi
	callq	_nth_page
	movl	%eax, %r12d
	movslq	24(%r14), %r13
	movq	%rbx, %rdi
	callq	_offset_in_page
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movq	%r13, %rdx
	movl	%eax, %ecx
	callq	_sg_set_page
	movq	(%r15), %rdi
	movl	40(%r14), %eax
	movq	_READ@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpl	(%rcx), %eax
	sete	%dl
	leal	(%rdx,%rdx), %esi
	addl	$129, %esi
	movq	%rbx, %rdx
	callq	_memstick_init_req_sg
LBB0_6:
	movq	(%r15), %rax
	movl	$1, 4(%rax)
	jmp	LBB0_23
LBB0_15:
	movq	_h_mspro_block_wait_for_ced@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
LBB0_17:
	movq	(%r15), %rdi
LBB0_18:
	movl	$132, %esi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_memstick_init_req
LBB0_23:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_20
	.long	L0_0_set_7
	.long	L0_0_set_20
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_MEMSTICK_CAP_AUTO_GET_INT,4,2  ## @MEMSTICK_CAP_AUTO_GET_INT
	.comm	_MEMSTICK_INT_CMDNAK,1,0        ## @MEMSTICK_INT_CMDNAK
	.comm	_MEMSTICK_INT_ERR,1,0           ## @MEMSTICK_INT_ERR
	.comm	_MSPRO_CMD_STOP,1,0             ## @MSPRO_CMD_STOP
	.comm	_h_mspro_block_default,4,2      ## @h_mspro_block_default
	.comm	_MEMSTICK_INT_CED,1,0           ## @MEMSTICK_INT_CED
	.comm	_h_mspro_block_wait_for_ced,4,2 ## @h_mspro_block_wait_for_ced
	.comm	_MEMSTICK_INT_BREQ,1,0          ## @MEMSTICK_INT_BREQ
	.comm	_PAGE_SHIFT,8,3                 ## @PAGE_SHIFT
	.comm	_READ,4,2                       ## @READ
	.no_dead_strip	_h_mspro_block_transfer_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function h_mspro_block_transfer_data
_h_mspro_block_transfer_data:           ; @h_mspro_block_transfer_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x1
	mov	x21, x0
	bl	_memstick_get_drvdata
	mov	x20, x0
	str	wzr, [sp, #8]
	ldr	x0, [x19]
	ldr	x1, [x0, #24]
	cbz	x1, LBB0_3
; %bb.1:
	mov	x0, x21
LBB0_2:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_mspro_block_complete_req
LBB0_3:
	ldr	w8, [x0]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_7
; %bb.4:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_5
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_5:
	ldp	w9, w8, [x20, #4]
	add	w8, w8, #1
	str	w8, [x20, #8]
Lloh2:
	adrp	x8, _MEMSTICK_CAP_AUTO_GET_INT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MEMSTICK_CAP_AUTO_GET_INT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_22
; %bb.6:
	ldrb	w22, [x0, #8]
	b	LBB0_11
LBB0_7:
	bl	_BUG
	b	LBB0_23
LBB0_8:
	mov	w21, #1
	mov	w1, #130
	mov	x2, x20
	mov	w3, #1
	bl	_memstick_init_req
	ldr	x8, [x19]
	str	w21, [x8, #4]
	b	LBB0_23
LBB0_9:
	ldrb	w22, [x0, #8]
	mov	w1, #132
	mov	x2, #0
	mov	w3, #1
	bl	_memstick_init_req
	ldr	w8, [x20, #4]
Lloh5:
	adrp	x9, _MEMSTICK_CAP_AUTO_GET_INT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MEMSTICK_CAP_AUTO_GET_INT@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_11
	b	LBB0_23
LBB0_10:
	ldr	x8, [x0, #16]
	ldrb	w22, [x8]
LBB0_11:
Lloh8:
	adrp	x8, _MEMSTICK_INT_CMDNAK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MEMSTICK_INT_CMDNAK@GOTPAGEOFF]
	ldrb	w8, [x8]
Lloh10:
	adrp	x9, _MEMSTICK_INT_ERR@GOTPAGE
Lloh11:
	ldr	x9, [x9, _MEMSTICK_INT_ERR@GOTPAGEOFF]
	ldrb	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w22
	b.eq	LBB0_13
; %bb.12:
Lloh12:
	adrp	x8, _MSPRO_CMD_STOP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MSPRO_CMD_STOP@GOTPAGEOFF]
	ldrb	w8, [x8]
	strb	w8, [sp, #15]
	ldr	x0, [x19]
	add	x2, sp, #15
	mov	w1, #130
	mov	w3, #1
	bl	_memstick_init_req
Lloh14:
	adrp	x8, _h_mspro_block_default@GOTPAGE
Lloh15:
	ldr	x8, [x8, _h_mspro_block_default@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x21]
	b	LBB0_23
LBB0_13:
	ldr	w11, [x20, #8]
	ldr	x8, [x20, #48]
	ldr	x9, [x20, #16]
	lsl	x10, x9, #4
	ldr	w12, [x8, x10]
	ldr	w10, [x20, #24]
	sdiv	w12, w12, w10
	cmp	w11, w12
	b.ne	LBB0_18
; %bb.14:
	str	wzr, [x20, #8]
	add	x9, x9, #1
	str	x9, [x20, #16]
	ldr	x11, [x20, #32]
	cmp	x9, x11
	b.ne	LBB0_17
; %bb.15:
Lloh17:
	adrp	x8, _MEMSTICK_INT_CED@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MEMSTICK_INT_CED@GOTPAGEOFF]
	ldrb	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_20
; %bb.16:
	mov	x0, x21
	mov	x1, #0
	b	LBB0_2
LBB0_17:
	mov	w11, #0
LBB0_18:
Lloh19:
	adrp	x12, _MEMSTICK_INT_BREQ@GOTPAGE
Lloh20:
	ldr	x12, [x12, _MEMSTICK_INT_BREQ@GOTPAGEOFF]
	ldrb	w12, [x12]
	tst	w12, w22
	b.eq	LBB0_21
; %bb.19:
	add	x0, x8, x9, lsl #4
	ldr	x8, [x0, #8]
	mul	w9, w11, w10
	add	x21, x8, w9, sxtw
	bl	_sg_page
Lloh21:
	adrp	x8, _PAGE_SHIFT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PAGE_SHIFT@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	lsr	x1, x21, x8
	bl	_nth_page
	mov	x22, x0
	ldrsw	x23, [x20, #24]
	mov	x0, x21
	bl	_offset_in_page
	mov	x3, x0
	add	x0, sp, #8
	mov	x1, x22
	mov	x2, x23
	bl	_sg_set_page
	ldr	x0, [x19]
Lloh24:
	adrp	x8, _READ@GOTPAGE
Lloh25:
	ldr	x8, [x8, _READ@GOTPAGEOFF]
	ldr	w9, [x20, #40]
Lloh26:
	ldr	w8, [x8]
	mov	w10, #129
	mov	w11, #131
	cmp	w9, w8
	csel	w1, w11, w10, eq
	add	x2, sp, #8
	bl	_memstick_init_req_sg
	ldr	x8, [x19]
	mov	w9, #1
	str	w9, [x8, #4]
	b	LBB0_23
LBB0_20:
Lloh27:
	adrp	x8, _h_mspro_block_wait_for_ced@GOTPAGE
Lloh28:
	ldr	x8, [x8, _h_mspro_block_wait_for_ced@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	str	w8, [x21]
LBB0_21:
	ldr	x0, [x19]
LBB0_22:
	mov	w1, #132
	mov	x2, #0
	mov	w3, #1
	bl	_memstick_init_req
LBB0_23:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_9-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_10-LBB0_5)>>2
                                        ; -- End function
	.comm	_MEMSTICK_CAP_AUTO_GET_INT,4,2  ; @MEMSTICK_CAP_AUTO_GET_INT
	.comm	_MEMSTICK_INT_CMDNAK,1,0        ; @MEMSTICK_INT_CMDNAK
	.comm	_MEMSTICK_INT_ERR,1,0           ; @MEMSTICK_INT_ERR
	.comm	_MSPRO_CMD_STOP,1,0             ; @MSPRO_CMD_STOP
	.comm	_h_mspro_block_default,4,2      ; @h_mspro_block_default
	.comm	_MEMSTICK_INT_CED,1,0           ; @MEMSTICK_INT_CED
	.comm	_h_mspro_block_wait_for_ced,4,2 ; @h_mspro_block_wait_for_ced
	.comm	_MEMSTICK_INT_BREQ,1,0          ; @MEMSTICK_INT_BREQ
	.comm	_PAGE_SHIFT,8,3                 ; @PAGE_SHIFT
	.comm	_READ,4,2                       ; @READ
	.no_dead_strip	_h_mspro_block_transfer_data
.subsections_via_symbols
