	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function android_camera_read_packet
_android_camera_read_packet:            ## @android_camera_read_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	8(%rdi), %rbx
	leaq	4(%rbx), %rdi
	callq	_atomic_load
	testl	%eax, %eax
	je	LBB0_1
## %bb.4:
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	js	LBB0_7
LBB0_6:
	movl	(%r14), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	(%rbx), %edi
	movq	_AVFMT_FLAG_NONBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	(%r15), %edx
	je	LBB0_3
## %bb.2:
	movq	_AV_THREAD_MESSAGE_NONBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_3:
	movq	%r14, %rsi
	callq	_av_thread_message_queue_recv
	testl	%eax, %eax
	jns	LBB0_6
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_AVFMT_FLAG_NONBLOCK,4,2        ## @AVFMT_FLAG_NONBLOCK
	.comm	_AV_THREAD_MESSAGE_NONBLOCK,4,2 ## @AV_THREAD_MESSAGE_NONBLOCK
	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
	.no_dead_strip	_android_camera_read_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function android_camera_read_packet
_android_camera_read_packet:            ; @android_camera_read_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	x19, x1
	mov	x20, x0
	ldr	x21, [x0, #8]
	add	x0, x21, #4
	bl	_atomic_load
	cbz	w0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	tbnz	w0, #31, LBB0_3
LBB0_2:
	ldr	w0, [x19]
LBB0_3:
	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
LBB0_4:
	ldr	w0, [x21]
	ldr	w8, [x20]
Lloh3:
	adrp	x9, _AVFMT_FLAG_NONBLOCK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AVFMT_FLAG_NONBLOCK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _AV_THREAD_MESSAGE_NONBLOCK@GOTPAGE
Lloh7:
	ldr	x10, [x10, _AV_THREAD_MESSAGE_NONBLOCK@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	tst	w9, w8
	csel	w2, wzr, w10, eq
	mov	x1, x19
	bl	_av_thread_message_queue_recv
	tbz	w0, #31, LBB0_2
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AVFMT_FLAG_NONBLOCK,4,2        ; @AVFMT_FLAG_NONBLOCK
	.comm	_AV_THREAD_MESSAGE_NONBLOCK,4,2 ; @AV_THREAD_MESSAGE_NONBLOCK
	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
	.no_dead_strip	_android_camera_read_packet
.subsections_via_symbols
