	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function v4l2_stop_encode
_v4l2_stop_encode:                      ## @v4l2_stop_encode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	$0, -16(%rbp)
	movq	_V4L2_ENC_CMD_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -12(%rbp)
	callq	_ctx_to_m2mctx
	movl	(%rax), %edi
	movq	_VIDIOC_ENCODER_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-16(%rbp), %rdx
	callq	_ioctl
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_ENOTTY@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_4
## %bb.3:
	movq	_VIDIOC_STREAMOFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ff_v4l2_context_set_status
	jmp	LBB0_5
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_4:
	callq	_AVERROR
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_ENC_CMD_STOP,4,2          ## @V4L2_ENC_CMD_STOP
	.comm	_VIDIOC_ENCODER_CMD,4,2         ## @VIDIOC_ENCODER_CMD
	.comm	_errno,8,3                      ## @errno
	.comm	_ENOTTY,8,3                     ## @ENOTTY
	.comm	_VIDIOC_STREAMOFF,4,2           ## @VIDIOC_STREAMOFF
	.no_dead_strip	_v4l2_stop_encode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function v4l2_stop_encode
_v4l2_stop_encode:                      ; @v4l2_stop_encode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _V4L2_ENC_CMD_STOP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_ENC_CMD_STOP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	stp	wzr, w8, [sp, #8]
	bl	_ctx_to_m2mctx
	ldr	w0, [x0]
Lloh3:
	adrp	x8, _VIDIOC_ENCODER_CMD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VIDIOC_ENCODER_CMD@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_ioctl
	cbz	w0, LBB0_4
; %bb.1:
Lloh6:
	adrp	x8, _errno@GOTPAGE
Lloh7:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh8:
	ldr	x0, [x8]
Lloh9:
	adrp	x8, _ENOTTY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOTTY@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.2:
Lloh12:
	adrp	x8, _VIDIOC_STREAMOFF@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VIDIOC_STREAMOFF@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ff_v4l2_context_set_status
	b	LBB0_4
LBB0_3:
	bl	_AVERROR
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_ENC_CMD_STOP,4,2          ; @V4L2_ENC_CMD_STOP
	.comm	_VIDIOC_ENCODER_CMD,4,2         ; @VIDIOC_ENCODER_CMD
	.comm	_errno,8,3                      ; @errno
	.comm	_ENOTTY,8,3                     ; @ENOTTY
	.comm	_VIDIOC_STREAMOFF,4,2           ; @VIDIOC_STREAMOFF
	.no_dead_strip	_v4l2_stop_encode
.subsections_via_symbols
