	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function opus_init_resample
_opus_init_resample:                    ## @opus_init_resample
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movaps	l___const.opus_init_resample.delayptr(%rip), %xmm0
	movaps	%xmm0, -48(%rbp)
	movl	16(%rdi), %edi
	movl	20(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%ecx, %ecx
	callq	_av_opt_set_int
	movl	16(%rbx), %edi
	callq	_swr_init
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	16(%rbx), %edi
	movq	_silk_resample_delay@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rbx), %rcx
	movl	(%rax,%rcx,4), %r8d
	leaq	-48(%rbp), %rcx
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_swr_convert
	testl	%eax, %eax
	jns	LBB0_5
## %bb.3:
	movl	%eax, %r15d
	movl	(%rbx), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_4
LBB0_1:
	movl	%eax, %r15d
	movl	(%rbx), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
LBB0_4:
	callq	_av_log
	movl	%r15d, %r14d
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @opus_init_resample.delay
_opus_init_resample.delay:
	.space	64

	.section	__DATA,__const
	.p2align	4                               ## @__const.opus_init_resample.delayptr
l___const.opus_init_resample.delayptr:
	.quad	_opus_init_resample.delay
	.quad	_opus_init_resample.delay

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"in_sample_rate"

	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"Error opening the resampler.\n"

	.comm	_silk_resample_delay,8,3        ## @silk_resample_delay
L_.str.2:                               ## @.str.2
	.asciz	"Error feeding initial silence to the resampler.\n"

	.no_dead_strip	_opus_init_resample
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function opus_init_resample
_opus_init_resample:                    ; @opus_init_resample
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, l___const.opus_init_resample.delayptr@PAGE
Lloh4:
	add	x8, x8, l___const.opus_init_resample.delayptr@PAGEOFF
Lloh5:
	ldr	q0, [x8]
	str	q0, [sp]
	ldr	w0, [x0, #16]
	ldr	w2, [x19, #20]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	w3, #0
	bl	_av_opt_set_int
	ldr	w0, [x19, #16]
	bl	_swr_init
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldr	w0, [x19, #16]
Lloh8:
	adrp	x8, _silk_resample_delay@GOTPAGE
Lloh9:
	ldr	x8, [x8, _silk_resample_delay@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	x9, [x19, #8]
	ldr	w4, [x8, x9, lsl #2]
	mov	x3, sp
	mov	x1, #0
	mov	w2, #0
	bl	_swr_convert
	mov	w20, #0
	tbz	w0, #31, LBB0_4
; %bb.2:
	mov	x21, x0
	ldr	w0, [x19]
Lloh11:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x2, l_.str.2@PAGE
Lloh15:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_av_log
	mov	x20, x21
	b	LBB0_4
LBB0_3:
	mov	x20, x0
	ldr	w0, [x19]
Lloh16:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x2, l_.str.1@PAGE
Lloh20:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_av_log
LBB0_4:
	ldr	x8, [sp, #24]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x20
	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
	add	sp, sp, #80
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAddLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @opus_init_resample.delay
_opus_init_resample.delay:
	.space	64

	.section	__DATA,__const
	.p2align	3                               ; @__const.opus_init_resample.delayptr
l___const.opus_init_resample.delayptr:
	.quad	_opus_init_resample.delay
	.quad	_opus_init_resample.delay

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"in_sample_rate"

	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"Error opening the resampler.\n"

	.comm	_silk_resample_delay,8,3        ; @silk_resample_delay
l_.str.2:                               ; @.str.2
	.asciz	"Error feeding initial silence to the resampler.\n"

	.no_dead_strip	_opus_init_resample
.subsections_via_symbols
