	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usb_dmac_chan_start_sg
_usb_dmac_chan_start_sg:                ## @usb_dmac_chan_start_sg
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %r13
	movq	8(%r13), %r15
	movl	%esi, %r12d
	leaq	(%r15,%r12,8), %r14
	movl	$0, -48(%rbp)
	movl	$0, -44(%rbp)
	callq	_usb_dmac_chan_is_busy
	movl	%eax, %edi
	callq	_WARN_ON_ONCE
	movq	(%r13), %rcx
	movq	_DMA_DEV_TO_MEM@GOTPCREL(%rip), %rdx
	movl	(%r15,%r12,8), %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_2
## %bb.1:
	movl	%eax, -44(%rbp)
	jmp	LBB0_3
LBB0_2:
	movl	%eax, -48(%rbp)
LBB0_3:
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	movl	(%rbx), %edx
	movl	4(%r15,%r12,8), %r8d
	leaq	-44(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %r9
	movq	%r14, %rcx
	callq	_dev_dbg
	movq	_USB_DMASAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-48(%rbp), %edx
	movq	%rbx, %rdi
	callq	_usb_dmac_chan_write
	movq	_USB_DMADAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-44(%rbp), %edx
	movq	%rbx, %rdi
	callq	_usb_dmac_chan_write
	movq	_USB_DMATCR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	4(%r15,%r12,8), %edi
	movq	_USB_DMAC_XFER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_DIV_ROUND_UP
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_usb_dmac_chan_write
	movq	_USB_DMATEND@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	4(%r15,%r12,8), %edi
	callq	_usb_dmac_calc_tend
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_usb_dmac_chan_write
	movq	_USB_DMAC_CHCR_TS@GOTPCREL(%rip), %rax
	movq	_USB_DMACHCR_NULLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_USB_DMACHCR@GOTPCREL(%rip), %rax
	movq	_USB_DMACHCR_IE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	(%rax), %esi
	movq	_USB_DMACHCR_DE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_usb_dmac_chan_write
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_DEV_TO_MEM,8,3             ## @DMA_DEV_TO_MEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"chan%u: queue sg %p: %u@%pad -> %pad\n"

	.comm	_USB_DMASAR,4,2                 ## @USB_DMASAR
	.comm	_USB_DMADAR,4,2                 ## @USB_DMADAR
	.comm	_USB_DMATCR,4,2                 ## @USB_DMATCR
	.comm	_USB_DMAC_XFER_SIZE,4,2         ## @USB_DMAC_XFER_SIZE
	.comm	_USB_DMATEND,4,2                ## @USB_DMATEND
	.comm	_USB_DMACHCR,4,2                ## @USB_DMACHCR
	.comm	_USB_DMAC_CHCR_TS,4,2           ## @USB_DMAC_CHCR_TS
	.comm	_USB_DMACHCR_NULLE,4,2          ## @USB_DMACHCR_NULLE
	.comm	_USB_DMACHCR_IE,4,2             ## @USB_DMACHCR_IE
	.comm	_USB_DMACHCR_DE,4,2             ## @USB_DMACHCR_DE
	.no_dead_strip	_usb_dmac_chan_start_sg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usb_dmac_chan_start_sg
_usb_dmac_chan_start_sg:                ; @usb_dmac_chan_start_sg
	.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, x0
	ldr	x23, [x0, #16]
	ldr	x21, [x23, #8]
	mov	w22, w1
	add	x20, x21, w1, uxtw #3
	str	xzr, [sp, #8]
	bl	_usb_dmac_chan_is_busy
	bl	_WARN_ON_ONCE
	ldr	x9, [x23]
Lloh0:
	adrp	x8, _DMA_DEV_TO_MEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMA_DEV_TO_MEM@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x8]
	ldr	w8, [x20]
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.1:
	str	w8, [sp, #8]
	b	LBB0_3
LBB0_2:
	str	w8, [sp, #12]
LBB0_3:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	ldr	w2, [x19]
	add	x21, x21, x22, lsl #3
	ldr	w4, [x21, #4]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x5, sp, #12
	add	x6, sp, #8
	mov	x3, x20
	bl	_dev_dbg
Lloh5:
	adrp	x8, _USB_DMASAR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _USB_DMASAR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	w2, [sp, #12]
	mov	x0, x19
	bl	_usb_dmac_chan_write
Lloh8:
	adrp	x8, _USB_DMADAR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _USB_DMADAR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	w2, [sp, #8]
	mov	x0, x19
	bl	_usb_dmac_chan_write
Lloh11:
	adrp	x8, _USB_DMATCR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _USB_DMATCR@GOTPAGEOFF]
Lloh13:
	ldr	w20, [x8]
	ldr	w0, [x21, #4]
Lloh14:
	adrp	x8, _USB_DMAC_XFER_SIZE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _USB_DMAC_XFER_SIZE@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_DIV_ROUND_UP
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_usb_dmac_chan_write
Lloh17:
	adrp	x8, _USB_DMATEND@GOTPAGE
Lloh18:
	ldr	x8, [x8, _USB_DMATEND@GOTPAGEOFF]
Lloh19:
	ldr	w20, [x8]
	ldr	w0, [x21, #4]
	bl	_usb_dmac_calc_tend
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_usb_dmac_chan_write
Lloh20:
	adrp	x8, _USB_DMACHCR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _USB_DMACHCR@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x8, _USB_DMAC_CHCR_TS@GOTPAGE
Lloh24:
	ldr	x8, [x8, _USB_DMAC_CHCR_TS@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	adrp	x9, _USB_DMACHCR_NULLE@GOTPAGE
Lloh27:
	ldr	x9, [x9, _USB_DMACHCR_NULLE@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh29:
	adrp	x9, _USB_DMACHCR_IE@GOTPAGE
Lloh30:
	ldr	x9, [x9, _USB_DMACHCR_IE@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh32:
	adrp	x9, _USB_DMACHCR_DE@GOTPAGE
Lloh33:
	ldr	x9, [x9, _USB_DMACHCR_DE@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x19
	bl	_usb_dmac_chan_write
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_DEV_TO_MEM,8,3             ; @DMA_DEV_TO_MEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"chan%u: queue sg %p: %u@%pad -> %pad\n"

	.comm	_USB_DMASAR,4,2                 ; @USB_DMASAR
	.comm	_USB_DMADAR,4,2                 ; @USB_DMADAR
	.comm	_USB_DMATCR,4,2                 ; @USB_DMATCR
	.comm	_USB_DMAC_XFER_SIZE,4,2         ; @USB_DMAC_XFER_SIZE
	.comm	_USB_DMATEND,4,2                ; @USB_DMATEND
	.comm	_USB_DMACHCR,4,2                ; @USB_DMACHCR
	.comm	_USB_DMAC_CHCR_TS,4,2           ; @USB_DMAC_CHCR_TS
	.comm	_USB_DMACHCR_NULLE,4,2          ; @USB_DMACHCR_NULLE
	.comm	_USB_DMACHCR_IE,4,2             ; @USB_DMACHCR_IE
	.comm	_USB_DMACHCR_DE,4,2             ; @USB_DMACHCR_DE
	.no_dead_strip	_usb_dmac_chan_start_sg
.subsections_via_symbols
