	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fimc_is_start_firmware         ## -- Begin function fimc_is_start_firmware
	.p2align	4, 0x90
_fimc_is_start_firmware:                ## @fimc_is_start_firmware
	.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), %rax
	movq	16(%rdi), %r14
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r15
	movl	8(%rdi), %edi
	movl	(%rax), %edx
	movl	4(%rax), %esi
	callq	_memcpy
	xorl	%eax, %eax
	callq	_wmb
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_fimc_is_cpu_set_power
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	_IS_ST_A5_PWR_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_FIMC_IS_FW_LOAD_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	$1, %edx
	movl	%eax, %ecx
	callq	_fimc_is_wait_event
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_3:
	movl	%eax, %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"firmware is not loaded\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IS_ST_A5_PWR_ON,4,2            ## @IS_ST_A5_PWR_ON
	.comm	_FIMC_IS_FW_LOAD_TIMEOUT,4,2    ## @FIMC_IS_FW_LOAD_TIMEOUT
L_.str.1:                               ## @.str.1
	.asciz	"FIMC-IS CPU power on failed\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fimc_is_start_firmware         ; -- Begin function fimc_is_start_firmware
	.p2align	2
_fimc_is_start_firmware:                ; @fimc_is_start_firmware
	.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
	ldr	x19, [x0, #16]
	ldr	x8, [x0]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x20, x0
	ldr	w0, [x0, #8]
	ldp	w2, w1, [x8]
	bl	_memcpy
	bl	_wmb
	mov	x0, x20
	mov	w1, #1
	bl	_fimc_is_cpu_set_power
	tbnz	w0, #31, LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _IS_ST_A5_PWR_ON@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IS_ST_A5_PWR_ON@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x8, _FIMC_IS_FW_LOAD_TIMEOUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FIMC_IS_FW_LOAD_TIMEOUT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	mov	x3, x0
	mov	x0, x20
	mov	x1, x21
	mov	w2, #1
	bl	_fimc_is_wait_event
	mov	x21, x0
	tbz	w0, #31, LBB0_6
; %bb.3:
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_6
LBB0_4:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_6
LBB0_5:
	mov	x21, x0
LBB0_6:
	mov	x0, x21
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"firmware is not loaded\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IS_ST_A5_PWR_ON,4,2            ; @IS_ST_A5_PWR_ON
	.comm	_FIMC_IS_FW_LOAD_TIMEOUT,4,2    ; @FIMC_IS_FW_LOAD_TIMEOUT
l_.str.1:                               ; @.str.1
	.asciz	"FIMC-IS CPU power on failed\n"

.subsections_via_symbols
