	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usb_dmac_isr_channel
_usb_dmac_isr_channel:                  ## @usb_dmac_isr_channel
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rsi, %rdi
	callq	_spin_lock
	movq	_USB_DMACHCR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_usb_dmac_chan_read
	movq	_USB_DMACHCR_TE@GOTPCREL(%rip), %rdx
	movq	_USB_DMACHCR_SP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	testl	%eax, %ecx
	je	LBB0_1
## %bb.2:
	movq	_USB_DMACHCR_DE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%edx, %ecx
	xorl	%r12d, %r12d
	testl	%eax, %edx
	setne	%r12b
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rdx
	orl	(%rdx), %r14d
	jmp	LBB0_3
LBB0_1:
	xorl	%ecx, %ecx
	xorl	%r12d, %r12d
LBB0_3:
	movq	_USB_DMACHCR_NULL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%eax, %edx
	je	LBB0_5
## %bb.4:
	orl	%edx, %ecx
	movq	_USB_DMACHCR_FTE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%edx, %eax
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rdx
	orl	(%rdx), %r14d
LBB0_5:
	testl	%ecx, %ecx
	je	LBB0_7
## %bb.6:
	movl	(%r15), %esi
	notl	%ecx
	andl	%ecx, %eax
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_usb_dmac_chan_write
LBB0_7:
	testl	%r12d, %r12d
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	callq	_usb_dmac_isr_transfer_end
LBB0_9:
	movq	%rbx, %rdi
	callq	_spin_unlock
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_USB_DMACHCR,4,2                ## @USB_DMACHCR
	.comm	_USB_DMACHCR_TE,4,2             ## @USB_DMACHCR_TE
	.comm	_USB_DMACHCR_SP,4,2             ## @USB_DMACHCR_SP
	.comm	_USB_DMACHCR_DE,4,2             ## @USB_DMACHCR_DE
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_USB_DMACHCR_NULL,4,2           ## @USB_DMACHCR_NULL
	.comm	_USB_DMACHCR_FTE,4,2            ## @USB_DMACHCR_FTE
	.no_dead_strip	_usb_dmac_isr_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usb_dmac_isr_channel
_usb_dmac_isr_channel:                  ; @usb_dmac_isr_channel
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x1
Lloh0:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	mov	x0, x1
	bl	_spin_lock
Lloh3:
	adrp	x21, _USB_DMACHCR@GOTPAGE
Lloh4:
	ldr	x21, [x21, _USB_DMACHCR@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_usb_dmac_chan_read
Lloh5:
	adrp	x8, _USB_DMACHCR_TE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _USB_DMACHCR_TE@GOTPAGEOFF]
Lloh7:
	adrp	x9, _USB_DMACHCR_SP@GOTPAGE
Lloh8:
	ldr	x9, [x9, _USB_DMACHCR_SP@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh11:
	adrp	x9, _IRQ_HANDLED@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IRQ_HANDLED@GOTPAGEOFF]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
Lloh13:
	adrp	x10, _USB_DMACHCR_DE@GOTPAGE
Lloh14:
	ldr	x10, [x10, _USB_DMACHCR_DE@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	orr	w8, w8, w10
	tst	w10, w0
	cset	w22, ne
	ldr	w10, [x9]
	orr	w19, w10, w19
	b	LBB0_3
LBB0_2:
	mov	w8, #0
	mov	w22, #0
LBB0_3:
Lloh16:
	adrp	x10, _USB_DMACHCR_NULL@GOTPAGE
Lloh17:
	ldr	x10, [x10, _USB_DMACHCR_NULL@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
	tst	w10, w0
	b.eq	LBB0_5
; %bb.4:
	orr	w8, w10, w8
Lloh19:
	adrp	x10, _USB_DMACHCR_FTE@GOTPAGE
Lloh20:
	ldr	x10, [x10, _USB_DMACHCR_FTE@GOTPAGEOFF]
Lloh21:
	ldr	w10, [x10]
	orr	w0, w10, w0
	ldr	w9, [x9]
	orr	w19, w9, w19
LBB0_5:
	cbz	w8, LBB0_7
; %bb.6:
	ldr	w1, [x21]
	bic	w2, w0, w8
	mov	x0, x20
	bl	_usb_dmac_chan_write
LBB0_7:
	cbz	w22, LBB0_9
; %bb.8:
	mov	x0, x20
	bl	_usb_dmac_isr_transfer_end
LBB0_9:
	mov	x0, x20
	bl	_spin_unlock
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_USB_DMACHCR,4,2                ; @USB_DMACHCR
	.comm	_USB_DMACHCR_TE,4,2             ; @USB_DMACHCR_TE
	.comm	_USB_DMACHCR_SP,4,2             ; @USB_DMACHCR_SP
	.comm	_USB_DMACHCR_DE,4,2             ; @USB_DMACHCR_DE
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_USB_DMACHCR_NULL,4,2           ; @USB_DMACHCR_NULL
	.comm	_USB_DMACHCR_FTE,4,2            ; @USB_DMACHCR_FTE
	.no_dead_strip	_usb_dmac_isr_channel
.subsections_via_symbols
