	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_camif_hw_set_output_dma        ## -- Begin function camif_hw_set_output_dma
	.p2align	4, 0x90
_camif_hw_set_output_dma:               ## @camif_hw_set_output_dma
	.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, %r12
	movq	8(%rdi), %r14
	movq	32(%rdi), %rbx
	movl	$0, -48(%rbp)
	movl	$0, -44(%rbp)
	callq	_camif_hw_set_out_dma_size
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	_S3C6410_CAMIF_IP_REV@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movl	24(%r12), %edi
	callq	_S3C_CISS_OFFS_INITIAL
	movl	%eax, %r15d
	movl	20(%r12), %edi
	callq	_S3C_CISS_OFFS_LINE
	orl	%eax, %r15d
	movl	4(%r12), %edi
	callq	_S3C_CAMIF_REG_CISSY
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	%r15d, %edx
	callq	_camif_write
	movl	4(%r12), %edi
	callq	_S3C_CAMIF_REG_CISSCB
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	%r15d, %edx
	callq	_camif_write
	movl	4(%r12), %edi
	callq	_S3C_CAMIF_REG_CISSCR
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	%r15d, %edx
	callq	_camif_write
LBB0_2:
	movl	16(%r12), %edi
	movl	(%r14), %esi
	leaq	-48(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	callq	_camif_get_dma_burst
	movl	(%r12), %esi
	movl	4(%r12), %edi
	callq	_S3C_CAMIF_REG_CICTRL
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_camif_read
	movq	_CICTRL_BURST_MASK@GOTPCREL(%rip), %rcx
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	(%rcx), %r14d
	notl	%r14d
	andl	%eax, %r14d
	movl	-48(%rbp), %edi
	callq	_CICTRL_YBURST1
	movl	%eax, %r15d
	movl	-44(%rbp), %edi
	callq	_CICTRL_YBURST2
	movl	%eax, %ebx
	movl	-48(%rbp), %edi
	shrl	%edi
	callq	_CICTRL_CBURST1
	movl	%eax, %r13d
	movl	-44(%rbp), %edi
	shrl	%edi
	callq	_CICTRL_CBURST2
	orl	%r15d, %ebx
	orl	%r13d, %ebx
	orl	%eax, %ebx
	orl	%r14d, %ebx
	movl	(%r12), %esi
	movl	4(%r12), %edi
	callq	_S3C_CAMIF_REG_CICTRL
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_camif_write
	movl	-48(%rbp), %esi
	movl	-44(%rbp), %edx
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_S3C6410_CAMIF_IP_REV,8,3       ## @S3C6410_CAMIF_IP_REV
	.comm	_CICTRL_BURST_MASK,4,2          ## @CICTRL_BURST_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ymburst: %u, yrburst: %u\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_camif_hw_set_output_dma        ; -- Begin function camif_hw_set_output_dma
	.p2align	2
_camif_hw_set_output_dma:               ; @camif_hw_set_output_dma
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x0
	ldr	x19, [x0, #32]
	ldr	x22, [x0, #8]
	str	xzr, [sp, #8]
	bl	_camif_hw_set_out_dma_size
	ldr	x8, [x19]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _S3C6410_CAMIF_IP_REV@GOTPAGE
Lloh1:
	ldr	x9, [x9, _S3C6410_CAMIF_IP_REV@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x20, #24]
	bl	_S3C_CISS_OFFS_INITIAL
	mov	x21, x0
	ldr	w0, [x20, #20]
	bl	_S3C_CISS_OFFS_LINE
	orr	w21, w0, w21
	ldr	w0, [x20, #4]
	bl	_S3C_CAMIF_REG_CISSY
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	bl	_camif_write
	ldr	w0, [x20, #4]
	bl	_S3C_CAMIF_REG_CISSCB
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	bl	_camif_write
	ldr	w0, [x20, #4]
	bl	_S3C_CAMIF_REG_CISSCR
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	bl	_camif_write
LBB0_2:
	ldr	w0, [x20, #16]
	ldr	w1, [x22]
	add	x2, sp, #12
	add	x3, sp, #8
	bl	_camif_get_dma_burst
	ldp	w1, w0, [x20]
	bl	_S3C_CAMIF_REG_CICTRL
	mov	x1, x0
	mov	x0, x19
	bl	_camif_read
Lloh3:
	adrp	x8, _CICTRL_BURST_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CICTRL_BURST_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	bic	w24, w0, w8
	ldr	w0, [sp, #12]
	bl	_CICTRL_YBURST1
	mov	x21, x0
	ldr	w0, [sp, #8]
	bl	_CICTRL_YBURST2
	mov	x22, x0
	ldr	w8, [sp, #12]
	lsr	w0, w8, #1
	bl	_CICTRL_CBURST1
	mov	x23, x0
	ldr	w8, [sp, #8]
	lsr	w0, w8, #1
	bl	_CICTRL_CBURST2
	orr	w8, w21, w24
	orr	w8, w8, w22
	orr	w8, w8, w23
	orr	w21, w8, w0
	ldp	w1, w0, [x20]
	bl	_S3C_CAMIF_REG_CICTRL
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	bl	_camif_write
	ldp	w2, w1, [sp, #8]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_S3C6410_CAMIF_IP_REV,8,3       ; @S3C6410_CAMIF_IP_REV
	.comm	_CICTRL_BURST_MASK,4,2          ; @CICTRL_BURST_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ymburst: %u, yrburst: %u\n"

.subsections_via_symbols
