	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function if_usb_host_to_card
_if_usb_host_to_card:                   ## @if_usb_host_to_card
	.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	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	(%rdi), %rbx
	movq	8(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdx
	callq	_lbtf_deb_usbd
	movq	8(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdx
	callq	_lbtf_deb_usbd
	movq	_MVMS_CMD@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	cmpq	%r13, (%rax)
	setne	%r12b
	jne	LBB0_1
## %bb.2:
	movq	_CMD_TYPE_REQUEST@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_CMD_TYPE_DATA@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	(%rbx), %rdi
	movl	%eax, (%rdi)
	movq	_MESSAGE_HEADER_LEN@GOTPCREL(%rip), %r13
	addq	(%r13), %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_memcpy
	movq	(%rbx), %rsi
	addq	(%r13), %r14
	movq	%rbx, %rdi
	movq	%r14, %rdx
	movl	%r12d, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_usb_tx_block                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"*** type = %u\n"

L_.str.1:                               ## @.str.1
	.asciz	"size after = %d\n"

	.comm	_MVMS_CMD,8,3                   ## @MVMS_CMD
	.comm	_CMD_TYPE_REQUEST,4,2           ## @CMD_TYPE_REQUEST
	.comm	_CMD_TYPE_DATA,4,2              ## @CMD_TYPE_DATA
	.comm	_MESSAGE_HEADER_LEN,8,3         ## @MESSAGE_HEADER_LEN
	.no_dead_strip	_if_usb_host_to_card
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function if_usb_host_to_card
_if_usb_host_to_card:                   ; @if_usb_host_to_card
	.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	x19, x3
	mov	x20, x2
	mov	x21, x1
	ldr	x22, [x0]
	ldr	x0, [x22, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_lbtf_deb_usbd
	ldr	x0, [x22, #8]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_lbtf_deb_usbd
Lloh4:
	adrp	x8, _MVMS_CMD@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MVMS_CMD@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
Lloh7:
	adrp	x9, _CMD_TYPE_REQUEST@GOTPAGE
Lloh8:
	ldr	x9, [x9, _CMD_TYPE_REQUEST@GOTPAGEOFF]
Lloh9:
	adrp	x10, _CMD_TYPE_DATA@GOTPAGE
Lloh10:
	ldr	x10, [x10, _CMD_TYPE_DATA@GOTPAGEOFF]
	cmp	x8, x21
	csel	x8, x9, x10, eq
	cset	w21, ne
	ldr	w0, [x8]
	bl	_cpu_to_le32
	ldr	x8, [x22]
	str	w0, [x8]
Lloh11:
	adrp	x23, _MESSAGE_HEADER_LEN@GOTPAGE
Lloh12:
	ldr	x23, [x23, _MESSAGE_HEADER_LEN@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x0, x9, x8
	mov	x1, x20
	mov	x2, x19
	bl	_memcpy
	ldr	x1, [x22]
	ldr	x8, [x23]
	add	x2, x8, x19
	mov	x0, x22
	mov	x3, x21
	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
	b	_usb_tx_block
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"*** type = %u\n"

l_.str.1:                               ; @.str.1
	.asciz	"size after = %d\n"

	.comm	_MVMS_CMD,8,3                   ; @MVMS_CMD
	.comm	_CMD_TYPE_REQUEST,4,2           ; @CMD_TYPE_REQUEST
	.comm	_CMD_TYPE_DATA,4,2              ; @CMD_TYPE_DATA
	.comm	_MESSAGE_HEADER_LEN,8,3         ; @MESSAGE_HEADER_LEN
	.no_dead_strip	_if_usb_host_to_card
.subsections_via_symbols
