	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function v4l2_check_b_frame_support
_v4l2_check_b_frame_support:            ## @v4l2_check_b_frame_support
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	cmpq	$0, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_av_log
LBB0_2:
	movq	_B_FRAMES@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_MPEG_CID
	leaq	L_.str.1(%rip), %r15
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	movq	%r15, %rcx
	callq	_v4l2_set_ext_ctrl
	movl	(%r12), %edi
	callq	_MPEG_CID
	movq	(%rbx), %rdx
	movq	%rbx, %rdi
	movl	%eax, %esi
	movq	%r15, %rcx
	callq	_v4l2_get_ext_ctrl
	movq	(%rbx), %rdi
	cmpq	$0, (%rdi)
	je	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
	callq	_avpriv_report_missing_feature
	movq	_AVERROR_PATCHWELCOME@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_4:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Encoder does not support b-frames yet\n"

	.comm	_B_FRAMES,4,2                   ## @B_FRAMES
L_.str.1:                               ## @.str.1
	.asciz	"number of B-frames"

L_.str.2:                               ## @.str.2
	.asciz	"DTS/PTS calculation for V4L2 encoding"

	.comm	_AVERROR_PATCHWELCOME,4,2       ## @AVERROR_PATCHWELCOME
	.no_dead_strip	_v4l2_check_b_frame_support
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function v4l2_check_b_frame_support
_v4l2_check_b_frame_support:            ; @v4l2_check_b_frame_support
	.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, x0
	ldr	x0, [x0]
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
LBB0_2:
Lloh5:
	adrp	x21, _B_FRAMES@GOTPAGE
Lloh6:
	ldr	x21, [x21, _B_FRAMES@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_MPEG_CID
	mov	x1, x0
Lloh7:
	adrp	x20, l_.str.1@PAGE
Lloh8:
	add	x20, x20, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w2, #0
	mov	x3, x20
	bl	_v4l2_set_ext_ctrl
	ldr	w0, [x21]
	bl	_MPEG_CID
	mov	x1, x0
	ldr	x2, [x19]
	mov	x0, x19
	mov	x3, x20
	bl	_v4l2_get_ext_ctrl
	ldr	x0, [x19]
	ldr	x8, [x0]
	cbz	x8, LBB0_4
; %bb.3:
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_avpriv_report_missing_feature
Lloh11:
	adrp	x8, _AVERROR_PATCHWELCOME@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AVERROR_PATCHWELCOME@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Encoder does not support b-frames yet\n"

	.comm	_B_FRAMES,4,2                   ; @B_FRAMES
l_.str.1:                               ; @.str.1
	.asciz	"number of B-frames"

l_.str.2:                               ; @.str.2
	.asciz	"DTS/PTS calculation for V4L2 encoding"

	.comm	_AVERROR_PATCHWELCOME,4,2       ; @AVERROR_PATCHWELCOME
	.no_dead_strip	_v4l2_check_b_frame_support
.subsections_via_symbols
