	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sbr_hf_gen
_sbr_hf_gen:                            ## @sbr_hf_gen
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -88(%rbp)                  ## 8-byte Spill
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	(%rsi), %rax
	movl	4(%rax), %ebx
	movl	8(%rsi), %ecx
	testl	%ecx, %ecx
	jle	LBB0_1
## %bb.2:
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movslq	32(%rbp), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	16(%r15), %rax
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r14
	movslq	%ecx, %rdx
	cmpq	%rdx, %r14
	jge	LBB0_15
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
                                        ##       Child Loop BB0_7 Depth 3
	cmpl	$0, (%rax,%r14,4)
	jle	LBB0_14
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	%ebx, %rbx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_7 Depth 3
	movslq	32(%r15), %rax
	cmpl	%eax, %r12d
	jg	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	40(%r15), %rcx
	movslq	%r12d, %rdx
	leal	1(%rax), %esi
	decq	%rdx
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_3 Depth=1
                                        ##     Parent Loop BB0_5 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movslq	4(%rcx,%rdx,4), %rdi
	cmpq	%rdi, %rbx
	jl	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=3
	incl	%r12d
	incq	%rdx
	cmpq	%rax, %rdx
	jl	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=2
	movl	%esi, %r12d
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=2
	testl	%r12d, %r12d
	jle	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=2
	movq	24(%r15), %rax
	movslq	(%rax,%r14,4), %rax
	movslq	%r13d, %r13
	addq	%r13, %rax
	decl	%r12d
	movq	_ENVELOPE_ADJUSTMENT_OFFSET@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	leaq	(%rbx,%rbx,4), %rdx
	shlq	$6, %rdx
	addq	-48(%rbp), %rdx                 ## 8-byte Folded Reload
	leaq	(%rdx,%rcx,8), %rdi
	leaq	(%rax,%rax,4), %rdx
	shlq	$6, %rdx
	addq	-72(%rbp), %rdx                 ## 8-byte Folded Reload
	leaq	(%rdx,%rcx,8), %rsi
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,8), %rdx
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,8), %rcx
	movq	16(%rbp), %rax
	movl	(%rax,%r12,4), %r8d
	movq	24(%rbp), %r10
	movl	(%r10), %r9d
	addl	%r9d, %r9d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%r10,%rax,4), %eax
	addl	%eax, %eax
	movl	%eax, (%rsp)
	callq	*56(%r15)
	incl	%r13d
	incq	%rbx
	movq	16(%r15), %rax
	cmpl	(%rax,%r14,4), %r13d
	jl	LBB0_5
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	8(%r15), %ecx
	jmp	LBB0_14
LBB0_11:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movl	%ebx, %ecx
	callq	_av_log
	movl	$-1, %r14d
	jmp	LBB0_18
LBB0_1:
	movl	%ebx, %eax
LBB0_16:
	movq	48(%r15), %rcx
	addl	4(%rcx), %eax
	xorl	%r14d, %r14d
	subl	%ebx, %eax
	jle	LBB0_18
## %bb.17:
	movslq	%ebx, %rcx
	leaq	(%rcx,%rcx,4), %rcx
	shlq	$6, %rcx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	%rcx, %rdi
	shll	$6, %eax
	leal	(%rax,%rax,4), %edx
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_memset
LBB0_18:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	(%r15), %rax
	movl	4(%rax), %eax
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ERROR : no subband found for frequency %d\n"

	.comm	_ENVELOPE_ADJUSTMENT_OFFSET,4,2 ## @ENVELOPE_ADJUSTMENT_OFFSET
	.no_dead_strip	_sbr_hf_gen
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sbr_hf_gen
_sbr_hf_gen:                            ; @sbr_hf_gen
	.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
	stp	x5, x6, [sp, #8]                ; 16-byte Folded Spill
	str	x2, [sp, #24]                   ; 8-byte Folded Spill
	mov	x20, x1
	ldr	x8, [x1]
	ldr	w27, [x8, #4]
	ldr	w9, [x1, #8]
	cmp	w9, #1
	b.lt	LBB0_14
; %bb.1:
	mov	x21, x7
	mov	x24, x4
	mov	x25, x3
	str	x0, [sp]                        ; 8-byte Folded Spill
	mov	x28, #0
	mov	w26, #0
	ldr	w8, [x29, #16]
	sxtw	x19, w8
	ldr	x8, [x20, #16]
	mov	w22, #320
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x28, x28, #1
	cmp	x28, w9, sxtw
	b.ge	LBB0_19
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
                                        ;       Child Loop BB0_7 Depth 3
	ldr	w10, [x8, x28, lsl #2]
	cmp	w10, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w23, #0
	sxtw	x27, w27
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_7 Depth 3
	ldrsw	x9, [x20, #32]
	cmp	w26, w9
	b.gt	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	x10, [x20, #40]
	add	w8, w9, #1
	sub	x9, x9, w26, sxtw
	add	x9, x9, #1
	add	x10, x10, w26, sxtw #2
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_5 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldrsw	x11, [x10]
	cmp	x27, x11
	b.lt	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=3
	add	w26, w26, #1
	add	x10, x10, #4
	subs	x9, x9, #1
	b.ne	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	x26, x8
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=2
	cmp	w26, #0
	b.le	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=2
	ldr	x8, [x20, #24]
	ldrsw	x8, [x8, x28, lsl #2]
	add	x8, x8, w23, sxtw
	sub	w26, w26, #1
	ldr	x9, [x20, #56]
Lloh0:
	adrp	x10, _ENVELOPE_ADJUSTMENT_OFFSET@GOTPAGE
Lloh1:
	ldr	x10, [x10, _ENVELOPE_ADJUSTMENT_OFFSET@GOTPAGEOFF]
Lloh2:
	ldrsw	x10, [x10]
	ldr	x11, [sp, #24]                  ; 8-byte Folded Reload
	madd	x11, x27, x22, x11
	lsl	x10, x10, #3
	add	x0, x11, x10
	madd	x11, x8, x22, x25
	add	x1, x11, x10
	lsl	x8, x8, #3
	add	x2, x24, x8
	ldr	x10, [sp, #16]                  ; 8-byte Folded Reload
	ldr	w4, [x10, w26, uxtw #2]
	ldr	x10, [sp, #8]                   ; 8-byte Folded Reload
	add	x3, x10, x8
	ldr	w8, [x21]
	lsl	w5, w8, #1
	ldr	w8, [x21, x19, lsl #2]
	lsl	w6, w8, #1
	blr	x9
	add	w23, w23, #1
	add	x27, x27, #1
	ldr	x8, [x20, #16]
	ldr	w9, [x8, x28, lsl #2]
	cmp	w23, w9
	b.lt	LBB0_5
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x20, #8]
                                        ; kill: def $w27 killed $w27 killed $x27 def $x27
	b	LBB0_2
LBB0_13:
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	ldr	w0, [x8]
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	x3, x27
	bl	_av_log
	mov	w0, #-1
	b	LBB0_18
LBB0_14:
	mov	x8, x27
LBB0_15:
	ldr	x9, [x20, #48]
	ldr	w9, [x9, #4]
	add	w8, w8, w9
	subs	w8, w8, w27
	b.le	LBB0_17
; %bb.16:
	mov	w9, #320
	ldr	x10, [sp, #24]                  ; 8-byte Folded Reload
	smaddl	x0, w27, w9, x10
	add	w8, w8, w8, lsl #2
	lsl	w2, w8, #6
	mov	w1, #0
	bl	_memset
LBB0_17:
	mov	w0, #0
LBB0_18:
	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
LBB0_19:
	ldr	x8, [x20]
	ldr	w8, [x8, #4]
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ERROR : no subband found for frequency %d\n"

	.comm	_ENVELOPE_ADJUSTMENT_OFFSET,4,2 ; @ENVELOPE_ADJUSTMENT_OFFSET
	.no_dead_strip	_sbr_hf_gen
.subsections_via_symbols
