	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function subband_scale
_subband_scale:                         ## @subband_scale
	.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	%r9, -48(%rbp)                  ## 8-byte Spill
	movl	%r8d, %r13d
	movl	%ecx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	%edx, %r12d
	movl	%edx, %edi
	callq	_FFABS
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, %ecx
	sarl	$2, %ecx
	subl	%ecx, %ebx
	cmpl	$32, %ebx
	jl	LBB0_3
## %bb.1:
	testl	%r13d, %r13d
	jle	LBB0_17
## %bb.2:
	movl	%r13d, %esi
	shlq	$2, %rsi
	movq	%r14, %rdi
	callq	___bzero
	jmp	LBB0_17
LBB0_3:
	testl	%ebx, %ebx
	jle	LBB0_4
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	cmpl	$-31, %ebx
	jl	LBB0_18
## %bb.5:
	leal	31(%rbx), %ecx
	movl	$1, %r10d
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r10d
	testl	%r13d, %r13d
	jle	LBB0_17
## %bb.6:
	movq	_exp2tab@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	andl	$3, %eax
	movl	(%rcx,%rax,4), %eax
	addl	$32, %ebx
	movl	%r13d, %r8d
	xorl	%edi, %edi
	cmpl	$8, %r13d
	jb	LBB0_13
## %bb.7:
	movq	%r14, %rcx
	subq	%r15, %rcx
	cmpq	$32, %rcx
	jb	LBB0_13
## %bb.8:
	movl	%r8d, %edi
	andl	$-8, %edi
	movd	%eax, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movd	%r10d, %xmm1
	pshufd	$0, %xmm1, %xmm1                ## xmm1 = xmm1[0,0,0,0]
	movd	%ebx, %xmm2
	leaq	(,%r8,4), %rcx
	andq	$-32, %rcx
	xorl	%esi, %esi
	pmovzxdq	%xmm2, %xmm2                    ## xmm2 = xmm2[0],zero,xmm2[1],zero
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movdqu	%xmm4, (%r14,%rsi)
	movdqu	%xmm3, 16(%r14,%rsi)
	addq	$32, %rsi
	cmpq	%rsi, %rcx
	je	LBB0_12
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%r15,%rsi), %xmm4
	movdqu	16(%r15,%rsi), %xmm3
	pmulld	%xmm0, %xmm4
	pmulld	%xmm0, %xmm3
	paddd	%xmm1, %xmm4
	psrad	%xmm2, %xmm4
	paddd	%xmm1, %xmm3
	psrad	%xmm2, %xmm3
	testl	%r12d, %r12d
	jns	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	pxor	%xmm5, %xmm5
	psubd	%xmm4, %xmm5
	pxor	%xmm6, %xmm6
	psubd	%xmm3, %xmm6
	movdqa	%xmm5, %xmm4
	movdqa	%xmm6, %xmm3
	jmp	LBB0_11
LBB0_18:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_av_log                         ## TAILCALL
LBB0_12:
	cmpq	%r8, %rdi
	je	LBB0_17
LBB0_13:
	movq	%rdi, %r9
	notq	%r9
	testb	$1, %r8b
	je	LBB0_15
## %bb.14:
	movl	(%r15,%rdi,4), %esi
	imull	%eax, %esi
	addl	%r10d, %esi
	movl	%ebx, %ecx
	sarl	%cl, %esi
	movl	%esi, %ecx
	negl	%ecx
	testl	%r12d, %r12d
	cmovnsl	%esi, %ecx
	movl	%ecx, (%r14,%rdi,4)
	orq	$1, %rdi
LBB0_15:
	addq	%r8, %r9
	je	LBB0_17
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r15,%rdi,4), %esi
	imull	%eax, %esi
	addl	%r10d, %esi
	movl	%ebx, %ecx
	sarl	%cl, %esi
	movl	%esi, %ecx
	negl	%ecx
	testl	%r12d, %r12d
	cmovnsl	%esi, %ecx
	movl	%ecx, (%r14,%rdi,4)
	movl	4(%r15,%rdi,4), %esi
	imull	%eax, %esi
	addl	%r10d, %esi
	movl	%ebx, %ecx
	sarl	%cl, %esi
	movl	%esi, %ecx
	negl	%ecx
	testl	%r12d, %r12d
	cmovnsl	%esi, %ecx
	movl	%ecx, 4(%r14,%rdi,4)
	addq	$2, %rdi
	cmpq	%rdi, %r8
	jne	LBB0_16
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_exp2tab,8,3                    ## @exp2tab
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Overflow in subband_scale()\n"

	.no_dead_strip	_subband_scale
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function subband_scale
_subband_scale:                         ; @subband_scale
	.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	x23, x5
	mov	x22, x4
	mov	x24, x3
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	mov	x0, x2
	bl	_FFABS
	sub	w10, w24, w0, asr #2
	cmp	w10, #32
	b.lt	LBB0_3
; %bb.1:
	cmp	w22, #1
	b.lt	LBB0_4
; %bb.2:
	mov	w8, w22
	lsl	x1, x8, #2
	mov	x0, x20
	bl	_bzero
	b	LBB0_4
LBB0_3:
	cmp	w10, #0
	b.le	LBB0_5
LBB0_4:
	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
LBB0_5:
	cmn	w10, #31
	b.lt	LBB0_14
; %bb.6:
	cmp	w22, #1
	b.lt	LBB0_4
; %bb.7:
	mov	x11, #0
Lloh0:
	adrp	x8, _exp2tab@GOTPAGE
Lloh1:
	ldr	x8, [x8, _exp2tab@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	and	w9, w0, #0x3
	ldr	w8, [x8, w9, uxtw #2]
	add	w9, w10, #32
	add	w10, w10, #31
	mov	w12, #1
	lsl	w10, w12, w10
	mov	w12, w22
	cmp	w22, #16
	b.lo	LBB0_12
; %bb.8:
	sub	x13, x20, x21
	cmp	x13, #64
	b.lo	LBB0_12
; %bb.9:
	dup.4s	v0, w8
	dup.4s	v1, w10
	dup.4s	v3, w9
	and	x11, x12, #0xfffffff0
	add	x13, x20, #32
	add	x14, x21, #32
	fmov	s2, w19
	neg.4s	v3, v3
	mov	x15, x11
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	fmov	s4, wzr
	cmgt.4s	v4, v4, v2
	dup.4s	v4, v4[0]
	mov.16b	v5, v1
	ldp	q7, q6, [x14]
	mla.4s	v5, v6, v0
	sshl.4s	v5, v5, v3
	neg.4s	v6, v5
	bit.16b	v5, v6, v4
	mov.16b	v6, v1
	mla.4s	v6, v7, v0
	sshl.4s	v6, v6, v3
	mov.16b	v7, v1
	ldp	q17, q16, [x14, #-32]
	mla.4s	v7, v16, v0
	sshl.4s	v7, v7, v3
	neg.4s	v16, v7
	bit.16b	v7, v16, v4
	mov.16b	v16, v1
	mla.4s	v16, v17, v0
	sshl.4s	v16, v16, v3
	neg.4s	v17, v16
	bit.16b	v16, v17, v4
	neg.4s	v17, v6
	stp	q16, q7, [x13, #-32]
	bsl.16b	v4, v17, v6
	stp	q4, q5, [x13], #64
	add	x14, x14, #64
	subs	x15, x15, #16
	b.ne	LBB0_10
; %bb.11:
	cmp	x11, x12
	b.eq	LBB0_4
LBB0_12:
	lsl	x14, x11, #2
	add	x13, x20, x14
	add	x14, x21, x14
	sub	x11, x12, x11
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x14], #4
	madd	w12, w12, w8, w10
	asr	w12, w12, w9
	cmp	w19, #0
	cneg	w12, w12, lt
	str	w12, [x13], #4
	subs	x11, x11, #1
	b.ne	LBB0_13
	b	LBB0_4
LBB0_14:
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, x23
	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
	b	_av_log
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_exp2tab,8,3                    ; @exp2tab
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Overflow in subband_scale()\n"

	.no_dead_strip	_subband_scale
.subsections_via_symbols
