	.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, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	8(%rdi), %r15
	movq	8(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdx
	callq	_lbs_deb_usbd
	movq	8(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdx
	callq	_lbs_deb_usbd
	movq	_MVMS_CMD@GOTPCREL(%rip), %rax
	cmpq	%r13, (%rax)
	movq	_CMD_TYPE_DATA@GOTPCREL(%rip), %rax
	cmoveq	_CMD_TYPE_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DNLD_DATA_SENT@GOTPCREL(%rip), %rbx
	cmoveq	_DNLD_CMD_SENT@GOTPCREL(%rip), %rbx
	callq	_cpu_to_le32
	movq	(%r15), %rcx
	movl	%eax, (%rcx)
	movl	(%rbx), %eax
	movl	%eax, (%r12)
	movq	_MESSAGE_HEADER_LEN@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	(%r15), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_memcpy
	movq	(%r15), %rsi
	addq	(%rbx), %r14
	movq	%r15, %rdi
	movq	%r14, %rdx
	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	_DNLD_CMD_SENT,4,2              ## @DNLD_CMD_SENT
	.comm	_CMD_TYPE_DATA,4,2              ## @CMD_TYPE_DATA
	.comm	_DNLD_DATA_SENT,4,2             ## @DNLD_DATA_SENT
	.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
	mov	x22, x0
	ldr	x23, [x0, #8]
	ldr	x0, [x23, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_lbs_deb_usbd
	ldr	x0, [x23, #8]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_lbs_deb_usbd
Lloh4:
	adrp	x8, _MVMS_CMD@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MVMS_CMD@GOTPAGEOFF]
Lloh6:
	adrp	x9, _CMD_TYPE_REQUEST@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CMD_TYPE_REQUEST@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x10, _CMD_TYPE_DATA@GOTPAGE
Lloh10:
	ldr	x10, [x10, _CMD_TYPE_DATA@GOTPAGEOFF]
	cmp	x8, x21
	csel	x8, x9, x10, eq
	ldr	w0, [x8]
Lloh11:
	adrp	x8, _DNLD_CMD_SENT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DNLD_CMD_SENT@GOTPAGEOFF]
Lloh13:
	adrp	x9, _DNLD_DATA_SENT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _DNLD_DATA_SENT@GOTPAGEOFF]
	csel	x21, x8, x9, eq
	bl	_cpu_to_le32
	ldr	x8, [x23]
	str	w0, [x8]
	ldr	w8, [x21]
	str	w8, [x22]
	ldr	x8, [x23]
Lloh15:
	adrp	x21, _MESSAGE_HEADER_LEN@GOTPAGE
Lloh16:
	ldr	x21, [x21, _MESSAGE_HEADER_LEN@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	mov	x1, x20
	mov	x2, x19
	bl	_memcpy
	ldr	x1, [x23]
	ldr	x8, [x21]
	add	x2, x8, x19
	mov	x0, x23
	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	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh8
	.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	_DNLD_CMD_SENT,4,2              ; @DNLD_CMD_SENT
	.comm	_CMD_TYPE_DATA,4,2              ; @CMD_TYPE_DATA
	.comm	_DNLD_DATA_SENT,4,2             ; @DNLD_DATA_SENT
	.comm	_MESSAGE_HEADER_LEN,8,3         ; @MESSAGE_HEADER_LEN
	.no_dead_strip	_if_usb_host_to_card
.subsections_via_symbols
