	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usb_dmac_get_current_residue
_usb_dmac_get_current_residue:          ## @usb_dmac_get_current_residue
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rsi), %r8
	movq	8(%rsi), %rax
	movslq	%edx, %rcx
	movl	4(%rax,%rcx,8), %ebx
	movq	_DMA_DEV_TO_MEM@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %r8
	jne	LBB0_1
## %bb.2:
	movq	_USB_DMADAR@GOTPCREL(%rip), %rdx
	jmp	LBB0_3
LBB0_1:
	movq	_USB_DMASAR@GOTPCREL(%rip), %rdx
LBB0_3:
	movl	(%rdx), %esi
	addl	(%rax,%rcx,8), %ebx
	callq	_usb_dmac_chan_read
	subl	%eax, %ebx
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_DEV_TO_MEM,8,3             ## @DMA_DEV_TO_MEM
	.comm	_USB_DMADAR,4,2                 ## @USB_DMADAR
	.comm	_USB_DMASAR,4,2                 ## @USB_DMASAR
	.no_dead_strip	_usb_dmac_get_current_residue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usb_dmac_get_current_residue
_usb_dmac_get_current_residue:          ; @usb_dmac_get_current_residue
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldp	x9, x8, [x1]
	add	x8, x8, w2, sxtw #3
	ldp	w19, w20, [x8]
Lloh0:
	adrp	x8, _DMA_DEV_TO_MEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMA_DEV_TO_MEM@GOTPAGEOFF]
Lloh2:
	adrp	x10, _USB_DMADAR@GOTPAGE
Lloh3:
	ldr	x10, [x10, _USB_DMADAR@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x11, _USB_DMASAR@GOTPAGE
Lloh6:
	ldr	x11, [x11, _USB_DMASAR@GOTPAGEOFF]
	cmp	x9, x8
	csel	x8, x10, x11, eq
	ldr	w1, [x8]
	bl	_usb_dmac_chan_read
	add	w8, w20, w19
	sub	w0, w8, w0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_DEV_TO_MEM,8,3             ; @DMA_DEV_TO_MEM
	.comm	_USB_DMADAR,4,2                 ; @USB_DMADAR
	.comm	_USB_DMASAR,4,2                 ; @USB_DMASAR
	.no_dead_strip	_usb_dmac_get_current_residue
.subsections_via_symbols
