	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_camif_hw_reset                 ## -- Begin function camif_hw_reset
	.p2align	4, 0x90
_camif_hw_reset:                        ## @camif_hw_reset
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_S3C_CAMIF_REG_CISRCFMT@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_camif_read
	movq	_CISRCFMT_ITU601_8BIT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_camif_write
	movq	_S3C_CAMIF_REG_CIGCTRL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_camif_read
	movq	_CIGCTRL_SWRST@GOTPCREL(%rip), %r15
	orl	(%r15), %eax
	movq	(%rbx), %rcx
	movq	(%rcx), %rdx
	movq	_S3C6410_CAMIF_IP_REV@GOTPCREL(%rip), %rsi
	xorl	%ecx, %ecx
	cmpq	(%rsi), %rdx
	jne	LBB0_2
## %bb.1:
	movq	_CIGCTRL_IRQ_LEVEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_2:
	orl	%ecx, %eax
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_camif_write
	movl	$10, %edi
	callq	_udelay
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_camif_read
	movl	(%r15), %edx
	notl	%edx
	andl	%eax, %edx
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_camif_write
	movl	$10, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_udelay                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_S3C_CAMIF_REG_CISRCFMT,4,2     ## @S3C_CAMIF_REG_CISRCFMT
	.comm	_CISRCFMT_ITU601_8BIT,4,2       ## @CISRCFMT_ITU601_8BIT
	.comm	_S3C_CAMIF_REG_CIGCTRL,4,2      ## @S3C_CAMIF_REG_CIGCTRL
	.comm	_CIGCTRL_SWRST,4,2              ## @CIGCTRL_SWRST
	.comm	_S3C6410_CAMIF_IP_REV,8,3       ## @S3C6410_CAMIF_IP_REV
	.comm	_CIGCTRL_IRQ_LEVEL,4,2          ## @CIGCTRL_IRQ_LEVEL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_camif_hw_reset                 ; -- Begin function camif_hw_reset
	.p2align	2
_camif_hw_reset:                        ; @camif_hw_reset
	.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	x20, _S3C_CAMIF_REG_CISRCFMT@GOTPAGE
Lloh1:
	ldr	x20, [x20, _S3C_CAMIF_REG_CISRCFMT@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_camif_read
Lloh2:
	adrp	x8, _CISRCFMT_ITU601_8BIT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CISRCFMT_ITU601_8BIT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	orr	w2, w8, w0
	ldr	w1, [x20]
	mov	x0, x19
	bl	_camif_write
Lloh5:
	adrp	x20, _S3C_CAMIF_REG_CIGCTRL@GOTPAGE
Lloh6:
	ldr	x20, [x20, _S3C_CAMIF_REG_CIGCTRL@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_camif_read
Lloh7:
	adrp	x21, _CIGCTRL_SWRST@GOTPAGE
Lloh8:
	ldr	x21, [x21, _CIGCTRL_SWRST@GOTPAGEOFF]
	ldr	w8, [x21]
	orr	w8, w8, w0
	ldr	x9, [x19]
	ldr	x9, [x9]
Lloh9:
	adrp	x10, _S3C6410_CAMIF_IP_REV@GOTPAGE
Lloh10:
	ldr	x10, [x10, _S3C6410_CAMIF_IP_REV@GOTPAGEOFF]
Lloh11:
	adrp	x11, _CIGCTRL_IRQ_LEVEL@GOTPAGE
Lloh12:
	ldr	x11, [x11, _CIGCTRL_IRQ_LEVEL@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
Lloh14:
	ldr	w11, [x11]
	cmp	x9, x10
	csel	w9, w11, wzr, eq
	orr	w2, w8, w9
	ldr	w1, [x20]
	mov	x0, x19
	bl	_camif_write
	mov	w0, #10
	bl	_udelay
	ldr	w1, [x20]
	mov	x0, x19
	bl	_camif_read
	ldr	w8, [x21]
	bic	w2, w0, w8
	ldr	w1, [x20]
	mov	x0, x19
	bl	_camif_write
	mov	w0, #10
	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	_udelay
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_S3C_CAMIF_REG_CISRCFMT,4,2     ; @S3C_CAMIF_REG_CISRCFMT
	.comm	_CISRCFMT_ITU601_8BIT,4,2       ; @CISRCFMT_ITU601_8BIT
	.comm	_S3C_CAMIF_REG_CIGCTRL,4,2      ; @S3C_CAMIF_REG_CIGCTRL
	.comm	_CIGCTRL_SWRST,4,2              ; @CIGCTRL_SWRST
	.comm	_S3C6410_CAMIF_IP_REV,8,3       ; @S3C6410_CAMIF_IP_REV
	.comm	_CIGCTRL_IRQ_LEVEL,4,2          ; @CIGCTRL_IRQ_LEVEL
.subsections_via_symbols
