	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fimc_hw_reset                  ## -- Begin function fimc_hw_reset
	.p2align	4, 0x90
_fimc_hw_reset:                         ## @fimc_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	_FIMC_REG_CISRCFMT@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	8(%rbx), %rdi
	callq	_readl
	movq	_FIMC_REG_CISRCFMT_ITU601_8BIT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	(%r14), %rsi
	addq	8(%rbx), %rsi
	movl	%eax, %edi
	callq	_writel
	movq	_FIMC_REG_CIGCTRL@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	8(%rbx), %rdi
	callq	_readl
	movq	_FIMC_REG_CIGCTRL_SWRST@GOTPCREL(%rip), %r15
	movq	_FIMC_REG_CIGCTRL_IRQ_LEVEL@GOTPCREL(%rip), %rcx
	orl	(%r15), %eax
	orl	(%rcx), %eax
	movq	(%r14), %rsi
	addq	8(%rbx), %rsi
	movl	%eax, %edi
	callq	_writel
	movl	$10, %edi
	callq	_udelay
	movq	(%r14), %rdi
	addq	8(%rbx), %rdi
	callq	_readl
	movl	(%r15), %edi
	notl	%edi
	andl	%eax, %edi
	movq	(%r14), %rsi
	addq	8(%rbx), %rsi
	callq	_writel
	movq	(%rbx), %rax
	cmpl	$5, (%rax)
	jl	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	movl	$15, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fimc_hw_set_dma_seq            ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FIMC_REG_CISRCFMT,8,3          ## @FIMC_REG_CISRCFMT
	.comm	_FIMC_REG_CISRCFMT_ITU601_8BIT,4,2 ## @FIMC_REG_CISRCFMT_ITU601_8BIT
	.comm	_FIMC_REG_CIGCTRL,8,3           ## @FIMC_REG_CIGCTRL
	.comm	_FIMC_REG_CIGCTRL_SWRST,4,2     ## @FIMC_REG_CIGCTRL_SWRST
	.comm	_FIMC_REG_CIGCTRL_IRQ_LEVEL,4,2 ## @FIMC_REG_CIGCTRL_IRQ_LEVEL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fimc_hw_reset                  ; -- Begin function fimc_hw_reset
	.p2align	2
_fimc_hw_reset:                         ; @fimc_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
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x20, _FIMC_REG_CISRCFMT@GOTPAGE
Lloh1:
	ldr	x20, [x20, _FIMC_REG_CISRCFMT@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
Lloh2:
	adrp	x8, _FIMC_REG_CISRCFMT_ITU601_8BIT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FIMC_REG_CISRCFMT_ITU601_8BIT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	orr	w0, w8, w0
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19, #8]
Lloh5:
	adrp	x20, _FIMC_REG_CIGCTRL@GOTPAGE
Lloh6:
	ldr	x20, [x20, _FIMC_REG_CIGCTRL@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
Lloh7:
	adrp	x21, _FIMC_REG_CIGCTRL_SWRST@GOTPAGE
Lloh8:
	ldr	x21, [x21, _FIMC_REG_CIGCTRL_SWRST@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh9:
	adrp	x9, _FIMC_REG_CIGCTRL_IRQ_LEVEL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _FIMC_REG_CIGCTRL_IRQ_LEVEL@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w0
	orr	w0, w8, w9
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel
	mov	w0, #10
	bl	_udelay
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
	ldr	w8, [x21]
	bic	w0, w0, w8
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19]
	ldr	w8, [x8]
	cmp	w8, #5
	b.lt	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #15
	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_hw_set_dma_seq
LBB0_2:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_FIMC_REG_CISRCFMT,8,3          ; @FIMC_REG_CISRCFMT
	.comm	_FIMC_REG_CISRCFMT_ITU601_8BIT,4,2 ; @FIMC_REG_CISRCFMT_ITU601_8BIT
	.comm	_FIMC_REG_CIGCTRL,8,3           ; @FIMC_REG_CIGCTRL
	.comm	_FIMC_REG_CIGCTRL_SWRST,4,2     ; @FIMC_REG_CIGCTRL_SWRST
	.comm	_FIMC_REG_CIGCTRL_IRQ_LEVEL,4,2 ; @FIMC_REG_CIGCTRL_IRQ_LEVEL
.subsections_via_symbols
