	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rcar_drif_channel_complete
_rcar_drif_channel_complete:            ## @rcar_drif_channel_complete
	.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, %r14
	movq	%rdi, %rbx
	movq	_RCAR_DRIF_BUF_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%rdi), %rcx
	orl	%eax, (%rcx,%rsi,4)
	movq	_RCAR_DRIF_SISTR@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_rcar_drif_read
	movq	%rax, %r15
	movq	_RCAR_DRIF_RFOVF@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	andq	%r15, %rdi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_rcar_drif_write
	movq	_RCAR_DRIF_BUF_OVERFLOW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%rbx), %rcx
	orl	%eax, (%rcx,%r14,4)
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RCAR_DRIF_BUF_DONE,4,2         ## @RCAR_DRIF_BUF_DONE
	.comm	_RCAR_DRIF_SISTR,4,2            ## @RCAR_DRIF_SISTR
	.comm	_RCAR_DRIF_RFOVF,8,3            ## @RCAR_DRIF_RFOVF
	.comm	_RCAR_DRIF_BUF_OVERFLOW,4,2     ## @RCAR_DRIF_BUF_OVERFLOW
	.no_dead_strip	_rcar_drif_channel_complete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rcar_drif_channel_complete
_rcar_drif_channel_complete:            ; @rcar_drif_channel_complete
	.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	x19, x0
Lloh0:
	adrp	x8, _RCAR_DRIF_BUF_DONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RCAR_DRIF_BUF_DONE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x9, [x0]
	lsl	x21, x1, #2
	ldr	w10, [x9, x21]
	orr	w8, w10, w8
	str	w8, [x9, x21]
Lloh3:
	adrp	x22, _RCAR_DRIF_SISTR@GOTPAGE
Lloh4:
	ldr	x22, [x22, _RCAR_DRIF_SISTR@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_rcar_drif_read
	mov	x20, x0
Lloh5:
	adrp	x8, _RCAR_DRIF_RFOVF@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RCAR_DRIF_RFOVF@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	and	x0, x8, x0
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x20
	bl	_rcar_drif_write
Lloh8:
	adrp	x8, _RCAR_DRIF_BUF_OVERFLOW@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RCAR_DRIF_BUF_OVERFLOW@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	x9, [x19]
	ldr	w10, [x9, x21]
	orr	w8, w10, w8
	str	w8, [x9, x21]
LBB0_2:
	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 AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_RCAR_DRIF_BUF_DONE,4,2         ; @RCAR_DRIF_BUF_DONE
	.comm	_RCAR_DRIF_SISTR,4,2            ; @RCAR_DRIF_SISTR
	.comm	_RCAR_DRIF_RFOVF,8,3            ; @RCAR_DRIF_RFOVF
	.comm	_RCAR_DRIF_BUF_OVERFLOW,4,2     ; @RCAR_DRIF_BUF_OVERFLOW
	.no_dead_strip	_rcar_drif_channel_complete
.subsections_via_symbols
