	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fimc_is_cpu_set_power          ## -- Begin function fimc_is_cpu_set_power
	.p2align	4, 0x90
_fimc_is_cpu_set_power:                 ## @fimc_is_cpu_set_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	testl	%esi, %esi
	je	LBB0_2
## %bb.1:
	movq	_REG_WDT_ISP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	movq	%r15, %rsi
	callq	_mcuctl_write
	movl	(%r15), %edi
	movq	_MCUCTL_REG_BBOAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rsi
	callq	_mcuctl_write
	movq	_REG_PMU_ISP_ARM_OPTION@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$98304, %edi                    ## imm = 0x18000
	movq	%r15, %rsi
	callq	_pmuisp_write
	movq	_REG_PMU_ISP_ARM_CONFIGURATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %edi
	movq	%r15, %rsi
	callq	_pmuisp_write
	jmp	LBB0_7
LBB0_2:
	movq	_FIMC_IS_POWER_ON_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_REG_PMU_ISP_ARM_OPTION@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$65536, %edi                    ## imm = 0x10000
	movq	%r15, %rsi
	callq	_pmuisp_write
	movq	_REG_PMU_ISP_ARM_CONFIGURATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	movq	%r15, %rsi
	callq	_pmuisp_write
	movq	_REG_PMU_ISP_ARM_STATUS@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_pmuisp_read
	testb	$1, %al
	je	LBB0_7
## %bb.3:
	incl	%ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	decl	%ebx
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, %edi
	callq	_udelay
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_pmuisp_read
	testb	$1, %al
	jne	LBB0_4
	jmp	LBB0_7
LBB0_5:
	movq	_ETIME@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_7:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FIMC_IS_POWER_ON_TIMEOUT,4,2   ## @FIMC_IS_POWER_ON_TIMEOUT
	.comm	_REG_WDT_ISP,4,2                ## @REG_WDT_ISP
	.comm	_MCUCTL_REG_BBOAR,4,2           ## @MCUCTL_REG_BBOAR
	.comm	_REG_PMU_ISP_ARM_OPTION,4,2     ## @REG_PMU_ISP_ARM_OPTION
	.comm	_REG_PMU_ISP_ARM_CONFIGURATION,4,2 ## @REG_PMU_ISP_ARM_CONFIGURATION
	.comm	_REG_PMU_ISP_ARM_STATUS,4,2     ## @REG_PMU_ISP_ARM_STATUS
	.comm	_ETIME,4,2                      ## @ETIME
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fimc_is_cpu_set_power          ; -- Begin function fimc_is_cpu_set_power
	.p2align	2
_fimc_is_cpu_set_power:                 ; @fimc_is_cpu_set_power
	.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
	cbz	w1, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _REG_WDT_ISP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_WDT_ISP@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w0, #0
	mov	x1, x19
	bl	_mcuctl_write
	ldr	w0, [x19]
Lloh3:
	adrp	x8, _MCUCTL_REG_BBOAR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MCUCTL_REG_BBOAR@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x1, x19
	bl	_mcuctl_write
Lloh6:
	adrp	x8, _REG_PMU_ISP_ARM_OPTION@GOTPAGE
Lloh7:
	ldr	x8, [x8, _REG_PMU_ISP_ARM_OPTION@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	w0, #98304
	mov	x1, x19
	bl	_pmuisp_write
Lloh9:
	adrp	x8, _REG_PMU_ISP_ARM_CONFIGURATION@GOTPAGE
Lloh10:
	ldr	x8, [x8, _REG_PMU_ISP_ARM_CONFIGURATION@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	w0, #1
	mov	x1, x19
	bl	_pmuisp_write
LBB0_2:
	mov	w0, #0
LBB0_3:
	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
LBB0_4:
Lloh12:
	adrp	x8, _FIMC_IS_POWER_ON_TIMEOUT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FIMC_IS_POWER_ON_TIMEOUT@GOTPAGEOFF]
Lloh14:
	ldr	w21, [x8]
Lloh15:
	adrp	x8, _REG_PMU_ISP_ARM_OPTION@GOTPAGE
Lloh16:
	ldr	x8, [x8, _REG_PMU_ISP_ARM_OPTION@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	w0, #65536
	mov	x1, x19
	bl	_pmuisp_write
Lloh18:
	adrp	x8, _REG_PMU_ISP_ARM_CONFIGURATION@GOTPAGE
Lloh19:
	ldr	x8, [x8, _REG_PMU_ISP_ARM_CONFIGURATION@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	w0, #0
	mov	x1, x19
	bl	_pmuisp_write
Lloh21:
	adrp	x20, _REG_PMU_ISP_ARM_STATUS@GOTPAGE
Lloh22:
	ldr	x20, [x20, _REG_PMU_ISP_ARM_STATUS@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_pmuisp_read
	mov	x8, x0
	mov	w0, #0
	tbz	w8, #0, LBB0_3
; %bb.5:
	add	w21, w21, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	subs	w21, w21, #1
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #1
	bl	_udelay
	ldr	w1, [x20]
	mov	x0, x19
	bl	_pmuisp_read
	tbnz	w0, #0, LBB0_6
	b	LBB0_2
LBB0_8:
Lloh23:
	adrp	x8, _ETIME@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ETIME@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_FIMC_IS_POWER_ON_TIMEOUT,4,2   ; @FIMC_IS_POWER_ON_TIMEOUT
	.comm	_REG_WDT_ISP,4,2                ; @REG_WDT_ISP
	.comm	_MCUCTL_REG_BBOAR,4,2           ; @MCUCTL_REG_BBOAR
	.comm	_REG_PMU_ISP_ARM_OPTION,4,2     ; @REG_PMU_ISP_ARM_OPTION
	.comm	_REG_PMU_ISP_ARM_CONFIGURATION,4,2 ; @REG_PMU_ISP_ARM_CONFIGURATION
	.comm	_REG_PMU_ISP_ARM_STATUS,4,2     ; @REG_PMU_ISP_ARM_STATUS
	.comm	_ETIME,4,2                      ; @ETIME
.subsections_via_symbols
