	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fimc_sw_reset
_fimc_sw_reset:                         ## @fimc_sw_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	_EXYNOS_CISTATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_fimc_read
	movl	%eax, %edi
	callq	_EXYNOS_CISTATUS_GET_ENVID_STATUS
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EXYNOS_MSCTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_EXYNOS_MSCTRL_ENVID@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_fimc_clear_bits
LBB0_2:
	movq	_EXYNOS_CISRCFMT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_EXYNOS_CISRCFMT_ITU601_8BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_fimc_set_bits
	movq	_EXYNOS_CIIMGCPT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_EXYNOS_CIIMGCPT_IMGCPTEN_SC@GOTPCREL(%rip), %rax
	movq	_EXYNOS_CIIMGCPT_IMGCPTEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_fimc_clear_bits
	movq	_EXYNOS_CIGCTRL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_EXYNOS_CIGCTRL_SWRST@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_fimc_set_bits
	movl	(%r14), %esi
	movl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_fimc_clear_bits
	movq	_EXYNOS_CIFCNTSEQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fimc_write                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EXYNOS_CISTATUS,4,2            ## @EXYNOS_CISTATUS
	.comm	_EXYNOS_MSCTRL,4,2              ## @EXYNOS_MSCTRL
	.comm	_EXYNOS_MSCTRL_ENVID,4,2        ## @EXYNOS_MSCTRL_ENVID
	.comm	_EXYNOS_CISRCFMT,4,2            ## @EXYNOS_CISRCFMT
	.comm	_EXYNOS_CISRCFMT_ITU601_8BIT,4,2 ## @EXYNOS_CISRCFMT_ITU601_8BIT
	.comm	_EXYNOS_CIIMGCPT,4,2            ## @EXYNOS_CIIMGCPT
	.comm	_EXYNOS_CIIMGCPT_IMGCPTEN_SC,4,2 ## @EXYNOS_CIIMGCPT_IMGCPTEN_SC
	.comm	_EXYNOS_CIIMGCPT_IMGCPTEN,4,2   ## @EXYNOS_CIIMGCPT_IMGCPTEN
	.comm	_EXYNOS_CIGCTRL,4,2             ## @EXYNOS_CIGCTRL
	.comm	_EXYNOS_CIGCTRL_SWRST,4,2       ## @EXYNOS_CIGCTRL_SWRST
	.comm	_EXYNOS_CIFCNTSEQ,4,2           ## @EXYNOS_CIFCNTSEQ
	.no_dead_strip	_fimc_sw_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fimc_sw_reset
_fimc_sw_reset:                         ; @fimc_sw_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	x8, _EXYNOS_CISTATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EXYNOS_CISTATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_fimc_read
	bl	_EXYNOS_CISTATUS_GET_ENVID_STATUS
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EXYNOS_MSCTRL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EXYNOS_MSCTRL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _EXYNOS_MSCTRL_ENVID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EXYNOS_MSCTRL_ENVID@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_fimc_clear_bits
LBB0_2:
Lloh9:
	adrp	x8, _EXYNOS_CISRCFMT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EXYNOS_CISRCFMT@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _EXYNOS_CISRCFMT_ITU601_8BIT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EXYNOS_CISRCFMT_ITU601_8BIT@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_fimc_set_bits
Lloh15:
	adrp	x8, _EXYNOS_CIIMGCPT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EXYNOS_CIIMGCPT@GOTPAGEOFF]
Lloh17:
	adrp	x9, _EXYNOS_CIIMGCPT_IMGCPTEN_SC@GOTPAGE
Lloh18:
	ldr	x9, [x9, _EXYNOS_CIIMGCPT_IMGCPTEN_SC@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	ldr	w8, [x9]
Lloh21:
	adrp	x9, _EXYNOS_CIIMGCPT_IMGCPTEN@GOTPAGE
Lloh22:
	ldr	x9, [x9, _EXYNOS_CIIMGCPT_IMGCPTEN@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_fimc_clear_bits
Lloh24:
	adrp	x20, _EXYNOS_CIGCTRL@GOTPAGE
Lloh25:
	ldr	x20, [x20, _EXYNOS_CIGCTRL@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh26:
	adrp	x21, _EXYNOS_CIGCTRL_SWRST@GOTPAGE
Lloh27:
	ldr	x21, [x21, _EXYNOS_CIGCTRL_SWRST@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_fimc_set_bits
	ldr	w1, [x20]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_fimc_clear_bits
Lloh28:
	adrp	x8, _EXYNOS_CIFCNTSEQ@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EXYNOS_CIFCNTSEQ@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	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	_fimc_write
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh19
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EXYNOS_CISTATUS,4,2            ; @EXYNOS_CISTATUS
	.comm	_EXYNOS_MSCTRL,4,2              ; @EXYNOS_MSCTRL
	.comm	_EXYNOS_MSCTRL_ENVID,4,2        ; @EXYNOS_MSCTRL_ENVID
	.comm	_EXYNOS_CISRCFMT,4,2            ; @EXYNOS_CISRCFMT
	.comm	_EXYNOS_CISRCFMT_ITU601_8BIT,4,2 ; @EXYNOS_CISRCFMT_ITU601_8BIT
	.comm	_EXYNOS_CIIMGCPT,4,2            ; @EXYNOS_CIIMGCPT
	.comm	_EXYNOS_CIIMGCPT_IMGCPTEN_SC,4,2 ; @EXYNOS_CIIMGCPT_IMGCPTEN_SC
	.comm	_EXYNOS_CIIMGCPT_IMGCPTEN,4,2   ; @EXYNOS_CIIMGCPT_IMGCPTEN
	.comm	_EXYNOS_CIGCTRL,4,2             ; @EXYNOS_CIGCTRL
	.comm	_EXYNOS_CIGCTRL_SWRST,4,2       ; @EXYNOS_CIGCTRL_SWRST
	.comm	_EXYNOS_CIFCNTSEQ,4,2           ; @EXYNOS_CIFCNTSEQ
	.no_dead_strip	_fimc_sw_reset
.subsections_via_symbols
