	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function encode_subband
_encode_subband:                        ## @encode_subband
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $ecx killed $ecx def $rcx
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rsi, %rbx
	movl	(%r8), %esi
	movl	4(%r8), %r11d
	movl	(%rdi), %r15d
	movl	4(%rdi), %r10d
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	leal	1(%rdx), %eax
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	imull	%esi, %eax
	cltd
	idivl	%r15d
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	leal	1(%rcx), %esi
	imull	%r11d, %esi
	movl	%r11d, %eax
	imull	%ecx, %eax
	cltd
	idivl	%r10d
	movl	%eax, %r13d
	movl	%esi, %eax
	cltd
	idivl	%r10d
	movl	%eax, %r14d
	movq	16(%r8), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%r8, -104(%rbp)                 ## 8-byte Spill
	movslq	8(%r8), %r12
	movq	8(%rdi), %rax
	movslq	%r9d, %rcx
	movq	(%rax,%rcx,8), %rax
	movq	_ff_dirac_qscale_tab@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rdx,%rcx,4), %edi
	movl	(%rax), %ecx
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	movl	4(%rax), %eax
	movl	%eax, -88(%rbp)                 ## 4-byte Spill
	callq	_av_log2
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movl	%r14d, -84(%rbp)                ## 4-byte Spill
	cmpl	%r14d, %r13d
	jge	LBB0_8
## %bb.1:
	shll	$2, -68(%rbp)                   ## 4-byte Folded Spill
	addl	$32, -64(%rbp)                  ## 4-byte Folded Spill
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	imull	-56(%rbp), %eax                 ## 4-byte Folded Reload
	cltd
	idivl	%r15d
	movslq	%r13d, %rcx
	imulq	%rcx, %r12
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%r12,8), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	movslq	%eax, %rcx
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %r15d
	movq	%rcx, %rax
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	subl	%ecx, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movslq	8(%rax), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,8), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	incl	%r13d
	cmpl	-84(%rbp), %r13d                ## 4-byte Folded Reload
	je	LBB0_8
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movl	-80(%rbp), %eax                 ## 4-byte Reload
	cmpl	-60(%rbp), %eax                 ## 4-byte Folded Reload
	jge	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx,8), %r14
	xorl	%r13d, %r13d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=2
	incq	%r13
	cmpl	%r13d, %r15d
	je	LBB0_7
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r14,%r13,8), %rdi
	callq	_FFABS
	movl	%eax, %edi
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	movl	-88(%rbp), %edx                 ## 4-byte Reload
	movl	-64(%rbp), %ecx                 ## 4-byte Reload
	callq	_QUANT
	movq	%rax, %r12
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_put_vc2_ue_uint
	testq	%r12, %r12
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	(%r14,%r13,8), %rdx
	shrq	$63, %rdx
	movq	%rbx, %rdi
	movl	$1, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_put_bits
	jmp	LBB0_6
LBB0_8:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_dirac_qscale_tab,8,3        ## @ff_dirac_qscale_tab
	.no_dead_strip	_encode_subband
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function encode_subband
_encode_subband:                        ; @encode_subband
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x24, x2
	mov	x20, x1
	ldp	w26, w8, [x4]
	mul	w9, w8, w3
	ldp	w19, w10, [x0]
	sdiv	w25, w9, w10
	add	w8, w8, w9
	ldr	x27, [x4, #16]
	str	x4, [sp, #24]                   ; 8-byte Folded Spill
	ldr	w28, [x4, #8]
	ldr	x9, [x0, #8]
	ldr	x9, [x9, w5, sxtw #3]
Lloh0:
	adrp	x11, _ff_dirac_qscale_tab@GOTPAGE
Lloh1:
	ldr	x11, [x11, _ff_dirac_qscale_tab@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x11]
	ldr	w0, [x11, w5, sxtw #2]
	ldp	w22, w21, [x9]
	sdiv	w23, w8, w10
	bl	_av_log2
	str	w23, [sp, #20]                  ; 4-byte Folded Spill
	cmp	w25, w23
	b.ge	LBB0_8
; %bb.1:
	madd	w8, w26, w24, w26
	lsl	w22, w22, #2
	add	w23, w0, #32
	mul	w9, w26, w24
	sdiv	w9, w9, w19
	mul	w10, w28, w25
	add	x27, x27, w10, sxtw #3
	sxtw	x28, w9
	sdiv	w8, w8, w19
	str	w8, [sp, #16]                   ; 4-byte Folded Spill
	sub	w8, w8, w9
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldrsw	x8, [x8, #8]
	add	x27, x27, x8, lsl #3
	add	w25, w25, #1
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	cmp	w25, w8
	b.eq	LBB0_8
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	w8, [sp, #16]                   ; 4-byte Folded Reload
	cmp	w28, w8
	b.ge	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x26, x27, x28, lsl #3
	ldr	w19, [sp, #12]                  ; 4-byte Folded Reload
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	add	x26, x26, #8
	subs	w19, w19, #1
	b.eq	LBB0_2
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x0, [x26]
	bl	_FFABS
	mov	x1, x22
	mov	x2, x21
	mov	x3, x23
	bl	_QUANT
	mov	x24, x0
	mov	x0, x20
	mov	x1, x24
	bl	_put_vc2_ue_uint
	cbz	x24, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	x8, [x26]
	lsr	x2, x8, #63
	mov	x0, x20
	mov	w1, #1
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_put_bits
	b	LBB0_5
LBB0_8:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_dirac_qscale_tab,8,3        ; @ff_dirac_qscale_tab
	.no_dead_strip	_encode_subband
.subsections_via_symbols
