	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bdisp_irq_thread
_bdisp_irq_thread:                      ## @bdisp_irq_thread
	.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	%rsi, %r15
	movq	%rsi, %rdi
	callq	_spin_lock
	movq	%r15, %rdi
	callq	_bdisp_dbg_perf_end
	leaq	16(%r15), %rdi
	callq	_cancel_delayed_work
	movq	_ST_M2M_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	12(%r15), %rbx
	movq	%rbx, %rsi
	callq	_test_and_clear_bit
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_ST_M2M_SUSPENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_and_clear_bit
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	_ST_M2M_SUSPENDED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_set_bit
	leaq	4(%r15), %rdi
	callq	_wake_up
LBB0_3:
	movq	%r15, %rdi
	callq	_spin_unlock
LBB0_8:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	8(%r15), %edi
	callq	_v4l2_m2m_get_curr_priv
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%rax, %r14
	cmpl	$0, (%rax)
	je	LBB0_3
## %bb.6:
	movq	%r15, %rdi
	callq	_spin_unlock
	movq	_VB2_BUF_STATE_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_bdisp_job_finish
	movq	_BDISP_CTX_STOP_REQ@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	%r14, %rsi
	callq	_bdisp_ctx_state_is_set
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movl	(%rbx), %edi
	movq	%r14, %rsi
	callq	_bdisp_ctx_state_lock_clear
	addq	$4, %r15
	movq	%r15, %rdi
	callq	_wake_up
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_ST_M2M_RUNNING,4,2             ## @ST_M2M_RUNNING
	.comm	_ST_M2M_SUSPENDING,4,2          ## @ST_M2M_SUSPENDING
	.comm	_ST_M2M_SUSPENDED,4,2           ## @ST_M2M_SUSPENDED
	.comm	_VB2_BUF_STATE_DONE,4,2         ## @VB2_BUF_STATE_DONE
	.comm	_BDISP_CTX_STOP_REQ,4,2         ## @BDISP_CTX_STOP_REQ
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_bdisp_irq_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bdisp_irq_thread
_bdisp_irq_thread:                      ; @bdisp_irq_thread
	.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, x1
	mov	x0, x1
	bl	_spin_lock
	mov	x0, x19
	bl	_bdisp_dbg_perf_end
	add	x0, x19, #16
	bl	_cancel_delayed_work
Lloh0:
	adrp	x8, _ST_M2M_RUNNING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ST_M2M_RUNNING@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x20, x19, #12
	mov	x1, x20
	bl	_test_and_clear_bit
	cbz	x0, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _ST_M2M_SUSPENDING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ST_M2M_SUSPENDING@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_and_clear_bit
	cbz	x0, LBB0_5
; %bb.2:
Lloh6:
	adrp	x8, _ST_M2M_SUSPENDED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ST_M2M_SUSPENDED@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_set_bit
	add	x0, x19, #4
	bl	_wake_up
LBB0_3:
	mov	x0, x19
	bl	_spin_unlock
LBB0_4:
Lloh9:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	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_5:
	ldr	w0, [x19, #8]
	bl	_v4l2_m2m_get_curr_priv
	cbz	x0, LBB0_3
; %bb.6:
	mov	x20, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_3
; %bb.7:
	mov	x0, x19
	bl	_spin_unlock
Lloh12:
	adrp	x8, _VB2_BUF_STATE_DONE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VB2_BUF_STATE_DONE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_bdisp_job_finish
Lloh15:
	adrp	x21, _BDISP_CTX_STOP_REQ@GOTPAGE
Lloh16:
	ldr	x21, [x21, _BDISP_CTX_STOP_REQ@GOTPAGEOFF]
	ldr	w0, [x21]
	mov	x1, x20
	bl	_bdisp_ctx_state_is_set
	cbz	x0, LBB0_4
; %bb.8:
	ldr	w0, [x21]
	mov	x1, x20
	bl	_bdisp_ctx_state_lock_clear
	add	x0, x19, #4
	bl	_wake_up
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ST_M2M_RUNNING,4,2             ; @ST_M2M_RUNNING
	.comm	_ST_M2M_SUSPENDING,4,2          ; @ST_M2M_SUSPENDING
	.comm	_ST_M2M_SUSPENDED,4,2           ; @ST_M2M_SUSPENDED
	.comm	_VB2_BUF_STATE_DONE,4,2         ; @VB2_BUF_STATE_DONE
	.comm	_BDISP_CTX_STOP_REQ,4,2         ; @BDISP_CTX_STOP_REQ
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_bdisp_irq_thread
.subsections_via_symbols
