	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fimc_isp_subdev_s_power
_fimc_isp_subdev_s_power:               ## @fimc_isp_subdev_s_power
	.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
	movl	%esi, %ebx
	movq	%rdi, %r15
	callq	_v4l2_get_subdevdata
	movq	%rax, %rdi
	callq	_fimc_isp_to_is
	movq	%rax, %r13
	movq	%rax, %r14
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_pr_debug
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.1:
	movq	24(%r14), %rdi
	callq	_pm_runtime_get_sync
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movq	_IS_ST_PWR_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %r13
	movq	%r13, %rsi
	callq	_set_bit
	movq	%r14, %rdi
	callq	_fimc_is_start_firmware
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movq	_IS_ST_PWR_SUBIP_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_set_bit
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fimc_is_hw_initialize          ## TAILCALL
LBB0_6:
	movq	_IS_ST_PWR_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %r13
	movq	%r13, %rsi
	callq	_test_bit
	xorl	%r12d, %r12d
	testq	%rax, %rax
	jne	LBB0_10
## %bb.7:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_fimc_is_hw_close_sensor
	movq	_IS_ST_OPEN_SENSOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FIMC_IS_CONFIG_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_fimc_is_wait_event
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_8
LBB0_10:
	movq	_IS_ST_PWR_SUBIP_ON@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	%r13, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	movq	%r14, %rdi
	callq	_fimc_is_hw_subip_power_off
	movl	(%rbx), %esi
	movq	_FIMC_IS_CONFIG_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_fimc_is_wait_event
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_12
LBB0_13:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_fimc_is_cpu_set_power
	movq	24(%r14), %rdi
	callq	_pm_runtime_put_sync
	movq	_IS_ST_PWR_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_clear_bit
	movq	_IS_ST_INIT_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_clear_bit
	movq	$0, 8(%r14)
	movq	(%r14), %rax
	movq	16(%r14), %rcx
	movq	(%rcx,%rax,8), %rax
	movq	$0, (%rax)
	movq	(%r14), %rax
	movq	(%rcx,%rax,8), %rax
	movq	$0, 8(%rax)
	movq	_IS_ST_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_set_bit
	xorl	%eax, %eax
	callq	_wmb
	jmp	LBB0_14
LBB0_2:
	movl	%eax, %r12d
	jmp	LBB0_14
LBB0_4:
	movl	%eax, %r12d
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_v4l2_err
	movq	24(%r14), %rdi
	callq	_pm_runtime_put
	jmp	LBB0_14
LBB0_12:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_9
LBB0_8:
	leaq	L_.str.2(%rip), %rsi
LBB0_9:
	movq	%r15, %rdi
	callq	_v4l2_err
LBB0_14:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"on: %d\n"

	.comm	_IS_ST_PWR_ON,4,2               ## @IS_ST_PWR_ON
L_.str.1:                               ## @.str.1
	.asciz	"firmware booting failed\n"

	.comm	_IS_ST_PWR_SUBIP_ON,4,2         ## @IS_ST_PWR_SUBIP_ON
	.comm	_IS_ST_OPEN_SENSOR,4,2          ## @IS_ST_OPEN_SENSOR
	.comm	_FIMC_IS_CONFIG_TIMEOUT,4,2     ## @FIMC_IS_CONFIG_TIMEOUT
L_.str.2:                               ## @.str.2
	.asciz	"sensor close timeout\n"

L_.str.3:                               ## @.str.3
	.asciz	"sub-IP power off timeout\n"

	.comm	_IS_ST_INIT_DONE,4,2            ## @IS_ST_INIT_DONE
	.comm	_IS_ST_IDLE,4,2                 ## @IS_ST_IDLE
	.no_dead_strip	_fimc_isp_subdev_s_power
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fimc_isp_subdev_s_power
_fimc_isp_subdev_s_power:               ; @fimc_isp_subdev_s_power
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x1
	mov	x20, x0
	bl	_v4l2_get_subdevdata
	bl	_fimc_isp_to_is
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_pr_debug
	cbz	w21, LBB0_4
; %bb.1:
	ldr	x0, [x19, #24]
	bl	_pm_runtime_get_sync
	tbnz	w0, #31, LBB0_6
; %bb.2:
Lloh2:
	adrp	x8, _IS_ST_PWR_ON@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IS_ST_PWR_ON@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	add	x22, x19, #8
	mov	x1, x22
	bl	_set_bit
	mov	x0, x19
	bl	_fimc_is_start_firmware
	tbnz	w0, #31, LBB0_7
; %bb.3:
Lloh5:
	adrp	x8, _IS_ST_PWR_SUBIP_ON@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IS_ST_PWR_SUBIP_ON@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_set_bit
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_fimc_is_hw_initialize
LBB0_4:
Lloh8:
	adrp	x23, _IS_ST_PWR_ON@GOTPAGE
Lloh9:
	ldr	x23, [x23, _IS_ST_PWR_ON@GOTPAGEOFF]
	ldr	w0, [x23]
	add	x22, x19, #8
	mov	x1, x22
	bl	_test_bit
	cbz	x0, LBB0_8
; %bb.5:
	mov	w21, #0
	b	LBB0_9
LBB0_6:
	mov	x21, x0
	b	LBB0_15
LBB0_7:
	mov	x21, x0
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_v4l2_err
	ldr	x0, [x19, #24]
	bl	_pm_runtime_put
	b	LBB0_15
LBB0_8:
	mov	x0, x19
	mov	w1, #0
	bl	_fimc_is_hw_close_sensor
Lloh12:
	adrp	x8, _IS_ST_OPEN_SENSOR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IS_ST_OPEN_SENSOR@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _FIMC_IS_CONFIG_TIMEOUT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FIMC_IS_CONFIG_TIMEOUT@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_fimc_is_wait_event
	mov	x21, x0
	tbnz	w0, #31, LBB0_13
LBB0_9:
Lloh18:
	adrp	x24, _IS_ST_PWR_SUBIP_ON@GOTPAGE
Lloh19:
	ldr	x24, [x24, _IS_ST_PWR_SUBIP_ON@GOTPAGEOFF]
	ldr	w0, [x24]
	mov	x1, x22
	bl	_test_bit
	cbz	x0, LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_fimc_is_hw_subip_power_off
	ldr	w1, [x24]
Lloh20:
	adrp	x8, _FIMC_IS_CONFIG_TIMEOUT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _FIMC_IS_CONFIG_TIMEOUT@GOTPAGEOFF]
Lloh22:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_fimc_is_wait_event
	mov	x21, x0
	tbnz	w0, #31, LBB0_12
LBB0_11:
	mov	x0, x19
	mov	w1, #0
	bl	_fimc_is_cpu_set_power
	ldr	x0, [x19, #24]
	bl	_pm_runtime_put_sync
	ldr	w0, [x23]
	mov	x1, x22
	bl	_clear_bit
Lloh23:
	adrp	x8, _IS_ST_INIT_DONE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _IS_ST_INIT_DONE@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_clear_bit
	str	xzr, [x19, #8]
	ldr	x8, [x19, #16]
	ldr	x9, [x19]
	ldr	x9, [x8, x9, lsl #3]
	str	xzr, [x9]
	ldr	x9, [x19]
	ldr	x8, [x8, x9, lsl #3]
	str	xzr, [x8, #8]
Lloh26:
	adrp	x8, _IS_ST_IDLE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _IS_ST_IDLE@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_set_bit
	bl	_wmb
	b	LBB0_15
LBB0_12:
Lloh29:
	adrp	x1, l_.str.3@PAGE
Lloh30:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_14
LBB0_13:
Lloh31:
	adrp	x1, l_.str.2@PAGE
Lloh32:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_14:
	mov	x0, x20
	bl	_v4l2_err
LBB0_15:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"on: %d\n"

	.comm	_IS_ST_PWR_ON,4,2               ; @IS_ST_PWR_ON
l_.str.1:                               ; @.str.1
	.asciz	"firmware booting failed\n"

	.comm	_IS_ST_PWR_SUBIP_ON,4,2         ; @IS_ST_PWR_SUBIP_ON
	.comm	_IS_ST_OPEN_SENSOR,4,2          ; @IS_ST_OPEN_SENSOR
	.comm	_FIMC_IS_CONFIG_TIMEOUT,4,2     ; @FIMC_IS_CONFIG_TIMEOUT
l_.str.2:                               ; @.str.2
	.asciz	"sensor close timeout\n"

l_.str.3:                               ; @.str.3
	.asciz	"sub-IP power off timeout\n"

	.comm	_IS_ST_INIT_DONE,4,2            ; @IS_ST_INIT_DONE
	.comm	_IS_ST_IDLE,4,2                 ; @IS_ST_IDLE
	.no_dead_strip	_fimc_isp_subdev_s_power
.subsections_via_symbols
