	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_v4l2_m2m_codec_end          ## -- Begin function ff_v4l2_m2m_codec_end
	.p2align	4, 0x90
_ff_v4l2_m2m_codec_end:                 ## @ff_v4l2_m2m_codec_end
	.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	8(%rdi), %r12
	leaq	8(%r12), %r14
	movq	_VIDIOC_STREAMOFF@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_ff_v4l2_context_set_status
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %ecx
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	callq	_av_log
LBB0_2:
	leaq	12(%r12), %rbx
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_ff_v4l2_context_set_status
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %ecx
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	callq	_av_log
LBB0_4:
	movq	%r14, %rdi
	callq	_ff_v4l2_context_release
	movq	$0, (%r12)
	movq	%r15, %rdi
	callq	_av_buffer_unref
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VIDIOC_STREAMOFF,4,2           ## @VIDIOC_STREAMOFF
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VIDIOC_STREAMOFF %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_v4l2_m2m_codec_end          ; -- Begin function ff_v4l2_m2m_codec_end
	.p2align	2
_ff_v4l2_m2m_codec_end:                 ; @ff_v4l2_m2m_codec_end
	.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	x19, x0
	ldr	x22, [x0, #8]
	add	x20, x22, #8
Lloh0:
	adrp	x24, _VIDIOC_STREAMOFF@GOTPAGE
Lloh1:
	ldr	x24, [x24, _VIDIOC_STREAMOFF@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x20
	bl	_ff_v4l2_context_set_status
Lloh2:
	adrp	x23, _AV_LOG_ERROR@GOTPAGE
Lloh3:
	ldr	x23, [x23, _AV_LOG_ERROR@GOTPAGEOFF]
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w1, [x23]
	ldr	w3, [x20]
Lloh4:
	adrp	x2, l_.str@PAGE
Lloh5:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
LBB0_2:
	add	x21, x22, #12
	ldr	w1, [x24]
	mov	x0, x21
	bl	_ff_v4l2_context_set_status
	cbz	w0, LBB0_4
; %bb.3:
	ldr	w1, [x23]
	ldr	w3, [x21]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
LBB0_4:
	mov	x0, x20
	bl	_ff_v4l2_context_release
	str	xzr, [x22]
	mov	x0, x19
	bl	_av_buffer_unref
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_VIDIOC_STREAMOFF,4,2           ; @VIDIOC_STREAMOFF
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VIDIOC_STREAMOFF %s\n"

.subsections_via_symbols
