	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function v4l2_receive_frame
_v4l2_receive_frame:                    ## @v4l2_receive_frame
	.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	%rsi, %r14
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	(%rax), %r12
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	cmpq	$0, (%r12)
	je	LBB0_2
## %bb.1:
	movups	(%r12), %xmm0
	movaps	%xmm0, -48(%rbp)
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
LBB0_4:
	cmpq	$0, 16(%r12)
	je	LBB0_5
LBB0_11:
	leaq	28(%r12), %rbx
	cmpq	$0, (%r12)
	jne	LBB0_13
## %bb.12:
	leaq	-48(%rbp), %rdi
	callq	_av_packet_unref
LBB0_13:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$-1, %edx
	callq	_ff_v4l2_context_dequeue_frame
	movl	%eax, %ebx
	jmp	LBB0_14
LBB0_2:
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_ff_decode_get_packet
	testl	%eax, %eax
	jns	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_14
	jmp	LBB0_4
LBB0_5:
	leaq	24(%r12), %rdi
	leaq	-48(%rbp), %rsi
	callq	_ff_v4l2_context_enqueue_packet
	testl	%eax, %eax
	js	LBB0_6
## %bb.8:
	cmpq	$0, -48(%rbp)
	je	LBB0_11
LBB0_9:
	movq	%r15, %rdi
	callq	_v4l2_try_start
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %r15d
	leaq	-48(%rbp), %rdi
	callq	_av_packet_unref
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	xorl	%ebx, %ebx
	cmpl	%eax, %r15d
	cmovel	%r15d, %ebx
	jmp	LBB0_14
LBB0_6:
	movl	%eax, %ebx
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	cmpl	%eax, %ebx
	jne	LBB0_14
## %bb.7:
	movaps	-48(%rbp), %xmm0
	movups	%xmm0, (%r12)
	cmpq	$0, -48(%rbp)
	jne	LBB0_9
	jmp	LBB0_11
LBB0_14:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_v4l2_receive_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function v4l2_receive_frame
_v4l2_receive_frame:                    ; @v4l2_receive_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x21, x0
	ldr	x8, [x0]
	ldr	x20, [x8]
	stp	xzr, xzr, [sp]
	mov	x22, x20
	ldr	x8, [x22], #24
	cbz	x8, LBB0_6
; %bb.1:
	ldr	q0, [x20]
	str	q0, [sp]
	mov	x0, x20
	mov	w1, #0
	mov	w2, #16
	bl	_memset
LBB0_2:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_8
LBB0_3:
	add	x21, x20, #28
	ldr	x8, [x20]
	cbnz	x8, LBB0_5
; %bb.4:
	mov	x0, sp
	bl	_av_packet_unref
LBB0_5:
	mov	x0, x21
	mov	x1, x19
	mov	w2, #-1
	bl	_ff_v4l2_context_dequeue_frame
	mov	x23, x0
	b	LBB0_14
LBB0_6:
	mov	x1, sp
	mov	x0, x21
	bl	_ff_decode_get_packet
	tbz	w0, #31, LBB0_2
; %bb.7:
	mov	x23, x0
Lloh0:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_14
	b	LBB0_2
LBB0_8:
	mov	x1, sp
	mov	x0, x22
	bl	_ff_v4l2_context_enqueue_packet
	tbnz	w0, #31, LBB0_12
; %bb.9:
	ldr	x8, [sp]
	cbz	x8, LBB0_3
LBB0_10:
	mov	x0, x21
	bl	_v4l2_try_start
	cbz	w0, LBB0_3
; %bb.11:
	mov	x21, x0
	mov	x0, sp
	bl	_av_packet_unref
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_AVERROR
	cmp	w21, w0
	csel	w23, w21, wzr, eq
	b	LBB0_14
LBB0_12:
	mov	x23, x0
Lloh6:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_AVERROR
	cmp	w23, w0
	b.ne	LBB0_14
; %bb.13:
	ldr	q0, [sp]
	str	q0, [x20]
	ldr	x8, [sp]
	cbnz	x8, LBB0_10
	b	LBB0_3
LBB0_14:
	mov	x0, x23
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_v4l2_receive_frame
.subsections_via_symbols
