	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function camif_reinitialize
_camif_reinitialize:                    ## @camif_reinitialize
	.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
	movq	%rdi, %r15
	movq	16(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	(%r15), %ebx
	movq	_ST_VP_SENSOR_STREAMING@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_ST_VP_PENDING@GOTPCREL(%rip), %rax
	movq	_ST_VP_RUNNING@GOTPCREL(%rip), %rcx
	movq	_ST_VP_OFF@GOTPCREL(%rip), %rdx
	movq	_ST_VP_ABORTING@GOTPCREL(%rip), %rsi
	movq	_ST_VP_STREAMING@GOTPCREL(%rip), %rdi
	movq	_ST_VP_LASTIRQ@GOTPCREL(%rip), %r8
	movl	(%rax), %eax
	orl	%r13d, %eax
	orl	(%rcx), %eax
	orl	(%rdx), %eax
	orl	(%rsi), %eax
	orl	(%rdi), %eax
	orl	(%r8), %eax
	notl	%eax
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	andl	%ebx, %eax
	movl	%eax, (%r15)
	leaq	8(%r15), %rbx
	movq	%rbx, %rdi
	callq	_list_empty
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movq	_VB2_BUF_STATE_ERROR@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_camif_pending_queue_pop
	movl	(%r12), %esi
	movq	%rax, %rdi
	callq	_vb2_buffer_done
	movq	%rbx, %rdi
	callq	_list_empty
	testl	%eax, %eax
	je	LBB0_2
LBB0_3:
	leaq	4(%r15), %rbx
	movq	%rbx, %rdi
	callq	_list_empty
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	movq	_VB2_BUF_STATE_ERROR@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_camif_active_queue_pop
	movl	(%r12), %esi
	movq	%rax, %rdi
	callq	_vb2_buffer_done
	movq	%rbx, %rdi
	callq	_list_empty
	testl	%eax, %eax
	je	LBB0_5
LBB0_6:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	testl	%r13d, -44(%rbp)                ## 4-byte Folded Reload
	je	LBB0_7
## %bb.8:
	movq	%r14, %rdi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sensor_set_streaming           ## TAILCALL
LBB0_7:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ST_VP_SENSOR_STREAMING,4,2     ## @ST_VP_SENSOR_STREAMING
	.comm	_ST_VP_PENDING,4,2              ## @ST_VP_PENDING
	.comm	_ST_VP_RUNNING,4,2              ## @ST_VP_RUNNING
	.comm	_ST_VP_OFF,4,2                  ## @ST_VP_OFF
	.comm	_ST_VP_ABORTING,4,2             ## @ST_VP_ABORTING
	.comm	_ST_VP_STREAMING,4,2            ## @ST_VP_STREAMING
	.comm	_ST_VP_LASTIRQ,4,2              ## @ST_VP_LASTIRQ
	.comm	_VB2_BUF_STATE_ERROR,4,2        ## @VB2_BUF_STATE_ERROR
	.no_dead_strip	_camif_reinitialize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function camif_reinitialize
_camif_reinitialize:                    ; @camif_reinitialize
	.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	x20, x0
	ldr	x19, [x0, #16]
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	w22, [x20]
Lloh0:
	adrp	x8, _ST_VP_SENSOR_STREAMING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ST_VP_SENSOR_STREAMING@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
Lloh3:
	adrp	x8, _ST_VP_PENDING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ST_VP_PENDING@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _ST_VP_RUNNING@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ST_VP_RUNNING@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _ST_VP_OFF@GOTPAGE
Lloh10:
	ldr	x10, [x10, _ST_VP_OFF@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
Lloh12:
	adrp	x11, _ST_VP_ABORTING@GOTPAGE
Lloh13:
	ldr	x11, [x11, _ST_VP_ABORTING@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
Lloh15:
	adrp	x12, _ST_VP_STREAMING@GOTPAGE
Lloh16:
	ldr	x12, [x12, _ST_VP_STREAMING@GOTPAGEOFF]
Lloh17:
	ldr	w12, [x12]
Lloh18:
	adrp	x13, _ST_VP_LASTIRQ@GOTPAGE
Lloh19:
	ldr	x13, [x13, _ST_VP_LASTIRQ@GOTPAGEOFF]
Lloh20:
	ldr	w13, [x13]
	orr	w8, w8, w23
	orr	w8, w8, w9
	orr	w8, w8, w10
	orr	w8, w8, w11
	orr	w8, w8, w12
	orr	w8, w8, w13
	bic	w8, w22, w8
	str	w8, [x20]
	add	x21, x20, #8
	mov	x0, x21
	bl	_list_empty
	cbnz	w0, LBB0_3
; %bb.1:
Lloh21:
	adrp	x24, _VB2_BUF_STATE_ERROR@GOTPAGE
Lloh22:
	ldr	x24, [x24, _VB2_BUF_STATE_ERROR@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_camif_pending_queue_pop
	ldr	w1, [x24]
	bl	_vb2_buffer_done
	mov	x0, x21
	bl	_list_empty
	cbz	w0, LBB0_2
LBB0_3:
	and	w22, w23, w22
	add	x21, x20, #4
	mov	x0, x21
	bl	_list_empty
	cbnz	w0, LBB0_6
; %bb.4:
Lloh23:
	adrp	x23, _VB2_BUF_STATE_ERROR@GOTPAGE
Lloh24:
	ldr	x23, [x23, _VB2_BUF_STATE_ERROR@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_camif_active_queue_pop
	ldr	w1, [x23]
	bl	_vb2_buffer_done
	mov	x0, x21
	bl	_list_empty
	cbz	w0, LBB0_5
LBB0_6:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	cbz	w22, LBB0_8
; %bb.7:
	mov	x0, x19
	mov	w1, #0
	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	_sensor_set_streaming
LBB0_8:
	mov	w0, #0
	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 AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.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 AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_ST_VP_SENSOR_STREAMING,4,2     ; @ST_VP_SENSOR_STREAMING
	.comm	_ST_VP_PENDING,4,2              ; @ST_VP_PENDING
	.comm	_ST_VP_RUNNING,4,2              ; @ST_VP_RUNNING
	.comm	_ST_VP_OFF,4,2                  ; @ST_VP_OFF
	.comm	_ST_VP_ABORTING,4,2             ; @ST_VP_ABORTING
	.comm	_ST_VP_STREAMING,4,2            ; @ST_VP_STREAMING
	.comm	_ST_VP_LASTIRQ,4,2              ; @ST_VP_LASTIRQ
	.comm	_VB2_BUF_STATE_ERROR,4,2        ; @VB2_BUF_STATE_ERROR
	.no_dead_strip	_camif_reinitialize
.subsections_via_symbols
