	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aptx_decode_frame
_aptx_decode_frame:                     ## @aptx_decode_frame
	.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
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %r12
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movl	(%rcx), %eax
	movl	(%r12), %ecx
	cmpl	%ecx, %eax
	jge	LBB0_2
## %bb.1:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_11
LBB0_2:
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	_NB_CHANNELS@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movl	%edx, (%rsi)
	movq	_AV_SAMPLE_FMT_S32P@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 16(%rsi)
	shll	$2, %eax
	cltd
	idivl	%ecx
	movl	%eax, 4(%rsi)
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_ff_get_buffer
	testl	%eax, %eax
	js	LBB0_11
## %bb.3:
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	cmpl	$0, 4(%rbx)
	jle	LBB0_10
## %bb.4:
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	-72(%rbp), %rsp                 ## 8-byte Reload
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	movl	-60(%rbp), %r14d                ## 4-byte Reload
	addl	(%r12), %r14d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	$4, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	cmpl	%eax, 4(%rbx)
	jle	LBB0_10
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movl	(%r13), %eax
	shlq	$4, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movslq	%r14d, %rsi
	shlq	$2, %rsi
	movq	-104(%rbp), %rax                ## 8-byte Reload
	addq	8(%rax), %rsi
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	_aptx_decode_samples
	testq	%rax, %rax
	jne	LBB0_13
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%r14d, -60(%rbp)                ## 4-byte Spill
	cmpl	$0, (%r13)
	jle	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-56(%rbp), %r12                 ## 8-byte Reload
                                        ## kill: def $r12d killed $r12d killed $r12 def $r12
	andl	$1073741820, %r12d              ## imm = 0x3FFFFFFC
	shlq	$2, %r12
	leaq	4(%r12), %rax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	leaq	8(%r12), %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	leaq	12(%r12), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	addq	$12, %r15
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%rbx), %rax
	leaq	(,%r12,4), %rdi
	addq	(%rax,%r14,8), %rdi
	movl	-12(%r15), %esi
	shll	$8, %esi
	callq	_AV_WN32A
	movq	8(%rbx), %rax
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	leaq	(,%rcx,4), %rdi
	addq	(%rax,%r14,8), %rdi
	movl	-8(%r15), %esi
	shll	$8, %esi
	callq	_AV_WN32A
	movq	8(%rbx), %rax
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	leaq	(,%rcx,4), %rdi
	addq	(%rax,%r14,8), %rdi
	movl	-4(%r15), %esi
	shll	$8, %esi
	callq	_AV_WN32A
	movq	8(%rbx), %rax
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	leaq	(,%rcx,4), %rdi
	addq	(%rax,%r14,8), %rdi
	movl	(%r15), %esi
	shll	$8, %esi
	callq	_AV_WN32A
	incq	%r14
	movslq	(%r13), %rax
	addq	$16, %r15
	cmpq	%rax, %r14
	jl	LBB0_8
	jmp	LBB0_9
LBB0_10:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movl	4(%rbx), %ecx
	imull	(%r12), %ecx
	leal	3(%rcx), %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$2, %eax
	jmp	LBB0_11
LBB0_13:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-72(%rbp), %rsp                 ## 8-byte Reload
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_14
## %bb.12:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Packet is too small\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_NB_CHANNELS,4,2                ## @NB_CHANNELS
	.comm	_AV_SAMPLE_FMT_S32P,4,2         ## @AV_SAMPLE_FMT_S32P
L_.str.1:                               ## @.str.1
	.asciz	"Synchronization error\n"

	.no_dead_strip	_aptx_decode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aptx_decode_frame
_aptx_decode_frame:                     ; @aptx_decode_frame
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #64
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	x22, [x0]
	stur	x3, [x29, #-112]                ; 8-byte Folded Spill
	ldr	w8, [x3]
	ldr	w9, [x22]
	cmp	w8, w9
	b.ge	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
Lloh8:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	b	LBB0_12
LBB0_2:
	mov	x21, x2
	mov	x20, x1
Lloh11:
	adrp	x25, _NB_CHANNELS@GOTPAGE
Lloh12:
	ldr	x25, [x25, _NB_CHANNELS@GOTPAGEOFF]
	ldr	w10, [x25]
Lloh13:
	adrp	x11, _AV_SAMPLE_FMT_S32P@GOTPAGE
Lloh14:
	ldr	x11, [x11, _AV_SAMPLE_FMT_S32P@GOTPAGEOFF]
	lsl	w8, w8, #2
	sdiv	w8, w8, w9
	stp	w10, w8, [x1]
Lloh15:
	ldr	w9, [x11]
	str	w9, [x1, #16]
	mov	x0, x19
	mov	w2, #0
	bl	_ff_get_buffer
	tbnz	w0, #31, LBB0_12
; %bb.3:
	stp	x19, x21, [x29, #-136]          ; 16-byte Folded Spill
	ldr	w8, [x20, #4]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.4:
	mov	x26, #0
	mov	w19, #0
	stur	x22, [x29, #-120]               ; 8-byte Folded Spill
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldur	x8, [x29, #-104]                ; 8-byte Folded Reload
	mov	sp, x8
	ldur	x22, [x29, #-120]               ; 8-byte Folded Reload
	ldr	w8, [x22]
	ldur	w19, [x29, #-92]                ; 4-byte Folded Reload
	add	w19, w8, w19
	add	x26, x26, #4
	ldr	w8, [x20, #4]
	cmp	w8, w26
	b.le	LBB0_10
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	mov	x21, sp
	ldr	w8, [x25]
	lsl	x8, x8, #4
	mov	x9, x8
Lloh16:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh17:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x24, x9, x8
	mov	sp, x24
	ldur	x8, [x29, #-112]                ; 8-byte Folded Reload
	ldr	x8, [x8, #8]
	add	x1, x8, w19, sxtw #2
	mov	x0, x22
	mov	x2, x24
	bl	_aptx_decode_samples
	cbnz	x0, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	stur	x21, [x29, #-104]               ; 8-byte Folded Spill
	stur	w19, [x29, #-92]                ; 4-byte Folded Spill
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x21, #0
	lsl	w8, w26, #2
	and	x19, x8, #0xfffffff0
	orr	x22, x19, #0x4
	orr	x23, x19, #0x8
	orr	x28, x19, #0xc
	add	x24, x24, #8
LBB0_9:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x20, #8]
	lsl	x27, x21, #3
	ldr	x8, [x8, x27]
	add	x0, x8, x19, lsl #2
	ldur	w8, [x24, #-8]
	lsl	w1, w8, #8
	bl	_AV_WN32A
	ldr	x8, [x20, #8]
	ldr	x8, [x8, x27]
	add	x0, x8, x22, lsl #2
	ldur	w8, [x24, #-4]
	lsl	w1, w8, #8
	bl	_AV_WN32A
	ldr	x8, [x20, #8]
	ldr	x8, [x8, x27]
	add	x0, x8, x23, lsl #2
	ldr	w8, [x24]
	lsl	w1, w8, #8
	bl	_AV_WN32A
	ldr	x8, [x20, #8]
	ldr	x8, [x8, x27]
	add	x0, x8, x28, lsl #2
	ldr	w8, [x24, #4]
	lsl	w1, w8, #8
	bl	_AV_WN32A
	add	x21, x21, #1
	ldrsw	x8, [x25]
	add	x24, x24, #16
	cmp	x21, x8
	b.lt	LBB0_9
	b	LBB0_5
LBB0_10:
	mov	w8, #1
	ldur	x9, [x29, #-128]                ; 8-byte Folded Reload
	str	w8, [x9]
	ldr	w8, [x22]
	ldr	w9, [x20, #4]
	mul	w8, w9, w8
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w0, w8, #2
	b	LBB0_12
LBB0_11:
Lloh18:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x2, l_.str.1@PAGE
Lloh22:
	add	x2, x2, l_.str.1@PAGEOFF
	ldur	x0, [x29, #-136]                ; 8-byte Folded Reload
	bl	_av_log
Lloh23:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh24:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	mov	sp, x21
LBB0_12:
	ldur	x8, [x29, #-88]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Packet is too small\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_NB_CHANNELS,4,2                ; @NB_CHANNELS
	.comm	_AV_SAMPLE_FMT_S32P,4,2         ; @AV_SAMPLE_FMT_S32P
l_.str.1:                               ; @.str.1
	.asciz	"Synchronization error\n"

	.no_dead_strip	_aptx_decode_frame
.subsections_via_symbols
