	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function concatenate_packet
_concatenate_packet:                    ## @concatenate_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	%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	%rsi, %r14
	movl	(%rdx), %eax
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	jbe	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rcx
	jmp	LBB0_8
LBB0_1:
	leaq	L_.str(%rip), %rcx
	jmp	LBB0_8
LBB0_4:
	movl	(%r14), %ecx
	leal	(%rcx,%rax), %r13d
	addl	$2, %r13d
	cmpl	%ecx, %r13d
	jge	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rcx
	jmp	LBB0_8
LBB0_6:
	movq	%rdx, %r15
	movq	%rdi, %r12
	leaq	8(%r14), %rdi
	movl	%r13d, %esi
	callq	_av_reallocp
	testl	%eax, %eax
	js	LBB0_7
## %bb.9:
	movl	%r13d, (%r14)
	movl	(%r12), %edi
	addq	8(%r14), %rdi
	movl	(%r15), %esi
	callq	_AV_WB16
	movl	(%r12), %edi
	addl	$2, %edi
	movl	%edi, (%r12)
	addq	8(%r14), %rdi
	movl	(%r15), %edx
	movl	4(%r15), %esi
	callq	_memcpy
	movl	(%r15), %eax
	addl	%eax, (%r12)
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_7:
	movl	%eax, %ebx
	movl	$0, (%r14)
	leaq	L_.str.3(%rip), %rcx
LBB0_8:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	movq	%r14, %rdi
	callq	_av_log
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ogg_packet has negative size"

L_.str.1:                               ## @.str.1
	.asciz	"ogg_packet is larger than 65535 bytes"

L_.str.2:                               ## @.str.2
	.asciz	"extradata_size would overflow"

L_.str.3:                               ## @.str.3
	.asciz	"av_realloc failed"

	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.4:                               ## @.str.4
	.asciz	"concatenate_packet failed: %s\n"

	.no_dead_strip	_concatenate_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function concatenate_packet
_concatenate_packet:                    ; @concatenate_packet
	.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	x19, x1
	ldr	w8, [x2]
Lloh0:
	adrp	x9, _AVERROR_INVALIDDATA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x9]
	tbnz	w8, #31, LBB0_3
; %bb.1:
	lsr	w9, w8, #16
	cbz	w9, LBB0_4
; %bb.2:
Lloh3:
	adrp	x3, l_.str.1@PAGE
Lloh4:
	add	x3, x3, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_3:
Lloh5:
	adrp	x3, l_.str@PAGE
Lloh6:
	add	x3, x3, l_.str@PAGEOFF
	b	LBB0_9
LBB0_4:
	ldr	w9, [x19]
	add	w8, w9, w8
	add	w23, w8, #2
	cmp	w23, w9
	b.ge	LBB0_6
; %bb.5:
Lloh7:
	adrp	x3, l_.str.2@PAGE
Lloh8:
	add	x3, x3, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_6:
	mov	x22, x2
	mov	x21, x0
	add	x0, x19, #8
	mov	x1, x23
	bl	_av_reallocp
	tbnz	w0, #31, LBB0_8
; %bb.7:
	str	w23, [x19]
	ldr	x8, [x19, #8]
	ldr	w9, [x21]
	add	x0, x8, x9
	ldr	w1, [x22]
	bl	_AV_WB16
	ldr	w8, [x21]
	add	w8, w8, #2
	str	w8, [x21]
	ldr	x9, [x19, #8]
	add	x0, x9, x8
	ldp	w2, w1, [x22]
	bl	_memcpy
	mov	w20, #0
	ldr	w8, [x22]
	ldr	w9, [x21]
	add	w8, w9, w8
	str	w8, [x21]
	b	LBB0_10
LBB0_8:
	mov	x20, x0
	str	wzr, [x19]
Lloh9:
	adrp	x3, l_.str.3@PAGE
Lloh10:
	add	x3, x3, l_.str.3@PAGEOFF
LBB0_9:
Lloh11:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x2, l_.str.4@PAGE
Lloh15:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_av_log
LBB0_10:
	mov	x0, x20
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ogg_packet has negative size"

l_.str.1:                               ; @.str.1
	.asciz	"ogg_packet is larger than 65535 bytes"

l_.str.2:                               ; @.str.2
	.asciz	"extradata_size would overflow"

l_.str.3:                               ; @.str.3
	.asciz	"av_realloc failed"

	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.4:                               ; @.str.4
	.asciz	"concatenate_packet failed: %s\n"

	.no_dead_strip	_concatenate_packet
.subsections_via_symbols
