	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rcar_du_writeback_setup        ## -- Begin function rcar_du_writeback_setup
	.p2align	4, 0x90
_rcar_du_writeback_setup:               ## @rcar_du_writeback_setup
	.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), %rcx
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.1:
	movq	(%rcx), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%rsi, %r12
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	(%rax), %r13
	movq	8(%rax), %r14
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rcx, %rdi
	callq	_to_rcar_wb_conn_state
	movq	%rax, %rbx
	movq	(%rax), %rax
	movl	4(%rax), %ecx
	movl	%ecx, 12(%r12)
	movq	8(%r14), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%r12)
	cmpl	$0, (%rax)
	je	LBB0_5
## %bb.3:
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movl	(%rax,%r15,4), %edi
	callq	_sg_dma_address
	movq	(%r14), %rcx
	addq	(%rcx,%r15,8), %rax
	movq	(%r12), %rcx
	movq	%rax, (%rcx,%r15,8)
	incq	%r15
	movq	(%rbx), %rax
	movl	(%rax), %eax
	cmpq	%rax, %r15
	jb	LBB0_4
LBB0_5:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_drm_writeback_queue_job        ## TAILCALL
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rcar_du_writeback_setup        ; -- Begin function rcar_du_writeback_setup
	.p2align	2
_rcar_du_writeback_setup:               ; @rcar_du_writeback_setup
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	x19, [x0]
	cbz	x19, LBB0_6
; %bb.1:
	ldr	x8, [x19]
	cbz	x8, LBB0_6
; %bb.2:
	mov	x21, x1
	mov	x20, x0
	ldp	x24, x23, [x8]
	mov	x0, x19
	bl	_to_rcar_wb_conn_state
	ldr	x8, [x0]
	ldp	w8, w9, [x8]
	str	w9, [x21, #12]
	ldr	x9, [x23, #8]
	ldr	w9, [x9]
	str	w9, [x21, #8]
	cbz	w8, LBB0_5
; %bb.3:
	mov	x22, x0
	mov	x25, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	ldr	w0, [x8, x25, lsl #2]
	bl	_sg_dma_address
	ldr	x8, [x23]
	lsl	x9, x25, #3
	ldr	x8, [x8, x9]
	add	x8, x8, x0
	ldr	x10, [x21]
	str	x8, [x10, x9]
	add	x25, x25, #1
	ldr	x8, [x22]
	ldr	w8, [x8]
	cmp	x25, x8
	b.lo	LBB0_4
LBB0_5:
	mov	x0, x20
	mov	x1, x19
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_drm_writeback_queue_job
LBB0_6:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
