	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_ac3_adjust_frame_size       ## -- Begin function ff_ac3_adjust_frame_size
	.p2align	4, 0x90
_ff_ac3_adjust_frame_size:              ## @ff_ac3_adjust_frame_size
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %eax
	movl	4(%rdi), %edx
	movl	12(%rdi), %r8d
	movl	8(%rdi), %esi
	cmpl	%edx, %eax
	jge	LBB0_2
LBB0_5:
	movl	%esi, %ecx
	jmp	LBB0_6
LBB0_2:
	movl	%esi, %ecx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	subl	%r8d, %ecx
	jl	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	subl	%edx, %eax
	movl	%ecx, %esi
	cmpl	%edx, %eax
	jge	LBB0_3
LBB0_6:
	imull	%eax, %r8d
	imull	%ecx, %edx
	xorl	%esi, %esi
	cmpl	%edx, %r8d
	setl	%sil
	addl	%esi, %esi
	addl	20(%rdi), %esi
	movl	%esi, 16(%rdi)
	leal	(%rax,%rsi,8), %eax
	movl	%eax, (%rdi)
	movq	_AC3_BLOCK_SIZE@GOTPCREL(%rip), %rax
	movl	24(%rdi), %edx
	imull	(%rax), %edx
	addl	%ecx, %edx
	movl	%edx, 8(%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AC3_BLOCK_SIZE,4,2             ## @AC3_BLOCK_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_ac3_adjust_frame_size       ; -- Begin function ff_ac3_adjust_frame_size
	.p2align	2
_ff_ac3_adjust_frame_size:              ; @ff_ac3_adjust_frame_size
	.cfi_startproc
; %bb.0:
	ldp	w8, w9, [x0]
	ldp	w12, w10, [x0, #8]
	cmp	w8, w9
	b.ge	LBB0_2
LBB0_1:
	mov	x11, x12
	b	LBB0_4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	subs	w11, w12, w10
	b.lt	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w8, w8, w9
	cmp	w8, w9
	mov	x12, x11
	b.ge	LBB0_2
LBB0_4:
	mul	w10, w10, w8
	mul	w9, w11, w9
	cmp	w10, w9
	cset	w9, lt
	ldp	w10, w12, [x0, #20]
	add	w9, w10, w9, lsl #1
	str	w9, [x0, #16]
	add	w8, w8, w9, lsl #3
	str	w8, [x0]
Lloh0:
	adrp	x8, _AC3_BLOCK_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AC3_BLOCK_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	madd	w8, w12, w8, w11
	str	w8, [x0, #8]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AC3_BLOCK_SIZE,4,2             ; @AC3_BLOCK_SIZE
.subsections_via_symbols
