	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function spx_strategy
LCPI0_0:
	.long	5                               ## 0x5
	.long	2                               ## 0x2
	.space	4
	.space	4
LCPI0_1:
	.long	4294967291                      ## 0xfffffffb
	.long	4294967294                      ## 0xfffffffe
	.space	4
	.space	4
LCPI0_2:
	.long	2                               ## 0x2
	.long	5                               ## 0x5
	.space	4
	.space	4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_spx_strategy:                          ## @spx_strategy
	.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	%rdi, %r14
	leaq	56(%rdi), %r15
	movq	8(%rdi), %rax
	movq	_AC3_CHMODE_MONO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	jne	LBB0_1
## %bb.13:
	movq	16(%r14), %rax
	movl	$1, 4(%rax)
	jmp	LBB0_4
LBB0_1:
	movl	(%r14), %r12d
	testl	%r12d, %r12d
	jle	LBB0_4
## %bb.2:
	incq	%r12
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_get_bits1
	movq	16(%r14), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_3
LBB0_4:
	movq	%r15, %rdi
	movl	$2, %esi
	callq	_get_bits
	movl	%eax, %r12d
	movq	%r15, %rdi
	movl	$3, %esi
	callq	_get_bits
	movl	%eax, %r13d
	movq	%r15, %rdi
	movl	$3, %esi
	callq	_get_bits
	movd	%r13d, %xmm0
	pinsrd	$1, %eax, %xmm0
	movdqa	%xmm0, %xmm1
	pcmpgtd	LCPI0_0(%rip), %xmm1
	movdqa	LCPI0_1(%rip), %xmm2            ## xmm2 = <4294967291,4294967294,u,u>
	paddd	%xmm0, %xmm2
	pand	%xmm1, %xmm2
	paddd	%xmm0, %xmm2
	paddd	LCPI0_2(%rip), %xmm2
	movd	%xmm2, %eax
	pextrd	$1, %xmm2, %r9d
	cmpl	%r9d, %eax
	jge	LBB0_5
## %bb.6:
	shll	$2, %r12d
	leal	(%r12,%r12,2), %edx
	leal	(%r12,%r12,2), %ecx
	addl	$25, %ecx
	leal	(,%rax,4), %esi
	leal	(%rsi,%rsi,2), %edi
	leal	(%rsi,%rsi,2), %r8d
	addl	$25, %r8d
	cmpl	%edi, %edx
	jge	LBB0_7
## %bb.9:
	movl	%ecx, 28(%r14)
	movl	%r8d, 32(%r14)
	movq	_USE_FIXED@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	jne	LBB0_11
## %bb.10:
	leal	(%r9,%r9,2), %ecx
	leal	25(,%rcx,4), %ecx
	movl	%ecx, 24(%r14)
LBB0_11:
	movl	48(%r14), %edx
	movq	_ff_eac3_default_spx_band_struct@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	leaq	44(%r14), %r11
	movl	36(%r14), %r12d
	movl	40(%r14), %r14d
	subq	$8, %rsp
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	xorl	%ecx, %ecx
	movl	%eax, %r8d
                                        ## kill: def $r9d killed $r9d killed $r9
	pushq	$4
	pushq	%r12
	pushq	%r14
	pushq	%r11
	pushq	%r10
	callq	_decode_band_structure
	addq	$48, %rsp
	jmp	LBB0_12
LBB0_5:
	movl	52(%r14), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str(%rip), %rdx
	movl	%eax, %ecx
	movl	%r9d, %r8d
	jmp	LBB0_8
LBB0_7:
	movl	52(%r14), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
LBB0_8:
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AC3_CHMODE_MONO,8,3            ## @AC3_CHMODE_MONO
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid spectral extension range (%d >= %d)\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.1:                               ## @.str.1
	.asciz	"invalid spectral extension copy start bin (%d >= %d)\n"

	.comm	_USE_FIXED,4,2                  ## @USE_FIXED
	.comm	_ff_eac3_default_spx_band_struct,4,2 ## @ff_eac3_default_spx_band_struct
	.comm	_end_freq_inv_tab,8,3           ## @end_freq_inv_tab
	.no_dead_strip	_spx_strategy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function spx_strategy
_spx_strategy:                          ; @spx_strategy
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x0
	add	x20, x0, #56
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _AC3_CHMODE_MONO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AC3_CHMODE_MONO@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x21, #16]
	mov	w9, #1
	str	w9, [x8, #4]
	b	LBB0_5
LBB0_2:
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	lsl	x8, x8, #2
	add	x22, x8, #4
	mov	w23, #4
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_get_bits1
	ldr	x8, [x21, #16]
	str	w0, [x8, x23]
	add	x23, x23, #4
	cmp	x22, x23
	b.ne	LBB0_4
LBB0_5:
	mov	x0, x20
	mov	w1, #2
	bl	_get_bits
	mov	x23, x0
	mov	x0, x20
	mov	w1, #3
	bl	_get_bits
	subs	w8, w0, #5
	csel	w8, w8, wzr, gt
	add	w8, w0, w8
	add	w22, w8, #2
	mov	x0, x20
	mov	w1, #3
	bl	_get_bits
	subs	w8, w0, #2
	csel	w8, w8, wzr, gt
	add	w8, w0, w8
	add	w5, w8, #5
	cmp	w22, w5
	b.ge	LBB0_10
; %bb.6:
	add	w8, w23, w23, lsl #1
	lsl	w8, w8, #2
	add	w3, w8, #25
	add	w9, w22, w22, lsl #1
	lsl	w9, w9, #2
	add	w4, w9, #25
	cmp	w8, w9
	b.ge	LBB0_11
; %bb.7:
	stp	w3, w4, [x21, #28]
Lloh3:
	adrp	x8, _USE_FIXED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _USE_FIXED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cbnz	w8, LBB0_9
; %bb.8:
	mov	w8, #12
	mul	w8, w5, w8
	add	w8, w8, #25
	str	w8, [x21, #24]
LBB0_9:
	ldr	w2, [x21, #48]
Lloh6:
	adrp	x8, _ff_eac3_default_spx_band_struct@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ff_eac3_default_spx_band_struct@GOTPAGEOFF]
Lloh8:
	ldr	w6, [x8]
	add	x7, x21, #44
	ldp	w9, w8, [x21, #36]
	mov	w10, #4
	stp	w9, w10, [sp, #4]
	str	w8, [sp]
	mov	x0, x20
	mov	x1, x19
	mov	w3, #0
	mov	x4, x22
	bl	_decode_band_structure
	mov	w0, #0
	b	LBB0_13
LBB0_10:
	ldr	w0, [x21, #52]
Lloh9:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x22
	mov	x4, x5
	b	LBB0_12
LBB0_11:
	ldr	w0, [x21, #52]
Lloh14:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x2, l_.str.1@PAGE
Lloh18:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_12:
	bl	_av_log
Lloh19:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
LBB0_13:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_AC3_CHMODE_MONO,8,3            ; @AC3_CHMODE_MONO
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid spectral extension range (%d >= %d)\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.1:                               ; @.str.1
	.asciz	"invalid spectral extension copy start bin (%d >= %d)\n"

	.comm	_USE_FIXED,4,2                  ; @USE_FIXED
	.comm	_ff_eac3_default_spx_band_struct,4,2 ; @ff_eac3_default_spx_band_struct
	.comm	_end_freq_inv_tab,8,3           ; @end_freq_inv_tab
	.no_dead_strip	_spx_strategy
.subsections_via_symbols
