	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_packet_list_put             ## -- Begin function ff_packet_list_put
	.p2align	4, 0x90
_ff_packet_list_put:                    ## @ff_packet_list_put
	.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
	movl	%ecx, %r13d
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	$16, %edi
	callq	_av_mallocz
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%rax, %rbx
	movq	_FF_PACKETLIST_FLAG_REF_PACKET@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	addq	$8, %rdi
	movq	%r12, %rsi
	callq	_av_packet_ref
	testl	%eax, %eax
	js	LBB0_3
## %bb.6:
	cmpq	$0, (%r15)
	je	LBB0_8
LBB0_7:
	movq	(%r14), %r15
LBB0_8:
	movq	%rbx, (%r15)
	movq	%rbx, (%r14)
	xorl	%r13d, %r13d
	jmp	LBB0_9
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_4:
	movq	%r12, %rdi
	callq	_av_packet_make_refcounted
	testl	%eax, %eax
	js	LBB0_3
## %bb.5:
	movq	%rbx, %rdi
	addq	$8, %rdi
	movq	%r12, %rsi
	callq	_av_packet_move_ref
	cmpq	$0, (%r15)
	jne	LBB0_7
	jmp	LBB0_8
LBB0_3:
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_av_free
LBB0_9:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_FF_PACKETLIST_FLAG_REF_PACKET,4,2 ## @FF_PACKETLIST_FLAG_REF_PACKET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_packet_list_put             ; -- Begin function ff_packet_list_put
	.p2align	2
_ff_packet_list_put:                    ; @ff_packet_list_put
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x23, x3
	mov	x22, x2
	mov	x19, x1
	mov	x21, x0
	mov	w0, #16
	bl	_av_mallocz
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x8, _FF_PACKETLIST_FLAG_REF_PACKET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FF_PACKETLIST_FLAG_REF_PACKET@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_7
; %bb.2:
	add	x0, x20, #8
	mov	x1, x22
	bl	_av_packet_ref
	tbnz	w0, #31, LBB0_9
; %bb.3:
	ldr	x8, [x21]
	cbz	x8, LBB0_5
LBB0_4:
	ldr	x21, [x19]
LBB0_5:
	mov	w23, #0
	str	x20, [x21]
	str	x20, [x19]
	b	LBB0_10
LBB0_6:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_7:
	mov	x0, x22
	bl	_av_packet_make_refcounted
	tbnz	w0, #31, LBB0_9
; %bb.8:
	add	x0, x20, #8
	mov	x1, x22
	bl	_av_packet_move_ref
	ldr	x8, [x21]
	cbnz	x8, LBB0_4
	b	LBB0_5
LBB0_9:
	mov	x23, x0
	mov	x0, x20
	bl	_av_free
LBB0_10:
	mov	x0, x23
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_FF_PACKETLIST_FLAG_REF_PACKET,4,2 ; @FF_PACKETLIST_FLAG_REF_PACKET
.subsections_via_symbols
