	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_wordlen_weights
_add_wordlen_weights:                   ## @add_wordlen_weights
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $edx killed $edx def $rdx
	cmpl	$0, (%rdi)
	jle	LBB0_5
## %bb.1:
	movq	_atrac3p_wl_weights@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movl	(%rsi), %eax
	leal	(%rax,%rax,2), %eax
	addl	%edx, %eax
	decl	%eax
	cltq
	movq	(%r8,%rax,8), %r9
	movq	8(%rsi), %rsi
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rsi,%rax,4), %r8d
	addl	(%r9,%rax,8), %r8d
	movl	%r8d, (%rsi,%rax,4)
	cmpl	$8, %r8d
	jae	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rax
	movslq	(%rdi), %rdx
	cmpq	%rdx, %rax
	jl	LBB0_2
LBB0_5:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_3:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rcx, %rdi
	movl	%eax, %ecx
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_atrac3p_wl_weights,8,3         ## @atrac3p_wl_weights
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WL index out of range: pos=%d, val=%d!\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_add_wordlen_weights
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_wordlen_weights
_add_wordlen_weights:                   ; @add_wordlen_weights
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x8, #0
Lloh0:
	adrp	x9, _atrac3p_wl_weights@GOTPAGE
Lloh1:
	ldr	x9, [x9, _atrac3p_wl_weights@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w10, [x1]
	add	w10, w10, w10, lsl #1
	add	w10, w2, w10
	sub	w10, w10, #1
	ldr	x9, [x9, w10, sxtw #3]
	ldr	x10, [x1, #8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9, x8, lsl #3]
	lsl	x12, x8, #2
	ldr	w13, [x10, x12]
	add	w4, w13, w11
	str	w4, [x10, x12]
	cmp	w4, #8
	b.hs	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x8, #1
	ldrsw	x11, [x0]
	cmp	x8, x11
	b.lt	LBB0_2
LBB0_4:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh3:
	adrp	x9, _AV_LOG_ERROR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x3
	mov	x3, x8
	bl	_av_log
Lloh8:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_atrac3p_wl_weights,8,3         ; @atrac3p_wl_weights
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WL index out of range: pos=%d, val=%d!\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_add_wordlen_weights
.subsections_via_symbols
