	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v4l2_m2m_streamoff             ## -- Begin function v4l2_m2m_streamoff
	.p2align	4, 0x90
_v4l2_m2m_streamoff:                    ## @v4l2_m2m_streamoff
	.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
	movl	%edx, %ebx
	movq	%rsi, %r13
	movq	%rsi, %rdi
	callq	_v4l2_m2m_cancel_job
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_get_queue_ctx
	movq	%rax, %r12
	leaq	20(%rax), %rdi
	movl	%ebx, %esi
	callq	_vb2_streamoff
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	movq	16(%r13), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	_TRANS_QUEUED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	je	LBB0_3
## %bb.2:
	leaq	8(%r13), %rdi
	callq	_list_del
LBB0_3:
	movl	$0, (%r13)
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	%r12, %rdi
	addq	$16, %rdi
	callq	_INIT_LIST_HEAD
	movq	$0, 8(%r12)
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	cmpq	%r13, 8(%r15)
	jne	LBB0_5
## %bb.4:
	movq	$0, 8(%r15)
	addq	$4, %r13
	movq	%r13, %rdi
	callq	_wake_up
LBB0_5:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRANS_QUEUED,4,2               ## @TRANS_QUEUED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v4l2_m2m_streamoff             ; -- Begin function v4l2_m2m_streamoff
	.p2align	2
_v4l2_m2m_streamoff:                    ; @v4l2_m2m_streamoff
	.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	x20, x2
	mov	x19, x1
	mov	x0, x1
	bl	_v4l2_m2m_cancel_job
	mov	x0, x19
	mov	x1, x20
	bl	_get_queue_ctx
	mov	x22, x0
	add	x0, x0, #20
	mov	x1, x20
	bl	_vb2_streamoff
	mov	x20, x0
	cbnz	w0, LBB0_6
; %bb.1:
	ldr	x21, [x19, #16]
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _TRANS_QUEUED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TRANS_QUEUED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	add	x0, x19, #8
	bl	_list_del
LBB0_3:
	str	wzr, [x19]
	mov	x0, x22
	bl	_spin_lock_irqsave
	add	x0, x22, #16
	bl	_INIT_LIST_HEAD
	str	xzr, [x22, #8]
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	ldr	x8, [x21, #8]
	cmp	x8, x19
	b.ne	LBB0_5
; %bb.4:
	str	xzr, [x21, #8]
	add	x0, x19, #4
	bl	_wake_up
LBB0_5:
	mov	x0, x21
	bl	_spin_unlock_irqrestore
LBB0_6:
	mov	x0, x20
	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	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TRANS_QUEUED,4,2               ; @TRANS_QUEUED
.subsections_via_symbols
