	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function invert_initial_buffer
_invert_initial_buffer:                 ## @invert_initial_buffer
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %rbx
	movq	%r8, %r14
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %r12
	addl	(%r9), %ecx
	movl	(%rdi), %esi
	incl	%esi
	movl	%ecx, %edi
	callq	_FFMIN
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpq	$0, 8(%r12)
	js	LBB0_1
LBB0_22:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	(%r12), %eax
	leal	(%rax,%rax), %esi
	incl	%esi
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_swri_realloc_audio
	testl	%eax, %eax
	js	LBB0_22
## %bb.2:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %r15d
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, %r15d
	jge	LBB0_9
## %bb.3:
	movl	(%r13), %eax
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	incl	%r15d
	cmpl	%ecx, %r15d
	je	LBB0_9
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	testl	%eax, %eax
	jle	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%r14), %rax
	movl	(%r12), %ecx
	addl	%r15d, %ecx
	movl	16(%r12), %edx
	imull	%edx, %ecx
	movslq	%ecx, %rdi
	addq	(%rax,%rbx,8), %rdi
	movq	8(%r13), %rax
	movl	%r15d, %ecx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	subl	(%rsi), %ecx
	imull	%edx, %ecx
	movslq	%ecx, %rsi
	addq	(%rax,%rbx,8), %rsi
	callq	_memcpy
	incq	%rbx
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	jmp	LBB0_8
LBB0_9:
	movl	(%r12), %eax
	cmpl	%eax, %ecx
	jle	LBB0_21
## %bb.10:
	testl	%eax, %eax
	jle	LBB0_16
## %bb.11:
	movl	(%r13), %ecx
	movl	$1, %r15d
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_12 Depth=1
	leal	1(%r15), %edx
	cmpl	%eax, %r15d
	movl	%edx, %r15d
	jge	LBB0_16
LBB0_12:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
	testl	%ecx, %ecx
	jle	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_12 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%r14), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movl	%eax, %esi
	subl	%r15d, %esi
	movl	16(%r12), %edx
	imull	%edx, %esi
	movslq	%esi, %rdi
	addq	%rcx, %rdi
	addl	%r15d, %eax
	imull	%edx, %eax
	movslq	%eax, %rsi
	addq	%rcx, %rsi
	callq	_memcpy
	incq	%rbx
	movslq	(%r13), %rcx
	movl	(%r12), %eax
	cmpq	%rcx, %rbx
	jl	LBB0_14
	jmp	LBB0_15
LBB0_21:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%ecx, (%rax)
	movl	(%r12), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_22
LBB0_16:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %ecx
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	subl	%ecx, %r15d
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	%eax, (%r14)
	movq	8(%r12), %rcx
	testq	%rcx, %rcx
	jns	LBB0_20
## %bb.17:
	movq	24(%r12), %rdx
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	decl	%eax
	addq	%rdx, %rcx
	js	LBB0_18
## %bb.19:
	movl	%eax, (%r14)
	movq	%rcx, 8(%r12)
LBB0_20:
	movl	(%r12), %eax
	movl	(%rbx), %edi
	addl	%eax, %edi
	leal	(%rax,%rax), %esi
	incl	%esi
	callq	_FFMAX
	subl	(%r14), %eax
	movl	%eax, (%rbx)
	movl	%r15d, %edi
	xorl	%esi, %esi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_FFMAX                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.no_dead_strip	_invert_initial_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function invert_initial_buffer
_invert_initial_buffer:                 ; @invert_initial_buffer
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x5
	mov	x20, x4
	mov	x22, x2
	mov	x23, x1
	mov	x21, x0
	ldr	w8, [x5]
	add	w0, w8, w3
	ldr	w8, [x21]
	add	w1, w8, #1
	bl	_FFMIN
	ldr	x8, [x21, #8]
	tbnz	x8, #63, LBB0_3
; %bb.1:
	mov	w0, #0
LBB0_2:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x24, x0
	ldr	w8, [x21]
	mov	w1, #1
	bfi	w1, w8, #1, #31
	mov	x0, x23
	bl	_swri_realloc_audio
	tbnz	w0, #31, LBB0_2
; %bb.4:
	ldr	w25, [x19]
	cmp	w25, w24
	b.ge	LBB0_10
; %bb.5:
	ldr	w8, [x22]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	w25, w25, #1
	cmp	w25, w24
	b.eq	LBB0_10
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x26, #0
LBB0_9:                                 ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x23, #8]
	lsl	x9, x26, #3
	ldr	x8, [x8, x9]
	ldr	w10, [x21]
	add	w10, w10, w25
	ldr	w2, [x21, #16]
	mul	w10, w10, w2
	add	x0, x8, w10, sxtw
	ldr	x8, [x22, #8]
	ldr	x8, [x8, x9]
	ldr	w9, [x19]
	sub	w9, w25, w9
	mul	w9, w9, w2
	add	x1, x8, w9, sxtw
	bl	_memcpy
	add	x26, x26, #1
	ldrsw	x8, [x22]
	cmp	x26, x8
	b.lt	LBB0_9
	b	LBB0_6
LBB0_10:
	ldr	w8, [x21]
	cmp	w24, w8
	b.le	LBB0_17
; %bb.11:
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.12:
	ldr	w9, [x22]
	mov	w25, #1
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	w10, w25, #1
	cmp	w25, w8
	mov	x25, x10
	b.ge	LBB0_18
LBB0_14:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_16 Depth 2
	cmp	w9, #1
	b.lt	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x26, #0
LBB0_16:                                ;   Parent Loop BB0_14 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x23, #8]
	ldr	x9, [x9, x26, lsl #3]
	sub	w10, w8, w25
	ldr	w2, [x21, #16]
	mul	w10, w10, w2
	add	x0, x9, w10, sxtw
	add	w8, w8, w25
	mul	w8, w8, w2
	add	x1, x9, w8, sxtw
	bl	_memcpy
	add	x26, x26, #1
	ldrsw	x9, [x22]
	ldr	w8, [x21]
	cmp	x26, x9
	b.lt	LBB0_16
	b	LBB0_13
LBB0_17:
	str	w24, [x19]
	ldr	w8, [x21]
	str	w8, [x20]
Lloh0:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_2
LBB0_18:
	ldr	w9, [x19]
	sub	w22, w24, w9
	str	w8, [x20]
	ldr	x9, [x21, #8]
	tbz	x9, #63, LBB0_22
; %bb.19:
	ldr	x10, [x21, #24]
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	sub	w8, w8, #1
	adds	x9, x10, x9
	b.mi	LBB0_20
; %bb.21:
	str	w8, [x20]
	str	x9, [x21, #8]
LBB0_22:
	ldr	w8, [x19]
	ldr	w9, [x21]
	add	w0, w9, w8
	mov	w1, #1
	bfi	w1, w9, #1, #31
	bl	_FFMAX
	ldr	w8, [x20]
	sub	w8, w0, w8
	str	w8, [x19]
	mov	x0, x22
	mov	w1, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_FFMAX
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.no_dead_strip	_invert_initial_buffer
.subsections_via_symbols
