	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function reset_block_bap
_reset_block_bap:                       ## @reset_block_bap
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	24(%rdi), %rcx
	movq	32(%rdi), %rax
	movq	(%rcx), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_2
## %bb.1:
	cmpl	$0, (%rdi)
	jne	LBB0_11
LBB0_2:
	movl	4(%rdi), %r8d
	testl	%r8d, %r8d
	js	LBB0_10
## %bb.3:
	movl	8(%rdi), %r10d
	movq	_AC3_MAX_COEFS@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %r14
	movslq	%r10d, %r11
	movq	%r14, %r9
	imulq	%r11, %r9
	incq	%r8
	andl	$-2, %r11d
	xorl	%edx, %edx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	leaq	(%rax,%r9,4), %rax
	incq	%rdx
	cmpq	%r8, %rdx
	je	LBB0_10
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	testl	%r10d, %r10d
	jle	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%ecx, %ecx
	cmpl	$1, %r10d
	je	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	16(%rdi), %rbx
	movq	24(%rdi), %rsi
	movq	(%rbx,%rdx,8), %rbx
	movslq	(%rbx,%rcx,4), %rbx
	imulq	%r14, %rbx
	leaq	(%rax,%rbx,4), %rbx
	movq	(%rsi,%rdx,8), %rsi
	movq	%rbx, (%rsi,%rcx,8)
	movq	16(%rdi), %rsi
	movq	24(%rdi), %rbx
	movq	(%rsi,%rdx,8), %rsi
	movslq	4(%rsi,%rcx,4), %rsi
	imulq	%r14, %rsi
	leaq	(%rax,%rsi,4), %rsi
	movq	(%rbx,%rdx,8), %rbx
	movq	%rsi, 8(%rbx,%rcx,8)
	addq	$2, %rcx
	cmpq	%rcx, %r11
	jne	LBB0_6
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	testb	$1, %r10b
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%rdi), %rsi
	movq	24(%rdi), %rbx
	movq	(%rsi,%rdx,8), %rsi
	movslq	(%rsi,%rcx,4), %rsi
	imulq	%r14, %rsi
	leaq	(%rax,%rsi,4), %rsi
	movq	(%rbx,%rdx,8), %rbx
	movq	%rsi, (%rbx,%rcx,8)
	jmp	LBB0_9
LBB0_10:
	movl	$1, (%rdi)
LBB0_11:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AC3_MAX_COEFS,4,2              ## @AC3_MAX_COEFS
	.no_dead_strip	_reset_block_bap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function reset_block_bap
_reset_block_bap:                       ; @reset_block_bap
	.cfi_startproc
; %bb.0:
	ldp	x9, x8, [x0, #24]
	ldr	x9, [x9]
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_3
; %bb.1:
	ldr	w9, [x0]
	cbz	w9, LBB0_3
; %bb.2:
	ret
LBB0_3:
	ldr	w13, [x0, #4]
	tbnz	w13, #31, LBB0_9
; %bb.4:
	mov	x9, #0
	ldr	w10, [x0, #8]
Lloh0:
	adrp	x11, _AC3_MAX_COEFS@GOTPAGE
Lloh1:
	ldr	x11, [x11, _AC3_MAX_COEFS@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x11]
	mul	w12, w11, w10
	sxtw	x12, w12
	add	x13, x13, #1
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x8, x8, x12, lsl #2
	add	x9, x9, #1
	cmp	x9, x13
	b.eq	LBB0_9
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	cmp	w10, #1
	b.lt	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x14, #0
LBB0_8:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x15, x9, #3
	ldp	x16, x17, [x0, #16]
	ldr	x16, [x16, x15]
	ldr	w16, [x16, x14, lsl #2]
	mul	w16, w16, w11
	add	x16, x8, w16, sxtw #2
	ldr	x15, [x17, x15]
	str	x16, [x15, x14, lsl #3]
	add	x14, x14, #1
	cmp	x10, x14
	b.ne	LBB0_8
	b	LBB0_5
LBB0_9:
	mov	w8, #1
	str	w8, [x0]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AC3_MAX_COEFS,4,2              ; @AC3_MAX_COEFS
	.no_dead_strip	_reset_block_bap
.subsections_via_symbols
