	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_resampler
_init_resampler:                        ## @init_resampler
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movl	12(%rsi), %edi
	callq	_av_get_default_channel_layout
	movl	%eax, %r13d
	movl	8(%rbx), %r14d
	movq	(%rbx), %r15
	movl	12(%r12), %edi
	callq	_av_get_default_channel_layout
	movl	8(%r12), %r9d
	subq	$8, %rsp
	xorl	%edi, %edi
	movl	%r13d, %esi
	movl	%r14d, %edx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r15, %rcx
	movl	%eax, %r8d
	pushq	$0
	pushq	$0
	pushq	(%r12)
	callq	_swr_alloc_set_opts
	addq	$32, %rsp
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	(%rbx), %rax
	xorl	%edi, %edi
	cmpq	(%r12), %rax
	sete	%dil
	callq	_av_assert0
	movq	(%r14), %rdi
	callq	_swr_init
	movl	%eax, %ebx
	testl	%eax, %eax
	movl	$0, %eax
	jns	LBB0_3
## %bb.2:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_fprintf
	movq	%r14, %rdi
	callq	_swr_free
	movl	%ebx, %eax
LBB0_3:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not allocate resample context\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"Could not open resample context\n"

	.no_dead_strip	_init_resampler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_resampler
_init_resampler:                        ; @init_resampler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	w0, [x1, #12]
	bl	_av_get_default_channel_layout
	mov	x22, x0
	ldr	w23, [x21, #8]
	ldr	x24, [x21]
	ldr	w0, [x20, #12]
	bl	_av_get_default_channel_layout
	mov	x4, x0
	ldr	w5, [x20, #8]
	ldr	x6, [x20]
	str	xzr, [sp]
	mov	x0, #0
	mov	x1, x22
	mov	x2, x23
	mov	x3, x24
	mov	w7, #0
	bl	_swr_alloc_set_opts
	str	x0, [x19]
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x21]
	ldr	x9, [x20]
	cmp	x8, x9
	cset	w0, eq
	bl	_av_assert0
	ldr	x0, [x19]
	bl	_swr_init
	tbnz	w0, #31, LBB0_4
; %bb.2:
	mov	w20, #0
	b	LBB0_5
LBB0_3:
Lloh0:
	adrp	x8, _stderr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	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
	add	sp, sp, #80
	b	_AVERROR
LBB0_4:
	mov	x20, x0
Lloh8:
	adrp	x8, _stderr@GOTPAGE
Lloh9:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
	mov	x0, x19
	bl	_swr_free
LBB0_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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not allocate resample context\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"Could not open resample context\n"

	.no_dead_strip	_init_resampler
.subsections_via_symbols
