	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fimc_lite_reinit
_fimc_lite_reinit:                      ## @fimc_lite_reinit
	.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
	movl	%esi, %r15d
	movq	%rdi, %r12
	addq	$8, %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	movq	_ST_SENSOR_STREAM@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movl	$1, %r13d
	movl	%eax, %ecx
	shll	%cl, %r13d
	movl	(%r12), %ebx
	movq	_ST_FLITE_RUN@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	$1, %edx
	shll	%cl, %edx
	movl	$1, %esi
	movq	_ST_FLITE_OFF@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movq	_ST_FLITE_STREAM@GOTPCREL(%rip), %rdi
	movb	(%rdi), %dil
	btsl	%eax, %edx
	btsl	%ecx, %edx
	btsl	%edi, %edx
	notl	%edx
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	andl	%ebx, %edx
	movl	%edx, (%r12)
	testl	%r15d, %r15d
	je	LBB0_2
## %bb.1:
	movq	_ST_FLITE_SUSPENDED@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	btsl	%eax, %edx
	movl	%edx, (%r12)
	jmp	LBB0_5
LBB0_2:
	movq	_ST_FLITE_PENDING@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movq	_ST_FLITE_SUSPENDED@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %esi
	btsl	%eax, %esi
	notl	%esi
	andl	%esi, %edx
	movl	%edx, (%r12)
	leaq	16(%r12), %rbx
	movq	%rbx, %rdi
	callq	_list_empty
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movq	_VB2_BUF_STATE_ERROR@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_fimc_lite_pending_queue_pop
	movl	(%r14), %esi
	movq	%rax, %rdi
	callq	_vb2_buffer_done
	movq	%rbx, %rdi
	callq	_list_empty
	testl	%eax, %eax
	je	LBB0_4
LBB0_5:
	leaq	12(%r12), %rbx
	movq	%rbx, %rdi
	callq	_list_empty
	testl	%eax, %eax
	je	LBB0_6
LBB0_11:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	movq	%r12, %rdi
	callq	_flite_hw_reset
	testl	%r13d, -44(%rbp)                ## 4-byte Folded Reload
	je	LBB0_12
## %bb.13:
	addq	$4, %r12
	movq	_set_stream@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fimc_pipeline_call             ## TAILCALL
LBB0_6:
	movq	_VB2_BUF_STATE_ERROR@GOTPCREL(%rip), %r14
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r14), %esi
	movq	%rax, %rdi
	callq	_vb2_buffer_done
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%rbx, %rdi
	callq	_list_empty
	testl	%eax, %eax
	jne	LBB0_11
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_fimc_lite_active_queue_pop
	testl	%r15d, %r15d
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_fimc_lite_pending_queue_add
	jmp	LBB0_10
LBB0_12:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ST_SENSOR_STREAM,4,2           ## @ST_SENSOR_STREAM
	.comm	_ST_FLITE_RUN,4,2               ## @ST_FLITE_RUN
	.comm	_ST_FLITE_OFF,4,2               ## @ST_FLITE_OFF
	.comm	_ST_FLITE_STREAM,4,2            ## @ST_FLITE_STREAM
	.comm	_ST_FLITE_SUSPENDED,4,2         ## @ST_FLITE_SUSPENDED
	.comm	_ST_FLITE_PENDING,4,2           ## @ST_FLITE_PENDING
	.comm	_VB2_BUF_STATE_ERROR,4,2        ## @VB2_BUF_STATE_ERROR
	.comm	_set_stream,4,2                 ## @set_stream
	.no_dead_strip	_fimc_lite_reinit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fimc_lite_reinit
_fimc_lite_reinit:                      ; @fimc_lite_reinit
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x1
	mov	x19, x0
	add	x20, x0, #8
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	w23, [x19]
Lloh0:
	adrp	x8, _ST_SENSOR_STREAM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ST_SENSOR_STREAM@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	mov	w8, #1
	lsl	w24, w8, w9
Lloh3:
	adrp	x9, _ST_FLITE_RUN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ST_FLITE_RUN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _ST_FLITE_OFF@GOTPAGE
Lloh7:
	ldr	x10, [x10, _ST_FLITE_OFF@GOTPAGEOFF]
	lsl	w9, w8, w9
Lloh8:
	ldr	w10, [x10]
	lsl	w10, w8, w10
Lloh9:
	adrp	x11, _ST_FLITE_STREAM@GOTPAGE
Lloh10:
	ldr	x11, [x11, _ST_FLITE_STREAM@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	lsl	w11, w8, w11
	orr	w9, w9, w24
	orr	w9, w9, w10
	orr	w9, w9, w11
	bic	w9, w23, w9
	str	w9, [x19]
	cbz	w21, LBB0_2
; %bb.1:
Lloh12:
	adrp	x10, _ST_FLITE_SUSPENDED@GOTPAGE
Lloh13:
	ldr	x10, [x10, _ST_FLITE_SUSPENDED@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	lsl	w8, w8, w10
	orr	w8, w8, w9
	str	w8, [x19]
	b	LBB0_5
LBB0_2:
Lloh15:
	adrp	x10, _ST_FLITE_PENDING@GOTPAGE
Lloh16:
	ldr	x10, [x10, _ST_FLITE_PENDING@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	lsl	w10, w8, w10
Lloh18:
	adrp	x11, _ST_FLITE_SUSPENDED@GOTPAGE
Lloh19:
	ldr	x11, [x11, _ST_FLITE_SUSPENDED@GOTPAGEOFF]
Lloh20:
	ldr	w11, [x11]
	lsl	w8, w8, w11
	orr	w8, w8, w10
	bic	w8, w9, w8
	mov	x22, x19
	str	w8, [x22], #16
	mov	x0, x22
	bl	_list_empty
	cbnz	w0, LBB0_5
; %bb.3:
Lloh21:
	adrp	x25, _VB2_BUF_STATE_ERROR@GOTPAGE
Lloh22:
	ldr	x25, [x25, _VB2_BUF_STATE_ERROR@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_fimc_lite_pending_queue_pop
	ldr	w1, [x25]
	bl	_vb2_buffer_done
	mov	x0, x22
	bl	_list_empty
	cbz	w0, LBB0_4
LBB0_5:
	and	w23, w24, w23
	add	x22, x19, #12
	mov	x0, x22
	bl	_list_empty
	cbz	w0, LBB0_8
LBB0_6:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	bl	_flite_hw_reset
	cbz	w23, LBB0_13
; %bb.7:
	add	x0, x19, #4
Lloh23:
	adrp	x8, _set_stream@GOTPAGE
Lloh24:
	ldr	x8, [x8, _set_stream@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	w2, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_fimc_pipeline_call
LBB0_8:
Lloh26:
	adrp	x24, _VB2_BUF_STATE_ERROR@GOTPAGE
Lloh27:
	ldr	x24, [x24, _VB2_BUF_STATE_ERROR@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	ldr	w1, [x24]
	mov	x0, x2
	bl	_vb2_buffer_done
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x22
	bl	_list_empty
	cbnz	w0, LBB0_6
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_fimc_lite_active_queue_pop
	mov	x2, x0
	cbz	w21, LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x19
	mov	x1, x2
	bl	_fimc_lite_pending_queue_add
	b	LBB0_10
LBB0_13:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_ST_SENSOR_STREAM,4,2           ; @ST_SENSOR_STREAM
	.comm	_ST_FLITE_RUN,4,2               ; @ST_FLITE_RUN
	.comm	_ST_FLITE_OFF,4,2               ; @ST_FLITE_OFF
	.comm	_ST_FLITE_STREAM,4,2            ; @ST_FLITE_STREAM
	.comm	_ST_FLITE_SUSPENDED,4,2         ; @ST_FLITE_SUSPENDED
	.comm	_ST_FLITE_PENDING,4,2           ; @ST_FLITE_PENDING
	.comm	_VB2_BUF_STATE_ERROR,4,2        ; @VB2_BUF_STATE_ERROR
	.comm	_set_stream,4,2                 ; @set_stream
	.no_dead_strip	_fimc_lite_reinit
.subsections_via_symbols
