	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_omap3isp_csi2_reset            ## -- Begin function omap3isp_csi2_reset
	.p2align	4, 0x90
_omap3isp_csi2_reset:                   ## @omap3isp_csi2_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, 16(%rdi)
	je	LBB0_3
## %bb.1:
	movq	%rdi, %r15
	movq	8(%rdi), %rax
	cmpq	$0, 8(%rax)
	jne	LBB0_16
## %bb.4:
	movq	24(%r15), %r14
	movl	(%r15), %esi
	movq	_ISPCSI2_SYSCONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ISPCSI2_SYSCONFIG_SOFT_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_isp_reg_set
	movl	(%r15), %esi
	movq	_ISPCSI2_SYSSTATUS@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%r14, %rdi
	callq	_isp_reg_readl
	movq	_ISPCSI2_SYSSTATUS_RESET_DONE@GOTPCREL(%rip), %r12
	notl	%eax
	testl	%eax, (%r12)
	je	LBB0_9
## %bb.5:
	movl	$100, %edi
	callq	_udelay
	movl	(%r15), %esi
	movl	(%r13), %edx
	movq	%r14, %rdi
	callq	_isp_reg_readl
	notl	%eax
	testl	%eax, (%r12)
	je	LBB0_9
## %bb.6:
	movl	$100, %edi
	callq	_udelay
	movl	(%r15), %esi
	movl	(%r13), %edx
	movq	%r14, %rdi
	callq	_isp_reg_readl
	notl	%eax
	testl	%eax, (%r12)
	je	LBB0_9
## %bb.7:
	movl	$100, %edi
	callq	_udelay
	movl	(%r15), %esi
	movl	(%r13), %edx
	movq	%r14, %rdi
	callq	_isp_reg_readl
	notl	%eax
	testl	%eax, (%r12)
	je	LBB0_9
## %bb.8:
	movl	$100, %edi
	callq	_udelay
	movl	(%r15), %esi
	movl	(%r13), %edx
	movq	%r14, %rdi
	callq	_isp_reg_readl
	notl	%eax
	testl	%eax, (%r12)
	jne	LBB0_22
LBB0_9:
	movq	(%r14), %rax
	movq	_ISP_REVISION_15_0@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.10:
	movl	(%r15), %esi
	movq	_ISPCSI2_PHY_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ISPCSI2_PHY_CFG_RESET_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_isp_reg_set
LBB0_11:
	movl	$101, %ebx
	movq	_ISPCSIPHY_REG1@GOTPCREL(%rip), %r13
	movq	_ISPCSIPHY_REG1_RESET_DONE_CTRLCLK@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	movq	%r14, %rdi
	callq	_isp_reg_readl
	notl	%eax
	testl	%eax, (%r12)
	je	LBB0_19
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	$100, %edi
	callq	_udelay
	decl	%ebx
	cmpl	$1, %ebx
	ja	LBB0_12
## %bb.14:
	movl	16(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_15:
	callq	_dev_err
LBB0_16:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_3:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_17:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_18:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movq	_ISPCSI2_SYSCONFIG_MSTANDBY_MODE_MASK@GOTPCREL(%rip), %rax
	movq	_ISPCSI2_SYSCONFIG_AUTO_IDLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movl	(%rax), %ecx
	orl	%r8d, %ecx
	cmpq	$0, 8(%r14)
	movl	(%r15), %esi
	movq	_ISPCSI2_SYSCONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	je	LBB0_21
## %bb.20:
	movq	_ISPCSI2_SYSCONFIG_MSTANDBY_MODE_SMART@GOTPCREL(%rip), %r9
	movq	(%r14), %rdi
	xorl	%ebx, %ebx
	movq	_ISP_REVISION_15_0@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	cmovnel	%ebx, %r8d
	orl	(%r9), %r8d
	movq	%r14, %rdi
	callq	_isp_reg_clr_set
	jmp	LBB0_18
LBB0_21:
	movq	_ISPCSI2_SYSCONFIG_MSTANDBY_MODE_NO@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	callq	_isp_reg_clr_set
	xorl	%ebx, %ebx
	jmp	LBB0_18
LBB0_22:
	movl	16(%r14), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_ISPCSI2_SYSCONFIG,4,2          ## @ISPCSI2_SYSCONFIG
	.comm	_ISPCSI2_SYSCONFIG_SOFT_RESET,4,2 ## @ISPCSI2_SYSCONFIG_SOFT_RESET
	.comm	_ISPCSI2_SYSSTATUS,4,2          ## @ISPCSI2_SYSSTATUS
	.comm	_ISPCSI2_SYSSTATUS_RESET_DONE,4,2 ## @ISPCSI2_SYSSTATUS_RESET_DONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CSI2: Soft reset try count exceeded!\n"

	.comm	_ISP_REVISION_15_0,8,3          ## @ISP_REVISION_15_0
	.comm	_ISPCSI2_PHY_CFG,4,2            ## @ISPCSI2_PHY_CFG
	.comm	_ISPCSI2_PHY_CFG_RESET_CTRL,4,2 ## @ISPCSI2_PHY_CFG_RESET_CTRL
	.comm	_ISPCSIPHY_REG1,4,2             ## @ISPCSIPHY_REG1
	.comm	_ISPCSIPHY_REG1_RESET_DONE_CTRLCLK,4,2 ## @ISPCSIPHY_REG1_RESET_DONE_CTRLCLK
L_.str.1:                               ## @.str.1
	.asciz	"CSI2: Reset for CSI2_96M_FCLK domain Failed!\n"

	.comm	_ISPCSI2_SYSCONFIG_MSTANDBY_MODE_MASK,4,2 ## @ISPCSI2_SYSCONFIG_MSTANDBY_MODE_MASK
	.comm	_ISPCSI2_SYSCONFIG_AUTO_IDLE,4,2 ## @ISPCSI2_SYSCONFIG_AUTO_IDLE
	.comm	_ISPCSI2_SYSCONFIG_MSTANDBY_MODE_SMART,4,2 ## @ISPCSI2_SYSCONFIG_MSTANDBY_MODE_SMART
	.comm	_ISPCSI2_SYSCONFIG_MSTANDBY_MODE_NO,4,2 ## @ISPCSI2_SYSCONFIG_MSTANDBY_MODE_NO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_omap3isp_csi2_reset            ; -- Begin function omap3isp_csi2_reset
	.p2align	2
_omap3isp_csi2_reset:                   ; @omap3isp_csi2_reset
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	w8, [x0, #16]
	cbz	w8, LBB0_15
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	x8, [x8, #8]
	cbnz	x8, LBB0_14
; %bb.2:
	ldr	x19, [x20, #24]
	ldr	w1, [x20]
Lloh0:
	adrp	x21, _ISPCSI2_SYSCONFIG@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ISPCSI2_SYSCONFIG@GOTPAGEOFF]
	ldr	w2, [x21]
Lloh2:
	adrp	x8, _ISPCSI2_SYSCONFIG_SOFT_RESET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ISPCSI2_SYSCONFIG_SOFT_RESET@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_isp_reg_set
	ldr	w1, [x20]
Lloh5:
	adrp	x22, _ISPCSI2_SYSSTATUS@GOTPAGE
Lloh6:
	ldr	x22, [x22, _ISPCSI2_SYSSTATUS@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_isp_reg_readl
Lloh7:
	adrp	x23, _ISPCSI2_SYSSTATUS_RESET_DONE@GOTPAGE
Lloh8:
	ldr	x23, [x23, _ISPCSI2_SYSSTATUS_RESET_DONE@GOTPAGEOFF]
	ldr	w8, [x23]
	bics	wzr, w8, w0
	b.eq	LBB0_7
; %bb.3:
	mov	w0, #100
	bl	_udelay
	ldr	w1, [x20]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_isp_reg_readl
	ldr	w8, [x23]
	bics	wzr, w8, w0
	b.eq	LBB0_7
; %bb.4:
	mov	w0, #100
	bl	_udelay
	ldr	w1, [x20]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_isp_reg_readl
	ldr	w8, [x23]
	bics	wzr, w8, w0
	b.eq	LBB0_7
; %bb.5:
	mov	w0, #100
	bl	_udelay
	ldr	w1, [x20]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_isp_reg_readl
	ldr	w8, [x23]
	bics	wzr, w8, w0
	b.eq	LBB0_7
; %bb.6:
	mov	w0, #100
	bl	_udelay
	ldr	w1, [x20]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_isp_reg_readl
	ldr	w8, [x23]
	bics	wzr, w8, w0
	b.ne	LBB0_22
LBB0_7:
	ldr	x8, [x19]
Lloh9:
	adrp	x22, _ISP_REVISION_15_0@GOTPAGE
Lloh10:
	ldr	x22, [x22, _ISP_REVISION_15_0@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:
	ldr	w1, [x20]
Lloh11:
	adrp	x8, _ISPCSI2_PHY_CFG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ISPCSI2_PHY_CFG@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	adrp	x8, _ISPCSI2_PHY_CFG_RESET_CTRL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ISPCSI2_PHY_CFG_RESET_CTRL@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_isp_reg_set
LBB0_9:
	mov	w23, #101
Lloh17:
	adrp	x24, _ISPCSIPHY_REG1@GOTPAGE
Lloh18:
	ldr	x24, [x24, _ISPCSIPHY_REG1@GOTPAGEOFF]
Lloh19:
	adrp	x25, _ISPCSIPHY_REG1_RESET_DONE_CTRLCLK@GOTPAGE
Lloh20:
	ldr	x25, [x25, _ISPCSIPHY_REG1_RESET_DONE_CTRLCLK@GOTPAGEOFF]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	w1, [x8]
	ldr	w2, [x24]
	mov	x0, x19
	bl	_isp_reg_readl
	ldr	w8, [x25]
	bics	wzr, w8, w0
	b.eq	LBB0_18
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	w0, #100
	bl	_udelay
	sub	w23, w23, #1
	cmp	w23, #1
	b.hi	LBB0_10
; %bb.12:
	ldr	w0, [x19, #16]
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_13:
	bl	_dev_err
LBB0_14:
Lloh23:
	adrp	x8, _EBUSY@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_16
LBB0_15:
Lloh25:
	adrp	x8, _ENODEV@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_17:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_18:
	ldr	x9, [x19, #8]
	ldr	w1, [x20]
Lloh27:
	adrp	x8, _ISPCSI2_SYSCONFIG_MSTANDBY_MODE_MASK@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ISPCSI2_SYSCONFIG_MSTANDBY_MODE_MASK@GOTPAGEOFF]
	ldr	w2, [x21]
Lloh29:
	ldr	w10, [x8]
Lloh30:
	adrp	x8, _ISPCSI2_SYSCONFIG_AUTO_IDLE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ISPCSI2_SYSCONFIG_AUTO_IDLE@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	orr	w3, w8, w10
	cbz	x9, LBB0_20
; %bb.19:
Lloh33:
	adrp	x9, _ISPCSI2_SYSCONFIG_MSTANDBY_MODE_SMART@GOTPAGE
Lloh34:
	ldr	x9, [x9, _ISPCSI2_SYSCONFIG_MSTANDBY_MODE_SMART@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	ldr	x10, [x19]
	ldr	x11, [x22]
	cmp	x10, x11
	csel	w8, w8, wzr, eq
	orr	w4, w8, w9
	b	LBB0_21
LBB0_20:
Lloh36:
	adrp	x8, _ISPCSI2_SYSCONFIG_MSTANDBY_MODE_NO@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ISPCSI2_SYSCONFIG_MSTANDBY_MODE_NO@GOTPAGEOFF]
Lloh38:
	ldr	w4, [x8]
LBB0_21:
	mov	x0, x19
	bl	_isp_reg_clr_set
	mov	w0, #0
	b	LBB0_17
LBB0_22:
	ldr	w0, [x19, #16]
Lloh39:
	adrp	x1, l_.str@PAGE
Lloh40:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_13
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_ISPCSI2_SYSCONFIG,4,2          ; @ISPCSI2_SYSCONFIG
	.comm	_ISPCSI2_SYSCONFIG_SOFT_RESET,4,2 ; @ISPCSI2_SYSCONFIG_SOFT_RESET
	.comm	_ISPCSI2_SYSSTATUS,4,2          ; @ISPCSI2_SYSSTATUS
	.comm	_ISPCSI2_SYSSTATUS_RESET_DONE,4,2 ; @ISPCSI2_SYSSTATUS_RESET_DONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CSI2: Soft reset try count exceeded!\n"

	.comm	_ISP_REVISION_15_0,8,3          ; @ISP_REVISION_15_0
	.comm	_ISPCSI2_PHY_CFG,4,2            ; @ISPCSI2_PHY_CFG
	.comm	_ISPCSI2_PHY_CFG_RESET_CTRL,4,2 ; @ISPCSI2_PHY_CFG_RESET_CTRL
	.comm	_ISPCSIPHY_REG1,4,2             ; @ISPCSIPHY_REG1
	.comm	_ISPCSIPHY_REG1_RESET_DONE_CTRLCLK,4,2 ; @ISPCSIPHY_REG1_RESET_DONE_CTRLCLK
l_.str.1:                               ; @.str.1
	.asciz	"CSI2: Reset for CSI2_96M_FCLK domain Failed!\n"

	.comm	_ISPCSI2_SYSCONFIG_MSTANDBY_MODE_MASK,4,2 ; @ISPCSI2_SYSCONFIG_MSTANDBY_MODE_MASK
	.comm	_ISPCSI2_SYSCONFIG_AUTO_IDLE,4,2 ; @ISPCSI2_SYSCONFIG_AUTO_IDLE
	.comm	_ISPCSI2_SYSCONFIG_MSTANDBY_MODE_SMART,4,2 ; @ISPCSI2_SYSCONFIG_MSTANDBY_MODE_SMART
	.comm	_ISPCSI2_SYSCONFIG_MSTANDBY_MODE_NO,4,2 ; @ISPCSI2_SYSCONFIG_MSTANDBY_MODE_NO
.subsections_via_symbols
