	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_swri_realloc_audio             ## -- Begin function swri_realloc_audio
	.p2align	4, 0x90
_swri_realloc_audio:                    ## @swri_realloc_audio
	.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
	testl	%esi, %esi
	js	LBB0_2
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %r13
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %eax
	shrl	$31, %eax
	addl	%ecx, %eax
	sarl	%eax
	movl	(%rdi), %edi
	cltd
	idivl	%edi
	cltd
	idivl	4(%r13)
	cmpl	%esi, %eax
	jge	LBB0_4
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_4:
	xorl	%eax, %eax
	cmpl	%r14d, 8(%r13)
	jge	LBB0_19
## %bb.5:
	addl	%r14d, %r14d
	imull	%r14d, %edi
	movq	_ALIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_FFALIGN
	movl	%eax, %r15d
	movups	(%r13), %xmm0
	movups	16(%r13), %xmm1
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm1, -64(%rbp)
	movl	(%r13), %edi
	callq	_av_assert0
	movl	4(%r13), %edi
	callq	_av_assert0
	movl	4(%r13), %esi
	movl	%r15d, %edi
	callq	_av_mallocz_array
	movl	%eax, 12(%r13)
	testl	%eax, %eax
	je	LBB0_20
## %bb.6:
	movl	4(%r13), %ecx
	testl	%ecx, %ecx
	jle	LBB0_15
## %bb.7:
	movq	-64(%rbp), %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 24(%r13)
	movl	%r15d, %edx
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	(%r13), %edx
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	%ebx, %esi
	imull	%edx, %esi
	addl	%eax, %esi
	movslq	%esi, %rdi
	movq	16(%r13), %rax
	movq	%rdi, (%rax,%rbx,8)
	movl	8(%r13), %edx
	testl	%edx, %edx
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpq	$0, 24(%r13)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	(%r12,%rbx,8), %rsi
	imull	(%r13), %edx
	callq	_memcpy
	movl	4(%r13), %ecx
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%rbx
	movslq	%ecx, %rax
	cmpq	%rax, %rbx
	jge	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	12(%r13), %eax
	jmp	LBB0_8
LBB0_15:
	movl	8(%r13), %edx
	testl	%edx, %edx
	je	LBB0_18
## %bb.16:
	cmpq	$0, 24(%r13)
	jne	LBB0_18
## %bb.17:
	movq	16(%r13), %rax
	movq	(%rax), %rdi
	movq	-64(%rbp), %rax
	movq	(%rax), %rsi
	imull	%ecx, %edx
	imull	(%r13), %edx
	callq	_memcpy
LBB0_18:
	leaq	-68(%rbp), %rdi
	callq	_av_freep
	movl	%r14d, 8(%r13)
	movl	$1, %eax
LBB0_19:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ALIGN,4,2                      ## @ALIGN
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_swri_realloc_audio             ; -- Begin function swri_realloc_audio
	.p2align	2
_swri_realloc_audio:                    ; @swri_realloc_audio
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	tbnz	w1, #31, LBB0_2
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w9, w8, #1
	ldp	w8, w10, [x0]
	sdiv	w9, w9, w8
	sdiv	w9, w9, w10
	cmp	w9, w1
	b.ge	LBB0_4
LBB0_2:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_AVERROR
LBB0_4:
	ldr	w9, [x19, #8]
	cmp	w9, w1
	b.ge	LBB0_15
; %bb.5:
	lsl	w21, w1, #1
	mul	w0, w8, w21
Lloh5:
	adrp	x8, _ALIGN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ALIGN@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_FFALIGN
	mov	x20, x0
	ldp	q0, q1, [x19]
	stp	q0, q1, [sp]
	ldr	w0, [x19]
	bl	_av_assert0
	ldr	w0, [x19, #4]
	bl	_av_assert0
	ldr	w1, [x19, #4]
	mov	x0, x20
	bl	_av_mallocz_array
	str	w0, [x19, #12]
	cbz	w0, LBB0_21
; %bb.6:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.7:
	mov	x22, #0
	ldr	x23, [sp, #16]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x19, #24]
	mov	x9, x20
	cbnz	x10, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w9, [x19]
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=1
	madd	w9, w9, w22, w0
	sxtw	x0, w9
	ldr	x9, [x19, #16]
	str	x0, [x9, x22, lsl #3]
	ldr	w9, [x19, #8]
	cbz	w9, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x10, [x19, #24]
	cbz	x10, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x1, [x23, x22, lsl #3]
	ldr	w8, [x19]
	mul	w2, w8, w9
	bl	_memcpy
	ldr	w8, [x19, #4]
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x22, x22, #1
	cmp	x22, w8, sxtw
	b.ge	LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [x19, #12]
	b	LBB0_8
LBB0_15:
	mov	w0, #0
	b	LBB0_20
LBB0_16:
	ldr	w9, [x19, #8]
	cbz	w9, LBB0_19
; %bb.17:
	ldr	x10, [x19, #24]
	cbnz	x10, LBB0_19
; %bb.18:
	ldr	x10, [x19, #16]
	ldr	x0, [x10]
	ldr	x10, [sp, #16]
	ldr	x1, [x10]
	mul	w8, w9, w8
	ldr	w9, [x19]
	mul	w2, w8, w9
	bl	_memcpy
LBB0_19:
	mov	x8, sp
	orr	x0, x8, #0xc
	bl	_av_freep
	str	w21, [x19, #8]
	mov	w0, #1
LBB0_20:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_21:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ALIGN,4,2                      ; @ALIGN
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
