	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function packet_queue_get
_packet_queue_get:                      ## @packet_queue_get
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, %r13d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_SDL_LockMutex
	movl	$-1, %r12d
	cmpq	$0, 40(%rbx)
	jne	LBB0_10
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%rbx), %rdi
	testq	%rdi, %rdi
	jne	LBB0_3
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%r13d, %r13d
	je	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %esi
	movl	4(%rbx), %edi
	callq	_SDL_CondWait
	cmpq	$0, 40(%rbx)
	je	LBB0_2
LBB0_10:
	movl	(%rbx), %edi
	callq	_SDL_UnlockMutex
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	24(%rdi), %rax
	movq	%rax, 32(%rbx)
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	$0, 24(%rbx)
LBB0_5:
	decl	16(%rbx)
	movl	12(%rbx), %eax
	subl	16(%rdi), %eax
	addl	$-32, %eax
	movl	%eax, 12(%rbx)
	movl	8(%rdi), %eax
	subl	%eax, 8(%rbx)
	movups	8(%rdi), %xmm0
	movups	%xmm0, (%r15)
	testq	%r14, %r14
	je	LBB0_7
## %bb.6:
	movl	(%rdi), %eax
	movl	%eax, (%r14)
LBB0_7:
	callq	_av_free
	movl	$1, %r12d
	jmp	LBB0_10
LBB0_9:
	xorl	%r12d, %r12d
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_packet_queue_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function packet_queue_get
_packet_queue_get:                      ; @packet_queue_get
	.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, x3
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	ldr	w0, [x0]
	bl	_SDL_LockMutex
	ldr	x8, [x19, #40]
	cbnz	x8, LBB0_4
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #32]
	cbnz	x0, LBB0_6
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	cbz	w22, LBB0_11
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldp	w1, w0, [x19]
	bl	_SDL_CondWait
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_1
LBB0_4:
	mov	w20, #-1
LBB0_5:
	ldr	w0, [x19]
	bl	_SDL_UnlockMutex
	mov	x0, 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
	ret
LBB0_6:
	ldr	x8, [x0, #24]
	str	x8, [x19, #32]
	cbnz	x8, LBB0_8
; %bb.7:
	str	xzr, [x19, #24]
LBB0_8:
	ldr	w8, [x0, #16]
	mov	w9, #-32
	sub	w8, w9, w8
	ldur	d0, [x19, #12]
	movi	d1, #0xffffffffffffffff
	mov.s	v1[0], w8
	add.2s	v0, v1, v0
	stur	d0, [x19, #12]
	ldr	w8, [x0, #8]
	ldr	w9, [x19, #8]
	sub	w8, w9, w8
	str	w8, [x19, #8]
	ldur	q0, [x0, #8]
	str	q0, [x21]
	cbz	x20, LBB0_10
; %bb.9:
	ldr	w8, [x0]
	str	w8, [x20]
LBB0_10:
	bl	_av_free
	mov	w20, #1
	b	LBB0_5
LBB0_11:
	mov	w20, #0
	b	LBB0_5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_packet_queue_get
.subsections_via_symbols
