	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fimc_is_hw_initialize          ## -- Begin function fimc_is_hw_initialize
	.p2align	4, 0x90
_fimc_is_hw_initialize:                 ## @fimc_is_hw_initialize
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	56(%rdi), %rsi
	movq	64(%rdi), %r14
	callq	_fimc_is_hw_open_sensor
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	%r12, %rdi
	callq	_fimc_is_hw_get_setfile_addr
	movq	_IS_ST_SETFILE_LOADED@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_FIMC_IS_CONFIG_TIMEOUT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_fimc_is_wait_event
	testl	%eax, %eax
	js	LBB0_3
## %bb.5:
	movq	24(%r12), %rsi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
	movq	_FIMC_IS_SETFILE_6A3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_fimc_is_load_setfile
	movl	(%r15), %edi
	leaq	4(%r12), %rsi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	callq	_clear_bit
	movq	%r12, %rdi
	callq	_fimc_is_hw_load_setfile
	movl	(%r15), %esi
	movl	(%rbx), %ecx
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_fimc_is_wait_event
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movq	16(%r12), %rdx
	movq	24(%r12), %rsi
	leaq	L_.str.3(%rip), %rdi
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_pr_debug
	movl	48(%r12), %esi
	leaq	L_.str.4(%rip), %rdi
	callq	_pr_info
	movq	40(%r12), %rax
	movq	(%rax), %rax
	movq	_MAX_SHARED_COUNT@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movq	-8(%rax,%rcx,8), %rax
	movq	_FIMC_IS_MAGIC_NUMBER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.9:
	movq	_FIMC_IS_SHARED_REGION_OFFSET@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%r12,%rax,4), %rsi
	addq	$36, %rsi
	leaq	32(%r12), %rdx
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
	movq	$0, 8(%r12)
	movq	%r12, %rdi
	callq	_fimc_is_hw_stream_off
	movq	_IS_ST_STREAM_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %ecx
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_fimc_is_wait_event
	testl	%eax, %eax
	js	LBB0_10
## %bb.11:
	movl	(%r12), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leaq	_fimc_is_hw_initialize.config_ids(%rip), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_16
## %bb.12:
	xorl	%ebx, %ebx
	leaq	_fimc_is_hw_initialize.config_ids(%rip), %r15
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %eax
	movl	%eax, (%r12)
	movq	%r12, %rdi
	callq	_fimc_is_set_initial_params
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_fimc_is_itf_s_param
	testl	%eax, %eax
	js	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_14 Depth=1
	incq	%rbx
	leaq	_fimc_is_hw_initialize.config_ids(%rip), %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$4, %r15
	cmpq	%rax, %rbx
	jl	LBB0_14
LBB0_16:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r12)
	movq	_IS_ST_INIT_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_set_bit
	movl	(%r12), %edx
	leaq	L_.str.8(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	xorl	%r13d, %r13d
	jmp	LBB0_17
LBB0_1:
	movl	%eax, %r13d
	jmp	LBB0_17
LBB0_3:
	movl	%eax, %r13d
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_4
LBB0_6:
	movl	%eax, %r13d
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_4
LBB0_8:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_17
LBB0_10:
	movl	%eax, %r13d
	leaq	L_.str.7(%rip), %rsi
LBB0_4:
	movq	%r14, %rdi
	callq	_dev_err
LBB0_17:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movl	%eax, %r13d
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r12)
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @fimc_is_hw_initialize.config_ids
_fimc_is_hw_initialize.config_ids:
	.long	129                             ## 0x81
	.long	128                             ## 0x80
	.long	131                             ## 0x83
	.long	130                             ## 0x82

	.comm	_IS_ST_SETFILE_LOADED,4,2       ## @IS_ST_SETFILE_LOADED
	.comm	_FIMC_IS_CONFIG_TIMEOUT,4,2     ## @FIMC_IS_CONFIG_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"get setfile address timed out\n"

L_.str.1:                               ## @.str.1
	.asciz	"setfile.base: %#x\n"

	.comm	_FIMC_IS_SETFILE_6A3,4,2        ## @FIMC_IS_SETFILE_6A3
L_.str.2:                               ## @.str.2
	.asciz	"loading setfile timed out\n"

L_.str.3:                               ## @.str.3
	.asciz	"setfile: base: %#x, size: %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"FIMC-IS Setfile info: %s\n"

	.comm	_MAX_SHARED_COUNT,4,2           ## @MAX_SHARED_COUNT
	.comm	_FIMC_IS_MAGIC_NUMBER,8,3       ## @FIMC_IS_MAGIC_NUMBER
L_.str.5:                               ## @.str.5
	.asciz	"magic number error!\n"

	.comm	_EIO,4,2                        ## @EIO
L_.str.6:                               ## @.str.6
	.asciz	"shared region: %pad, parameter region: %pad\n"

	.comm	_FIMC_IS_SHARED_REGION_OFFSET,4,2 ## @FIMC_IS_SHARED_REGION_OFFSET
	.comm	_IS_ST_STREAM_OFF,4,2           ## @IS_ST_STREAM_OFF
L_.str.7:                               ## @.str.7
	.asciz	"stream off timeout\n"

	.comm	_IS_ST_INIT_DONE,4,2            ## @IS_ST_INIT_DONE
L_.str.8:                               ## @.str.8
	.asciz	"initialization sequence completed (%d)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fimc_is_hw_initialize          ; -- Begin function fimc_is_hw_initialize
	.p2align	2
_fimc_is_hw_initialize:                 ; @fimc_is_hw_initialize
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x0
	ldp	x1, x19, [x0, #56]
	bl	_fimc_is_hw_open_sensor
	tbnz	w0, #31, LBB0_10
; %bb.1:
	mov	x0, x20
	bl	_fimc_is_hw_get_setfile_addr
Lloh0:
	adrp	x24, _IS_ST_SETFILE_LOADED@GOTPAGE
Lloh1:
	ldr	x24, [x24, _IS_ST_SETFILE_LOADED@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh2:
	adrp	x23, _FIMC_IS_CONFIG_TIMEOUT@GOTPAGE
Lloh3:
	ldr	x23, [x23, _FIMC_IS_CONFIG_TIMEOUT@GOTPAGEOFF]
	ldr	w3, [x23]
	mov	x0, x20
	mov	w2, #1
	bl	_fimc_is_wait_event
	tbnz	w0, #31, LBB0_11
; %bb.2:
	ldr	x1, [x20, #24]
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
Lloh6:
	adrp	x8, _FIMC_IS_SETFILE_6A3@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FIMC_IS_SETFILE_6A3@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_fimc_is_load_setfile
	ldr	w0, [x24]
	add	x21, x20, #4
	mov	x1, x21
	bl	_clear_bit
	mov	x0, x20
	bl	_fimc_is_hw_load_setfile
	ldr	w1, [x24]
	ldr	w3, [x23]
	mov	x0, x20
	mov	w2, #1
	bl	_fimc_is_wait_event
	tbnz	w0, #31, LBB0_12
; %bb.3:
	ldp	x8, x1, [x20, #16]
	str	x8, [sp]
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_debug
	ldr	w1, [x20, #48]
Lloh11:
	adrp	x0, l_.str.4@PAGE
Lloh12:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_pr_info
	ldr	x8, [x20, #40]
	ldr	x8, [x8]
Lloh13:
	adrp	x9, _MAX_SHARED_COUNT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _MAX_SHARED_COUNT@GOTPAGEOFF]
Lloh15:
	ldrsw	x9, [x9]
	add	x8, x8, x9, lsl #3
	ldur	x8, [x8, #-8]
Lloh16:
	adrp	x9, _FIMC_IS_MAGIC_NUMBER@GOTPAGE
Lloh17:
	ldr	x9, [x9, _FIMC_IS_MAGIC_NUMBER@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.4:
Lloh19:
	adrp	x8, _FIMC_IS_SHARED_REGION_OFFSET@GOTPAGE
Lloh20:
	ldr	x8, [x8, _FIMC_IS_SHARED_REGION_OFFSET@GOTPAGEOFF]
Lloh21:
	ldrsw	x8, [x8]
	add	x8, x20, x8, lsl #2
	add	x1, x8, #36
	add	x8, x20, #32
	str	x8, [sp]
Lloh22:
	adrp	x0, l_.str.6@PAGE
Lloh23:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_pr_debug
	str	xzr, [x20, #8]
	mov	x0, x20
	bl	_fimc_is_hw_stream_off
Lloh24:
	adrp	x8, _IS_ST_STREAM_OFF@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IS_ST_STREAM_OFF@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	ldr	w3, [x23]
	mov	x0, x20
	mov	w2, #1
	bl	_fimc_is_wait_event
	tbnz	w0, #31, LBB0_14
; %bb.5:
	ldr	w24, [x20]
Lloh27:
	adrp	x23, _fimc_is_hw_initialize.config_ids@PAGE
Lloh28:
	add	x23, x23, _fimc_is_hw_initialize.config_ids@PAGEOFF
	mov	x0, x23
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.6:
	mov	x25, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23, x25, lsl #2]
	str	w8, [x20]
	mov	x0, x20
	bl	_fimc_is_set_initial_params
	mov	x0, x20
	mov	w1, #1
	bl	_fimc_is_itf_s_param
	tbnz	w0, #31, LBB0_17
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x25, x25, #1
	mov	x0, x23
	bl	_ARRAY_SIZE
	cmp	x25, w0, sxtw
	b.lt	LBB0_7
LBB0_9:
	str	w24, [x20]
Lloh29:
	adrp	x8, _IS_ST_INIT_DONE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _IS_ST_INIT_DONE@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_set_bit
	ldr	w2, [x20]
Lloh32:
	adrp	x1, l_.str.8@PAGE
Lloh33:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	w22, #0
	b	LBB0_16
LBB0_10:
	mov	x22, x0
	b	LBB0_16
LBB0_11:
	mov	x22, x0
Lloh34:
	adrp	x1, l_.str@PAGE
Lloh35:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_15
LBB0_12:
	mov	x22, x0
Lloh36:
	adrp	x1, l_.str.2@PAGE
Lloh37:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_15
LBB0_13:
Lloh38:
	adrp	x1, l_.str.5@PAGE
Lloh39:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh40:
	adrp	x8, _EIO@GOTPAGE
Lloh41:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_16
LBB0_14:
	mov	x22, x0
Lloh43:
	adrp	x1, l_.str.7@PAGE
Lloh44:
	add	x1, x1, l_.str.7@PAGEOFF
LBB0_15:
	mov	x0, x19
	bl	_dev_err
LBB0_16:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_17:
	mov	x22, x0
	str	w24, [x20]
	b	LBB0_16
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @fimc_is_hw_initialize.config_ids
_fimc_is_hw_initialize.config_ids:
	.long	129                             ; 0x81
	.long	128                             ; 0x80
	.long	131                             ; 0x83
	.long	130                             ; 0x82

	.comm	_IS_ST_SETFILE_LOADED,4,2       ; @IS_ST_SETFILE_LOADED
	.comm	_FIMC_IS_CONFIG_TIMEOUT,4,2     ; @FIMC_IS_CONFIG_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"get setfile address timed out\n"

l_.str.1:                               ; @.str.1
	.asciz	"setfile.base: %#x\n"

	.comm	_FIMC_IS_SETFILE_6A3,4,2        ; @FIMC_IS_SETFILE_6A3
l_.str.2:                               ; @.str.2
	.asciz	"loading setfile timed out\n"

l_.str.3:                               ; @.str.3
	.asciz	"setfile: base: %#x, size: %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"FIMC-IS Setfile info: %s\n"

	.comm	_MAX_SHARED_COUNT,4,2           ; @MAX_SHARED_COUNT
	.comm	_FIMC_IS_MAGIC_NUMBER,8,3       ; @FIMC_IS_MAGIC_NUMBER
l_.str.5:                               ; @.str.5
	.asciz	"magic number error!\n"

	.comm	_EIO,4,2                        ; @EIO
l_.str.6:                               ; @.str.6
	.asciz	"shared region: %pad, parameter region: %pad\n"

	.comm	_FIMC_IS_SHARED_REGION_OFFSET,4,2 ; @FIMC_IS_SHARED_REGION_OFFSET
	.comm	_IS_ST_STREAM_OFF,4,2           ; @IS_ST_STREAM_OFF
l_.str.7:                               ; @.str.7
	.asciz	"stream off timeout\n"

	.comm	_IS_ST_INIT_DONE,4,2            ; @IS_ST_INIT_DONE
l_.str.8:                               ; @.str.8
	.asciz	"initialization sequence completed (%d)\n"

.subsections_via_symbols
