	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_audio_interleave_init       ## -- Begin function ff_audio_interleave_init
	.p2align	4, 0x90
_ff_audio_interleave_init:              ## @ff_audio_interleave_init
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_EINVAL@GOTPCREL(%rip), %rbx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	testq	%rsi, %rsi
	je	LBB0_13
## %bb.1:
	movl	%edx, %r14d
	testl	%edx, %edx
	je	LBB0_12
## %bb.2:
	movl	(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_11
## %bb.3:
	xorl	%ebx, %ebx
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %r13
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_11
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rdi), %rcx
	movq	(%rcx,%rbx,8), %rdx
	movq	(%rdx), %rcx
	movq	(%rcx), %rsi
	cmpq	(%r13), %rsi
	jne	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%rdx), %r12
	movl	8(%rcx), %r15d
	movl	12(%rcx), %edi
	callq	_av_get_bits_per_sample
                                        ## kill: def $eax killed $eax def $rax
	imull	%r15d, %eax
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovsl	%ecx, %eax
	sarl	$3, %eax
	movl	%eax, (%r12)
	cmpl	$14, %ecx
	jbe	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 8(%r12)
	movq	%rcx, 16(%r12)
	movl	%r14d, 32(%r12)
	imull	$100, (%rcx), %eax
	movl	%eax, 24(%r12)
	movl	(%rcx), %esi
	movl	$100, %edi
	callq	_av_fifo_alloc_array
	movl	%eax, 28(%r12)
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	(%rdi), %eax
	jmp	LBB0_10
LBB0_11:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_av_log
	jmp	LBB0_13
LBB0_6:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_log
	movq	_EINVAL@GOTPCREL(%rip), %rbx
	jmp	LBB0_13
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rbx
LBB0_13:
	movl	(%rbx), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"timebase not set for audio interleave\n"

	.comm	_AVMEDIA_TYPE_AUDIO,8,3         ## @AVMEDIA_TYPE_AUDIO
L_.str.1:                               ## @.str.1
	.asciz	"could not compute sample size\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_audio_interleave_init       ; -- Begin function ff_audio_interleave_init
	.p2align	2
_ff_audio_interleave_init:              ; @ff_audio_interleave_init
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cbz	x1, LBB0_13
; %bb.1:
	mov	x20, x2
	mov	x19, x0
	cbz	w20, LBB0_10
; %bb.2:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.3:
	mov	x21, x1
	mov	x23, #0
Lloh0:
	adrp	x24, _AVMEDIA_TYPE_AUDIO@GOTPAGE
Lloh1:
	ldr	x24, [x24, _AVMEDIA_TYPE_AUDIO@GOTPAGEOFF]
	mov	w25, #100
Lloh2:
	adrp	x22, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x22, [x22, _ENOMEM@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x23, x23, #1
	cmp	x23, w8, sxtw
	b.ge	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #8]
	ldr	x10, [x9, x23, lsl #3]
	ldr	x9, [x10]
	ldr	x11, [x9]
	ldr	x12, [x24]
	cmp	x11, x12
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x26, [x10, #8]
	ldp	w27, w0, [x9, #8]
	bl	_av_get_bits_per_sample
	mul	w8, w0, w27
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #3
	str	w8, [x26]
	cmp	w9, #14
	b.ls	LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	stp	x21, x21, [x26, #8]
	str	w20, [x26, #32]
	ldr	w8, [x21]
	mul	w8, w8, w25
	str	w8, [x26, #24]
	ldr	w1, [x21]
	mov	w0, #100
	bl	_av_fifo_alloc_array
	str	w0, [x26, #28]
	cbz	w0, LBB0_14
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x19]
	b	LBB0_4
LBB0_9:
	mov	w0, #0
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_10:
Lloh4:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x2, l_.str@PAGE
Lloh8:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_12
LBB0_11:
Lloh9:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x2, l_.str.1@PAGE
Lloh13:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_12:
	mov	x0, x19
	bl	_av_log
LBB0_13:
Lloh14:
	adrp	x22, _EINVAL@GOTPAGE
Lloh15:
	ldr	x22, [x22, _EINVAL@GOTPAGEOFF]
LBB0_14:
	ldr	w0, [x22]
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_AVERROR
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"timebase not set for audio interleave\n"

	.comm	_AVMEDIA_TYPE_AUDIO,8,3         ; @AVMEDIA_TYPE_AUDIO
l_.str.1:                               ; @.str.1
	.asciz	"could not compute sample size\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
