	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function v4l2_try_start
_v4l2_try_start:                        ## @v4l2_try_start
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	16(%rdi), %rax
	movq	(%rax), %rbx
	cmpq	$0, 48(%rbx)
	jne	LBB0_3
## %bb.1:
	leaq	8(%rbx), %rdi
	movq	_VIDIOC_STREAMON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ff_v4l2_context_set_status
	testl	%eax, %eax
	js	LBB0_2
LBB0_3:
	xorl	%r12d, %r12d
	cmpq	$0, 96(%rbx)
	jne	LBB0_16
## %bb.4:
	movl	(%rbx), %edi
	movl	88(%rbx), %eax
	leaq	72(%rbx), %rdx
	movl	%eax, 80(%rbx)
	movq	_VIDIOC_G_FMT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ioctl
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %r15d
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_15
LBB0_2:
	movl	%eax, %r12d
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_16
LBB0_6:
	leaq	56(%rbx), %r15
	movl	84(%rbx), %edi
	movq	_AV_CODEC_ID_RAWVIDEO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ff_v4l2_format_v4l2_to_avfmt
	movl	%eax, 8(%r14)
	movl	%eax, 68(%rbx)
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movl	4(%r14), %eax
	movl	%eax, -44(%rbp)
	movl	(%r14), %eax
	movl	%eax, -48(%rbp)
	movl	(%rbx), %edi
	movq	_VIDIOC_S_SELECTION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	callq	_ioctl
	testl	%eax, %eax
	jne	LBB0_10
## %bb.7:
	movl	(%rbx), %edi
	movq	_VIDIOC_G_SELECTION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	callq	_ioctl
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
LBB0_10:
	cmpl	$0, (%r15)
	je	LBB0_11
LBB0_13:
	movq	_VIDIOC_STREAMON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_ff_v4l2_context_set_status
	testl	%eax, %eax
	je	LBB0_16
## %bb.14:
	movl	%eax, %r15d
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rdx
LBB0_15:
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movl	%r15d, %r12d
LBB0_16:
	movl	%r12d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-48(%rbp), %ecx
	movl	-44(%rbp), %r8d
	leaq	L_.str.3(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movl	-44(%rbp), %eax
	movl	%eax, 64(%rbx)
	movl	-48(%rbp), %eax
	movl	%eax, 60(%rbx)
	cmpl	$0, (%r15)
	jne	LBB0_13
LBB0_11:
	movq	%r15, %rdi
	callq	_ff_v4l2_context_init
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r12d
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_VIDIOC_STREAMON,4,2            ## @VIDIOC_STREAMON
	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VIDIOC_STREAMON on output context\n"

	.comm	_VIDIOC_G_FMT,4,2               ## @VIDIOC_G_FMT
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
L_.str.1:                               ## @.str.1
	.asciz	"VIDIOC_G_FMT ioctl\n"

	.comm	_AV_CODEC_ID_RAWVIDEO,4,2       ## @AV_CODEC_ID_RAWVIDEO
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_VIDIOC_S_SELECTION,4,2         ## @VIDIOC_S_SELECTION
	.comm	_VIDIOC_G_SELECTION,4,2         ## @VIDIOC_G_SELECTION
L_.str.2:                               ## @.str.2
	.asciz	"VIDIOC_G_SELECTION ioctl\n"

L_.str.3:                               ## @.str.3
	.asciz	"crop output %dx%d\n"

	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.4:                               ## @.str.4
	.asciz	"can't request capture buffers\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.5:                               ## @.str.5
	.asciz	"VIDIOC_STREAMON, on capture context\n"

	.no_dead_strip	_v4l2_try_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function v4l2_try_start
_v4l2_try_start:                        ; @v4l2_try_start
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x8, [x0, #16]
	ldr	x21, [x8]
	ldr	x8, [x21, #48]
	cbnz	x8, LBB0_2
; %bb.1:
	add	x0, x21, #8
Lloh0:
	adrp	x8, _VIDIOC_STREAMON@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VIDIOC_STREAMON@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_ff_v4l2_context_set_status
	tbnz	w0, #31, LBB0_6
LBB0_2:
	ldr	x8, [x21, #96]
	cbz	x8, LBB0_4
; %bb.3:
	mov	w20, #0
	b	LBB0_14
LBB0_4:
	ldr	w8, [x21, #88]
	add	x2, x21, #72
	str	w8, [x21, #80]
	ldr	w0, [x21]
Lloh3:
	adrp	x8, _VIDIOC_G_FMT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VIDIOC_G_FMT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_ioctl
	cbz	w0, LBB0_7
; %bb.5:
	mov	x20, x0
Lloh6:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x2, l_.str.1@PAGE
Lloh10:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_6:
	mov	x20, x0
Lloh11:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x2, l_.str@PAGE
Lloh15:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_13
LBB0_7:
	add	x20, x21, #56
	ldr	w0, [x21, #84]
Lloh16:
	adrp	x8, _AV_CODEC_ID_RAWVIDEO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AV_CODEC_ID_RAWVIDEO@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	bl	_ff_v4l2_format_v4l2_to_avfmt
	str	w0, [x19, #8]
	str	w0, [x21, #68]
Lloh19:
	adrp	x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	ldr	d0, [x19]
	str	d0, [sp, #16]
	ldr	w0, [x21]
Lloh22:
	adrp	x8, _VIDIOC_S_SELECTION@GOTPAGE
Lloh23:
	ldr	x8, [x8, _VIDIOC_S_SELECTION@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	add	x2, sp, #16
	bl	_ioctl
	cbnz	w0, LBB0_10
; %bb.8:
	ldr	w0, [x21]
Lloh25:
	adrp	x8, _VIDIOC_G_SELECTION@GOTPAGE
Lloh26:
	ldr	x8, [x8, _VIDIOC_G_SELECTION@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	add	x2, sp, #16
	bl	_ioctl
	cbz	w0, LBB0_15
; %bb.9:
Lloh28:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh29:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
Lloh31:
	adrp	x2, l_.str.2@PAGE
Lloh32:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_av_log
LBB0_10:
	ldr	w8, [x20]
	cbz	w8, LBB0_16
LBB0_11:
Lloh33:
	adrp	x8, _VIDIOC_STREAMON@GOTPAGE
Lloh34:
	ldr	x8, [x8, _VIDIOC_STREAMON@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ff_v4l2_context_set_status
	mov	x20, x0
	cbz	w0, LBB0_14
; %bb.12:
Lloh36:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh37:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
Lloh39:
	adrp	x2, l_.str.5@PAGE
Lloh40:
	add	x2, x2, l_.str.5@PAGEOFF
LBB0_13:
	mov	x0, x19
	bl	_av_log
LBB0_14:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_15:
Lloh41:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh42:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	ldp	w8, w9, [sp, #16]
	stp	x8, x9, [sp]
Lloh44:
	adrp	x2, l_.str.3@PAGE
Lloh45:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_av_log
	ldr	d0, [sp, #16]
	stur	d0, [x21, #60]
	ldr	w8, [x20]
	cbnz	w8, LBB0_11
LBB0_16:
	mov	x0, x20
	bl	_ff_v4l2_context_init
	cbz	w0, LBB0_11
; %bb.17:
Lloh46:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh47:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh48:
	ldr	w1, [x8]
Lloh49:
	adrp	x2, l_.str.4@PAGE
Lloh50:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_av_log
Lloh51:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh52:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh53:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x20, x0
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_VIDIOC_STREAMON,4,2            ; @VIDIOC_STREAMON
	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VIDIOC_STREAMON on output context\n"

	.comm	_VIDIOC_G_FMT,4,2               ; @VIDIOC_G_FMT
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
l_.str.1:                               ; @.str.1
	.asciz	"VIDIOC_G_FMT ioctl\n"

	.comm	_AV_CODEC_ID_RAWVIDEO,4,2       ; @AV_CODEC_ID_RAWVIDEO
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_VIDIOC_S_SELECTION,4,2         ; @VIDIOC_S_SELECTION
	.comm	_VIDIOC_G_SELECTION,4,2         ; @VIDIOC_G_SELECTION
l_.str.2:                               ; @.str.2
	.asciz	"VIDIOC_G_SELECTION ioctl\n"

l_.str.3:                               ; @.str.3
	.asciz	"crop output %dx%d\n"

	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.4:                               ; @.str.4
	.asciz	"can't request capture buffers\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.5:                               ; @.str.5
	.asciz	"VIDIOC_STREAMON, on capture context\n"

	.no_dead_strip	_v4l2_try_start
.subsections_via_symbols
