	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fimc_is_hw_open_sensor
_fimc_is_hw_open_sensor:                ## @fimc_is_hw_open_sensor
	.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	%rsi, %r14
	movq	%rdi, %r12
	movq	8(%rdi), %rbx
	callq	_fimc_is_hw_wait_intmsr0_intmsd0
	movabsq	$377957122048000001, %rax       ## imm = 0x53EC60000000001
	movq	%rax, (%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	movups	%xmm0, 24(%rbx)
	movq	$0, 40(%rbx)
	xorl	%eax, %eax
	callq	_fimc_is_mem_barrier
	movl	$100, %edi
	callq	_udelay
	movq	_HIC_OPEN_SENSOR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	xorl	%edi, %edi
	callq	_MCUCTL_REG_ISSR
	movl	%r15d, %edi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_mcuctl_write
	movl	4(%r12), %r15d
	movl	$1, %edi
	callq	_MCUCTL_REG_ISSR
	movl	%r15d, %edi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_mcuctl_write
	movq	(%r14), %rax
	movl	4(%rax), %r15d
	movl	$2, %edi
	callq	_MCUCTL_REG_ISSR
	movl	%r15d, %edi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_mcuctl_write
	movl	8(%r14), %r15d
	movl	$3, %edi
	callq	_MCUCTL_REG_ISSR
	movl	%r15d, %edi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_mcuctl_write
	movl	(%r12), %r15d
	movl	$4, %edi
	callq	_MCUCTL_REG_ISSR
	movl	%r15d, %edi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_mcuctl_write
	movq	%r12, %rdi
	callq	_fimc_is_hw_set_intgr0_gd0
	movq	_IS_ST_OPEN_SENSOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r14), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movl	$1, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fimc_is_wait_event             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HIC_OPEN_SENSOR,4,2            ## @HIC_OPEN_SENSOR
	.comm	_IS_ST_OPEN_SENSOR,4,2          ## @IS_ST_OPEN_SENSOR
	.no_dead_strip	_fimc_is_hw_open_sensor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function fimc_is_hw_open_sensor
lCPI0_0:
	.long	1                               ; 0x1
	.long	88000000                        ; 0x53ec600
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_fimc_is_hw_open_sensor:                ; @fimc_is_hw_open_sensor
	.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, x1
	mov	x19, x0
	ldr	x21, [x0, #8]
	bl	_fimc_is_hw_wait_intmsr0_intmsd0
	movi.2d	v0, #0000000000000000
	stur	q0, [x21, #8]
	stur	q0, [x21, #24]
	str	xzr, [x21, #40]
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x21]
	bl	_fimc_is_mem_barrier
	mov	w0, #100
	bl	_udelay
Lloh2:
	adrp	x8, _HIC_OPEN_SENSOR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HIC_OPEN_SENSOR@GOTPAGEOFF]
Lloh4:
	ldr	w21, [x8]
	mov	w0, #0
	bl	_MCUCTL_REG_ISSR
	mov	x2, x0
	mov	x0, x21
	mov	x1, x19
	bl	_mcuctl_write
	ldr	w21, [x19, #4]
	mov	w0, #1
	bl	_MCUCTL_REG_ISSR
	mov	x2, x0
	mov	x0, x21
	mov	x1, x19
	bl	_mcuctl_write
	ldr	x8, [x20]
	ldr	w21, [x8, #4]
	mov	w0, #2
	bl	_MCUCTL_REG_ISSR
	mov	x2, x0
	mov	x0, x21
	mov	x1, x19
	bl	_mcuctl_write
	ldr	w21, [x20, #8]
	mov	w0, #3
	bl	_MCUCTL_REG_ISSR
	mov	x2, x0
	mov	x0, x21
	mov	x1, x19
	bl	_mcuctl_write
	ldr	w21, [x19]
	mov	w0, #4
	bl	_MCUCTL_REG_ISSR
	mov	x2, x0
	mov	x0, x21
	mov	x1, x19
	bl	_mcuctl_write
	mov	x0, x19
	bl	_fimc_is_hw_set_intgr0_gd0
Lloh5:
	adrp	x8, _IS_ST_OPEN_SENSOR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IS_ST_OPEN_SENSOR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	x8, [x20]
	ldr	w3, [x8]
	mov	x0, x19
	mov	w2, #1
	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_is_wait_event
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdr	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_HIC_OPEN_SENSOR,4,2            ; @HIC_OPEN_SENSOR
	.comm	_IS_ST_OPEN_SENSOR,4,2          ; @IS_ST_OPEN_SENSOR
	.no_dead_strip	_fimc_is_hw_open_sensor
.subsections_via_symbols
