	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function packet_queue_put_private
_packet_queue_put_private:              ## @packet_queue_put_private
	.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
	movl	$-1, %r15d
	cmpq	$0, 40(%rdi)
	jne	LBB0_5
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	$32, %edi
	callq	_av_malloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movups	(%r14), %xmm0
	movups	%xmm0, (%rax)
	movq	$0, 16(%rax)
	movq	32(%rbx), %rcx
	cmpq	_flush_pkt@GOTPCREL(%rip), %r14
	jne	LBB0_4
## %bb.3:
	incq	%rcx
	movq	%rcx, 32(%rbx)
LBB0_4:
	movq	%rcx, 24(%rax)
	movq	16(%rbx), %rcx
	leaq	16(%rcx), %rdx
	leaq	24(%rbx), %rsi
	testq	%rcx, %rcx
	cmoveq	%rsi, %rdx
	movq	%rax, (%rdx)
	movq	%rax, 16(%rbx)
	incl	12(%rbx)
	movl	8(%rax), %ecx
	movl	(%rbx), %edi
	movl	8(%rbx), %edx
	addl	%edx, %ecx
	addl	$32, %ecx
	movl	%ecx, 8(%rbx)
	movl	(%rax), %eax
	addl	%eax, 4(%rbx)
	callq	_SDL_CondSignal
	xorl	%r15d, %r15d
LBB0_5:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_flush_pkt,16,3                 ## @flush_pkt
	.no_dead_strip	_packet_queue_put_private
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function packet_queue_put_private
_packet_queue_put_private:              ; @packet_queue_put_private
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0, #40]
	cbz	x8, LBB0_2
LBB0_1:
	mov	w0, #-1
	b	LBB0_6
LBB0_2:
	mov	x20, x1
	mov	x19, x0
	mov	w0, #32
	bl	_av_malloc
	cbz	x0, LBB0_1
; %bb.3:
	ldr	q0, [x20]
	str	q0, [x0]
	str	xzr, [x0, #16]
Lloh0:
	adrp	x9, _flush_pkt@GOTPAGE
Lloh1:
	ldr	x9, [x9, _flush_pkt@GOTPAGEOFF]
	ldr	x8, [x19, #32]
	cmp	x20, x9
	b.ne	LBB0_5
; %bb.4:
	add	x8, x8, #1
	str	x8, [x19, #32]
LBB0_5:
	str	x8, [x0, #24]
	ldr	x8, [x19, #16]
	add	x9, x8, #16
	add	x10, x19, #24
	cmp	x8, #0
	csel	x8, x10, x9, eq
	str	x0, [x8]
	str	x0, [x19, #16]
	ldr	w8, [x0, #8]
	add	w8, w8, #32
	ldr	d0, [x19, #8]
	movi.2s	v1, #1
	mov.s	v1[0], w8
	add.2s	v0, v1, v0
	str	d0, [x19, #8]
	ldr	w8, [x0]
	ldp	w0, w9, [x19]
	add	w8, w9, w8
	str	w8, [x19, #4]
	bl	_SDL_CondSignal
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_flush_pkt,16,3                 ; @flush_pkt
	.no_dead_strip	_packet_queue_put_private
.subsections_via_symbols
