	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_camif_hw_enable_capture        ## -- Begin function camif_hw_enable_capture
	.p2align	4, 0x90
_camif_hw_enable_capture:               ## @camif_hw_enable_capture
	.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	%rdi, %r14
	movq	16(%rdi), %r12
	movl	(%rdi), %edi
	callq	_S3C_CAMIF_REG_CIIMGCPT
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_camif_read
	movl	%eax, %r15d
	incl	(%r12)
	movq	8(%r12), %rax
	movq	(%rax), %rax
	movq	_S3C6410_CAMIF_IP_REV@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movl	4(%r14), %edi
	callq	_CIIMGCPT_CPT_FREN_ENABLE
	orl	%eax, %r15d
LBB0_2:
	cmpq	$0, 8(%r14)
	je	LBB0_4
## %bb.3:
	movl	4(%r14), %edi
	callq	_CIIMGCPT_IMGCPTEN_SC
	orl	%eax, %r15d
LBB0_4:
	xorl	%ebx, %ebx
	cmpl	$1, (%r12)
	jne	LBB0_6
## %bb.5:
	movq	_CIIMGCPT_IMGCPTEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_6:
	orl	%r15d, %ebx
	movl	(%r14), %edi
	callq	_S3C_CAMIF_REG_CIIMGCPT
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_camif_write
	movl	(%r12), %edx
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pr_debug                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_S3C6410_CAMIF_IP_REV,8,3       ## @S3C6410_CAMIF_IP_REV
	.comm	_CIIMGCPT_IMGCPTEN,4,2          ## @CIIMGCPT_IMGCPTEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CIIMGCPT: %#x, camif->stream_count: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_camif_hw_enable_capture        ; -- Begin function camif_hw_enable_capture
	.p2align	2
_camif_hw_enable_capture:               ; @camif_hw_enable_capture
	.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	x20, x0
	ldr	x19, [x0, #16]
	ldr	w0, [x0]
	bl	_S3C_CAMIF_REG_CIIMGCPT
	mov	x1, x0
	mov	x0, x19
	bl	_camif_read
	mov	x21, x0
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	ldr	x8, [x19, #8]
	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, #4]
	bl	_CIIMGCPT_CPT_FREN_ENABLE
	orr	w21, w0, w21
LBB0_2:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w0, [x20, #4]
	bl	_CIIMGCPT_IMGCPTEN_SC
	orr	w21, w0, w21
LBB0_4:
Lloh3:
	adrp	x8, _CIIMGCPT_IMGCPTEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CIIMGCPT_IMGCPTEN@GOTPAGEOFF]
	ldr	w9, [x19]
Lloh5:
	ldr	w8, [x8]
	cmp	w9, #1
	csel	w8, w8, wzr, eq
	orr	w21, w8, w21
	ldr	w0, [x20]
	bl	_S3C_CAMIF_REG_CIIMGCPT
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	bl	_camif_write
	ldr	w2, [x19]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	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
	b	_pr_debug
	.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	_CIIMGCPT_IMGCPTEN,4,2          ; @CIIMGCPT_IMGCPTEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CIIMGCPT: %#x, camif->stream_count: %d\n"

.subsections_via_symbols
