	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function h_mspro_block_setup_cmd
_h_mspro_block_setup_cmd:               ## @h_mspro_block_setup_cmd
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_memstick_get_drvdata
	movq	%rax, %r12
	movl	$0, -44(%rbp)
	movq	(%rax), %rcx
	movq	%rbx, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rax
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_3
LBB0_1:
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_3:
	movl	%eax, %edi
	callq	_cpu_to_be16
	movl	%eax, -40(%rbp)
	movl	12(%r12), %eax
	movl	%eax, -36(%rbp)
	movq	(%r12), %rsi
	movq	%r15, %rdi
	callq	_do_div
	movl	%r15d, %edi
	callq	_cpu_to_be32
	movl	%eax, -48(%rbp)
	movq	_h_mspro_block_req_init@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	_h_mspro_block_transfer_data@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	movq	_MS_TPC_WRITE_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movl	$16, %ecx
	callq	_memstick_init_req
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_h_mspro_block_req_init,4,2     ## @h_mspro_block_req_init
	.comm	_h_mspro_block_transfer_data,4,2 ## @h_mspro_block_transfer_data
	.comm	_MS_TPC_WRITE_REG,4,2           ## @MS_TPC_WRITE_REG
	.no_dead_strip	_h_mspro_block_setup_cmd
.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_setup_cmd
_h_mspro_block_setup_cmd:               ; @h_mspro_block_setup_cmd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_memstick_get_drvdata
	mov	x22, x0
	str	wzr, [sp, #4]
	ldr	x8, [x0]
	udiv	x0, x19, x8
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_cpu_to_be16
	ldr	w8, [x22, #12]
	stp	w0, w8, [sp, #8]
	ldr	x1, [x22]
	mov	x0, x20
	bl	_do_div
	mov	x0, x20
	bl	_cpu_to_be32
	str	w0, [sp]
Lloh0:
	adrp	x8, _h_mspro_block_req_init@GOTPAGE
Lloh1:
	ldr	x8, [x8, _h_mspro_block_req_init@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _h_mspro_block_transfer_data@GOTPAGE
Lloh4:
	ldr	x9, [x9, _h_mspro_block_transfer_data@GOTPAGEOFF]
	str	w8, [x21, #4]
Lloh5:
	ldr	w8, [x9]
	str	w8, [x22, #8]
Lloh6:
	adrp	x8, _MS_TPC_WRITE_REG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MS_TPC_WRITE_REG@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x2, sp
	mov	x0, x21
	mov	w3, #16
	bl	_memstick_init_req
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_h_mspro_block_req_init,4,2     ; @h_mspro_block_req_init
	.comm	_h_mspro_block_transfer_data,4,2 ; @h_mspro_block_transfer_data
	.comm	_MS_TPC_WRITE_REG,4,2           ; @MS_TPC_WRITE_REG
	.no_dead_strip	_h_mspro_block_setup_cmd
.subsections_via_symbols
