	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_packet_make_refcounted      ## -- Begin function av_packet_make_refcounted
	.p2align	4, 0x90
_av_packet_make_refcounted:             ## @av_packet_make_refcounted
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	xorl	%r14d, %r14d
	cmpq	$0, (%rdi)
	jne	LBB0_9
## %bb.1:
	movq	%rdi, %rbx
	movq	16(%rdi), %rsi
	callq	_packet_alloc
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	cmpq	$0, 16(%rbx)
	je	LBB0_4
## %bb.5:
	xorl	%edi, %edi
	cmpq	$0, 8(%rbx)
	setne	%dil
	jmp	LBB0_6
LBB0_2:
	movl	%eax, %r14d
	jmp	LBB0_9
LBB0_4:
	movl	$1, %edi
LBB0_6:
	callq	_av_assert1
	movq	16(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_8
## %bb.7:
	movq	(%rbx), %rax
	movq	8(%rbx), %rsi
	movq	(%rax), %rdi
	callq	_memcpy
LBB0_8:
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
LBB0_9:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_packet_make_refcounted      ; -- Begin function av_packet_make_refcounted
	.p2align	2
_av_packet_make_refcounted:             ; @av_packet_make_refcounted
	.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]
	cbz	x8, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_9
LBB0_2:
	mov	x19, x0
	ldr	x1, [x0, #16]
	bl	_packet_alloc
	tbnz	w0, #31, LBB0_9
; %bb.3:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	x8, [x19, #8]
	cmp	x8, #0
	cset	w0, ne
	b	LBB0_6
LBB0_5:
	mov	w0, #1
LBB0_6:
	bl	_av_assert1
	ldr	x2, [x19, #16]
	cbz	x2, LBB0_8
; %bb.7:
	ldp	x8, x1, [x19]
	ldr	x0, [x8]
	bl	_memcpy
LBB0_8:
	mov	w0, #0
	ldr	x8, [x19]
	ldr	x8, [x8]
	str	x8, [x19, #8]
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
