	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rcar_dmac_isr_desc_stage_end
_rcar_dmac_isr_desc_stage_end:          ## @rcar_dmac_isr_desc_stage_end
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	xorl	%edi, %edi
	cmpl	$0, (%rax)
	sete	%dil
	jmp	LBB0_3
LBB0_1:
	movl	$1, %edi
LBB0_3:
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	movq	_RCAR_DMACHCRB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rcar_dmac_chan_read
	movq	_RCAR_DMACHCRB_DPTR_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_RCAR_DMACHCRB_DPTR_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shrl	%cl, %eax
	movq	_RCAR_DMADPCR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	movl	%eax, %edi
	callq	_RCAR_DMADPCR_DIPT
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_rcar_dmac_chan_write
	movq	_IRQ_WAKE_THREAD@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_RCAR_DMACHCRB,4,2              ## @RCAR_DMACHCRB
	.comm	_RCAR_DMACHCRB_DPTR_MASK,4,2    ## @RCAR_DMACHCRB_DPTR_MASK
	.comm	_RCAR_DMACHCRB_DPTR_SHIFT,4,2   ## @RCAR_DMACHCRB_DPTR_SHIFT
	.comm	_RCAR_DMADPCR,4,2               ## @RCAR_DMADPCR
	.comm	_IRQ_WAKE_THREAD,4,2            ## @IRQ_WAKE_THREAD
	.no_dead_strip	_rcar_dmac_isr_desc_stage_end
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rcar_dmac_isr_desc_stage_end
_rcar_dmac_isr_desc_stage_end:          ; @rcar_dmac_isr_desc_stage_end
	.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
	mov	x19, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	w8, [x8]
	cmp	w8, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_4
LBB0_2:
Lloh0:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
	mov	w0, #1
	bl	_WARN_ON
	cbnz	x0, LBB0_2
LBB0_4:
Lloh2:
	adrp	x8, _RCAR_DMACHCRB@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RCAR_DMACHCRB@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rcar_dmac_chan_read
Lloh5:
	adrp	x8, _RCAR_DMACHCRB_DPTR_MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RCAR_DMACHCRB_DPTR_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _RCAR_DMACHCRB_DPTR_SHIFT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _RCAR_DMACHCRB_DPTR_SHIFT@GOTPAGEOFF]
	and	w8, w8, w0
Lloh10:
	ldr	w9, [x9]
	lsr	w0, w8, w9
Lloh11:
	adrp	x8, _RCAR_DMADPCR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RCAR_DMADPCR@GOTPAGEOFF]
Lloh13:
	ldr	w20, [x8]
	bl	_RCAR_DMADPCR_DIPT
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_rcar_dmac_chan_write
Lloh14:
	adrp	x8, _IRQ_WAKE_THREAD@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IRQ_WAKE_THREAD@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_RCAR_DMACHCRB,4,2              ; @RCAR_DMACHCRB
	.comm	_RCAR_DMACHCRB_DPTR_MASK,4,2    ; @RCAR_DMACHCRB_DPTR_MASK
	.comm	_RCAR_DMACHCRB_DPTR_SHIFT,4,2   ; @RCAR_DMACHCRB_DPTR_SHIFT
	.comm	_RCAR_DMADPCR,4,2               ; @RCAR_DMADPCR
	.comm	_IRQ_WAKE_THREAD,4,2            ; @IRQ_WAKE_THREAD
	.no_dead_strip	_rcar_dmac_isr_desc_stage_end
.subsections_via_symbols
