	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fimc_hw_set_output_addr        ## -- Begin function fimc_hw_set_output_addr
	.p2align	4, 0x90
_fimc_hw_set_output_addr:               ## @fimc_hw_set_output_addr
	.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	%rsi, %r12
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	cmpl	$-1, %edx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	cmovnel	%edx, %r15d
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r12), %ebx
	movq	(%r13), %r14
	movl	%r15d, %edi
	callq	_FIMC_REG_CIOYSA
	addq	%rax, %r14
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_writel
	movl	4(%r12), %r14d
	movq	(%r13), %rbx
	movl	%r15d, %edi
	callq	_FIMC_REG_CIOCBSA
	addq	%rax, %rbx
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_writel
	movl	(%r12), %r14d
	movq	(%r13), %rbx
	movl	%r15d, %edi
	callq	_FIMC_REG_CIOCRSA
	addq	%rax, %rbx
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_writel
	movl	8(%r12), %edx
	movl	(%r12), %r8d
	movl	4(%r12), %ecx
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	callq	_dbg
	cmpl	$-1, -44(%rbp)                  ## 4-byte Folded Reload
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	incl	%r15d
	movq	_FIMC_MAX_OUT_BUFS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jl	LBB0_1
LBB0_3:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dst_buf[%d]: 0x%X, cb: 0x%X, cr: 0x%X"

	.comm	_FIMC_MAX_OUT_BUFS,4,2          ## @FIMC_MAX_OUT_BUFS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fimc_hw_set_output_addr        ; -- Begin function fimc_hw_set_output_addr
	.p2align	2
_fimc_hw_set_output_addr:               ; @fimc_hw_set_output_addr
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	cmn	w2, #1
	csel	w22, wzr, w2, eq
Lloh0:
	adrp	x23, l_.str@PAGE
Lloh1:
	add	x23, x23, l_.str@PAGEOFF
Lloh2:
	adrp	x25, _FIMC_MAX_OUT_BUFS@GOTPAGE
Lloh3:
	ldr	x25, [x25, _FIMC_MAX_OUT_BUFS@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w24, [x20, #8]
	ldr	x26, [x21]
	mov	x0, x22
	bl	_FIMC_REG_CIOYSA
	add	x1, x0, x26
	mov	x0, x24
	bl	_writel
	ldr	w24, [x20, #4]
	ldr	x26, [x21]
	mov	x0, x22
	bl	_FIMC_REG_CIOCBSA
	add	x1, x0, x26
	mov	x0, x24
	bl	_writel
	ldr	w24, [x20]
	ldr	x26, [x21]
	mov	x0, x22
	bl	_FIMC_REG_CIOCRSA
	add	x1, x0, x26
	mov	x0, x24
	bl	_writel
	ldp	w3, w2, [x20, #4]
	ldr	w4, [x20]
	mov	x0, x23
	mov	x1, x22
	bl	_dbg
	cmn	w19, #1
	b.ne	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	w22, w22, #1
	ldr	w8, [x25]
	cmp	w22, w8
	b.lt	LBB0_1
LBB0_3:
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dst_buf[%d]: 0x%X, cb: 0x%X, cr: 0x%X"

	.comm	_FIMC_MAX_OUT_BUFS,4,2          ; @FIMC_MAX_OUT_BUFS
.subsections_via_symbols
