	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_special_band_scalefactors
_set_special_band_scalefactors:         ## @set_special_band_scalefactors
	.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	24(%rsi), %eax
	testl	%eax, %eax
	jle	LBB0_29
## %bb.1:
	movq	%rsi, %r12
	movl	28(%rsi), %ecx
	movl	$-255, -44(%rbp)                ## 4-byte Folded Spill
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	24(%r12), %eax
	movl	-48(%rbp), %edi                 ## 4-byte Reload
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%r12), %rdx
	movslq	%edi, %rsi
	addl	(%rdx,%rsi,8), %edi
	cmpl	%eax, %edi
	jge	LBB0_14
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	testl	%ecx, %ecx
	jle	LBB0_13
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	movl	%edi, %eax
	shll	$4, %eax
	movslq	%eax, %r14
	leaq	(,%r14,8), %r13
	shlq	$2, %r14
	xorl	%r15d, %r15d
	jmp	LBB0_4
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	48(%r12), %rax
	addq	%r14, %rax
	movl	(%rax,%r15,4), %edi
	callq	_log2f
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%rax), %edi
	callq	_roundf
	movl	%eax, %edi
	movl	$-155, %esi
	movl	$100, %edx
	callq	_av_clip
	movq	8(%r12), %rcx
	addq	%r14, %rcx
	movl	%eax, (%rcx,%r15,4)
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=2
	incl	%ebx
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=2
	incq	%r15
	movslq	28(%r12), %rcx
	cmpq	%rcx, %r15
	jge	LBB0_12
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	16(%r12), %rax
	addq	%r13, %rax
	cmpq	$0, (%rax,%r15,8)
	jne	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	(%r12), %rax
	addq	%r13, %rax
	movq	(%rax,%r15,8), %rax
	movq	_INTENSITY_BT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	_INTENSITY_BT2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	_NOISE_BT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	40(%r12), %rax
	addq	%r14, %rax
	movl	(%rax,%r15,4), %edi
	callq	_log2f
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%rax), %edi
	callq	_ceilf
                                        ## kill: def $eax killed $eax def $rax
	leal	3(%rax), %edi
	movl	$-100, %esi
	movl	$155, %edx
	callq	_av_clip
	movq	8(%r12), %rcx
	addq	%r14, %rcx
	movl	%eax, (%rcx,%r15,4)
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	$-255, %ecx
	cmovel	%eax, %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_10
LBB0_14:
	testl	%ebx, %ebx
	je	LBB0_29
## %bb.15:
	testl	%eax, %eax
	jle	LBB0_29
## %bb.16:
	movl	28(%r12), %ecx
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_17 Depth=1
	movl	24(%r12), %eax
LBB0_28:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	32(%r12), %rdx
	movslq	%r14d, %rsi
	addl	(%rdx,%rsi,8), %r14d
	cmpl	%eax, %r14d
	jge	LBB0_29
LBB0_17:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_19 Depth 2
	testl	%ecx, %ecx
	jle	LBB0_28
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movl	%r14d, %eax
	shll	$4, %eax
	movslq	%eax, %rbx
	xorl	%r13d, %r13d
	jmp	LBB0_19
LBB0_22:                                ##   in Loop: Header=BB0_19 Depth=2
	movq	8(%r12), %rax
	movl	(%rax,%rbx,4), %edi
	movq	_SCALE_MAX_DIFF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %esi
	subl	%edx, %esi
	addl	%r15d, %edx
	callq	_av_clip
	movl	%eax, %r15d
LBB0_25:                                ##   in Loop: Header=BB0_19 Depth=2
	movq	8(%r12), %rcx
	movl	%eax, (%rcx,%rbx,4)
LBB0_26:                                ##   in Loop: Header=BB0_19 Depth=2
	incq	%r13
	movslq	28(%r12), %rcx
	incq	%rbx
	cmpq	%rcx, %r13
	jge	LBB0_27
LBB0_19:                                ##   Parent Loop BB0_17 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	16(%r12), %rax
	cmpq	$0, (%rax,%rbx,8)
	jne	LBB0_26
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=2
	movq	(%r12), %rax
	movq	(%rax,%rbx,8), %rax
	movq	_INTENSITY_BT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_19 Depth=2
	movq	_INTENSITY_BT2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_22
## %bb.23:                              ##   in Loop: Header=BB0_19 Depth=2
	movq	_NOISE_BT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_26
## %bb.24:                              ##   in Loop: Header=BB0_19 Depth=2
	movq	8(%r12), %rax
	movl	(%rax,%rbx,4), %edi
	movq	_SCALE_MAX_DIFF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %esi
	subl	%edx, %esi
	addl	%eax, %edx
	callq	_av_clip
	movl	%eax, %ecx
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_25
LBB0_29:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INTENSITY_BT,8,3               ## @INTENSITY_BT
	.comm	_INTENSITY_BT2,8,3              ## @INTENSITY_BT2
	.comm	_NOISE_BT,8,3                   ## @NOISE_BT
	.comm	_SCALE_MAX_DIFF,4,2             ## @SCALE_MAX_DIFF
	.no_dead_strip	_set_special_band_scalefactors
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_special_band_scalefactors
_set_special_band_scalefactors:         ; @set_special_band_scalefactors
	.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
	ldr	w8, [x1, #24]
	cmp	w8, #1
	b.lt	LBB0_27
; %bb.1:
	mov	x19, x1
	mov	w24, #0
	mov	w25, #0
	ldr	w9, [x1, #28]
	mov	w20, #-255
Lloh0:
	adrp	x21, _INTENSITY_BT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _INTENSITY_BT@GOTPAGEOFF]
Lloh2:
	adrp	x22, _INTENSITY_BT2@GOTPAGE
Lloh3:
	ldr	x22, [x22, _INTENSITY_BT2@GOTPAGEOFF]
Lloh4:
	adrp	x23, _NOISE_BT@GOTPAGE
Lloh5:
	ldr	x23, [x23, _NOISE_BT@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #24]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x10, [x19, #32]
	ldr	x10, [x10, w25, sxtw #3]
	add	w25, w25, w10
	cmp	w25, w8
	b.ge	LBB0_13
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	cmp	w9, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x26, #0
	lsl	w8, w25, #4
	sxtw	x27, w8
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_9 Depth=2
	ldr	x8, [x19, #48]
	lsl	x28, x27, #2
	ldr	w0, [x8, x28]
	bl	_log2f
	lsl	w0, w0, #1
	bl	_roundf
	mov	w1, #-155
	mov	w2, #100
	bl	_av_clip
	ldr	x8, [x19, #8]
	str	w0, [x8, x28]
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=2
	add	w24, w24, #1
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	add	x26, x26, #1
	ldrsw	x9, [x19, #28]
	add	x27, x27, #1
	cmp	x26, x9
	b.ge	LBB0_2
LBB0_9:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19, #16]
	ldr	x8, [x8, x27, lsl #3]
	cbnz	x8, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	x8, [x19]
	ldr	x8, [x8, x27, lsl #3]
	ldr	x9, [x21]
	ldr	x10, [x22]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	x8, [x19, #40]
	lsl	x28, x27, #2
	ldr	w0, [x8, x28]
	bl	_log2f
	lsl	w0, w0, #1
	bl	_ceilf
	add	w0, w0, #3
	mov	w1, #-100
	mov	w2, #155
	bl	_av_clip
	ldr	x8, [x19, #8]
	str	w0, [x8, x28]
	cmn	w20, #255
	csel	w20, w0, w20, eq
	b	LBB0_7
LBB0_13:
	cbz	w24, LBB0_27
; %bb.14:
	cmp	w8, #1
	b.lt	LBB0_27
; %bb.15:
	mov	w26, #0
	mov	w24, #0
	ldr	w9, [x19, #28]
Lloh6:
	adrp	x25, _SCALE_MAX_DIFF@GOTPAGE
Lloh7:
	ldr	x25, [x25, _SCALE_MAX_DIFF@GOTPAGEOFF]
	b	LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_18 Depth=1
	ldr	w8, [x19, #24]
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	ldr	x10, [x19, #32]
	ldr	x10, [x10, w24, sxtw #3]
	add	w24, w24, w10
	cmp	w24, w8
	b.ge	LBB0_27
LBB0_18:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_23 Depth 2
	cmp	w9, #1
	b.lt	LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x27, #0
	lsl	w8, w24, #4
	sxtw	x28, w8
	b	LBB0_23
LBB0_20:                                ;   in Loop: Header=BB0_23 Depth=2
	ldr	x8, [x19, #8]
	ldr	w0, [x8, x28, lsl #2]
	ldr	w8, [x25]
	sub	w1, w26, w8
	add	w2, w8, w26
	bl	_av_clip
	mov	x26, x0
LBB0_21:                                ;   in Loop: Header=BB0_23 Depth=2
	ldr	x8, [x19, #8]
	str	w0, [x8, x28, lsl #2]
LBB0_22:                                ;   in Loop: Header=BB0_23 Depth=2
	add	x27, x27, #1
	ldrsw	x9, [x19, #28]
	add	x28, x28, #1
	cmp	x27, x9
	b.ge	LBB0_16
LBB0_23:                                ;   Parent Loop BB0_18 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19, #16]
	ldr	x8, [x8, x28, lsl #3]
	cbnz	x8, LBB0_22
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=2
	ldr	x8, [x19]
	ldr	x8, [x8, x28, lsl #3]
	ldr	x9, [x21]
	ldr	x10, [x22]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_20
; %bb.25:                               ;   in Loop: Header=BB0_23 Depth=2
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_22
; %bb.26:                               ;   in Loop: Header=BB0_23 Depth=2
	ldr	x8, [x19, #8]
	ldr	w0, [x8, x28, lsl #2]
	ldr	w8, [x25]
	sub	w1, w20, w8
	add	w2, w8, w20
	bl	_av_clip
	mov	x20, x0
	b	LBB0_21
LBB0_27:
	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
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_INTENSITY_BT,8,3               ; @INTENSITY_BT
	.comm	_INTENSITY_BT2,8,3              ; @INTENSITY_BT2
	.comm	_NOISE_BT,8,3                   ; @NOISE_BT
	.comm	_SCALE_MAX_DIFF,4,2             ; @SCALE_MAX_DIFF
	.no_dead_strip	_set_special_band_scalefactors
.subsections_via_symbols
