	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function v4l2_receive_packet
_v4l2_receive_packet:                   ## @v4l2_receive_packet
	.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	%rsi, %r14
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	(%rax), %rdi
	leaq	12(%rdi), %rbx
	cmpq	$0, (%rdi)
	jne	LBB0_8
## %bb.1:
	addq	$8, %rdi
	cmpl	$0, (%rdi)
	je	LBB0_2
LBB0_5:
	cmpl	$0, (%rbx)
	je	LBB0_6
LBB0_8:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ff_v4l2_context_dequeue_packet ## TAILCALL
LBB0_2:
	movq	_VIDIOC_STREAMON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ff_v4l2_context_set_status
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movl	%eax, %r12d
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_4
LBB0_6:
	movq	_VIDIOC_STREAMON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ff_v4l2_context_set_status
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %r12d
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
LBB0_4:
	movq	%r15, %rdi
	callq	_av_log
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VIDIOC_STREAMON,4,2            ## @VIDIOC_STREAMON
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VIDIOC_STREAMON failed on output context\n"

L_.str.1:                               ## @.str.1
	.asciz	"VIDIOC_STREAMON failed on capture context\n"

	.no_dead_strip	_v4l2_receive_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function v4l2_receive_packet
_v4l2_receive_packet:                   ; @v4l2_receive_packet
	.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	x20, x1
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x0, [x8]
	add	x21, x0, #12
	ldr	x8, [x0], #8
	cbnz	x8, LBB0_3
; %bb.1:
	ldr	w8, [x0]
	cbz	w8, LBB0_4
LBB0_2:
	ldr	w8, [x21]
	cbz	w8, LBB0_6
LBB0_3:
	mov	x0, x21
	mov	x1, x20
	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
	b	_ff_v4l2_context_dequeue_packet
LBB0_4:
Lloh0:
	adrp	x8, _VIDIOC_STREAMON@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VIDIOC_STREAMON@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_ff_v4l2_context_set_status
	cbz	w0, LBB0_2
; %bb.5:
	mov	x22, x0
Lloh3:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_8
LBB0_6:
Lloh8:
	adrp	x8, _VIDIOC_STREAMON@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VIDIOC_STREAMON@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_ff_v4l2_context_set_status
	cbz	w0, LBB0_3
; %bb.7:
	mov	x22, x0
Lloh11:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_8:
	mov	x0, x19
	bl	_av_log
	mov	x0, x22
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_VIDIOC_STREAMON,4,2            ; @VIDIOC_STREAMON
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VIDIOC_STREAMON failed on output context\n"

l_.str.1:                               ; @.str.1
	.asciz	"VIDIOC_STREAMON failed on capture context\n"

	.no_dead_strip	_v4l2_receive_packet
.subsections_via_symbols
