	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_audio_rechunk_interleave    ## -- Begin function ff_audio_rechunk_interleave
	.p2align	4, 0x90
_ff_audio_rechunk_interleave:           ## @ff_audio_rechunk_interleave
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r12
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r13d
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	testq	%rdx, %rdx
	je	LBB0_8
## %bb.1:
	movq	%rdx, %r14
	movq	8(%rbx), %rax
	movq	(%rdx), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %r15
	movq	(%rcx), %rax
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.2:
	movl	8(%r15), %edi
	callq	_av_fifo_size
	movl	8(%r14), %edx
	addl	%edx, %eax
	cmpl	(%r15), %eax
	jbe	LBB0_5
## %bb.3:
	movl	8(%r15), %edi
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%eax, %esi
	callq	_av_fifo_realloc2
	testq	%rax, %rax
	js	LBB0_6
## %bb.4:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r15)
	movl	8(%r14), %edx
LBB0_5:
	movl	8(%r15), %edi
	movl	32(%r14), %esi
	xorl	%ecx, %ecx
	callq	_av_fifo_generic_write
	jmp	LBB0_8
LBB0_7:
	movl	4(%r15), %eax
	movl	%eax, 24(%r14)
	movl	%eax, 28(%r14)
	addl	16(%r14), %eax
	movl	%eax, 4(%r15)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_ff_interleave_add_packet
	testl	%eax, %eax
	js	LBB0_18
LBB0_8:
	movl	(%rbx), %eax
	testl	%eax, %eax
	jle	LBB0_17
## %bb.9:
	xorl	%r14d, %r14d
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rdx
	xorps	%xmm0, %xmm0
	leaq	-112(%rbp), %r15
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_10 Depth=1
	incq	%r14
	movslq	%eax, %rcx
	cmpq	%rcx, %r14
	jge	LBB0_17
LBB0_10:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	movq	8(%rbx), %rcx
	movq	(%rcx,%r14,8), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rcx
	cmpq	(%rdx), %rcx
	jne	LBB0_16
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -112(%rbp)
	movq	$0, -80(%rbp)
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_10 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	movl	%r13d, %ecx
	callq	_interleave_new_audio_packet
	testl	%eax, %eax
	jle	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_ff_interleave_add_packet
	testl	%eax, %eax
	jns	LBB0_12
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rdx
	jne	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	(%rbx), %eax
	xorps	%xmm0, %xmm0
	jmp	LBB0_16
LBB0_17:
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	xorl	%edx, %edx
	movl	%r13d, %ecx
	callq	*-64(%rbp)                      ## 8-byte Folded Reload
LBB0_18:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AVMEDIA_TYPE_AUDIO,8,3         ## @AVMEDIA_TYPE_AUDIO
	.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_rechunk_interleave    ; -- Begin function ff_audio_rechunk_interleave
	.p2align	2
_ff_audio_rechunk_interleave:           ; @ff_audio_rechunk_interleave
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x22, x5
	mov	x19, x4
	mov	x20, x3
	mov	x21, x1
	mov	x23, x0
Lloh0:
	adrp	x26, _AVMEDIA_TYPE_AUDIO@GOTPAGE
Lloh1:
	ldr	x26, [x26, _AVMEDIA_TYPE_AUDIO@GOTPAGEOFF]
	cbz	x2, LBB0_7
; %bb.1:
	mov	x24, x2
	ldr	x8, [x23, #8]
	ldr	x9, [x2]
	ldr	x8, [x8, x9, lsl #3]
	ldp	x8, x27, [x8]
	ldr	x8, [x8]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.2:
	ldr	w0, [x27, #8]
	bl	_av_fifo_size
	ldr	w2, [x24, #8]
	ldr	w8, [x27]
	add	w25, w2, w0
	cmp	w25, w8
	b.ls	LBB0_5
; %bb.3:
	ldr	w0, [x27, #8]
	mov	x1, x25
	bl	_av_fifo_realloc2
	tbnz	x0, #63, LBB0_18
; %bb.4:
	str	w25, [x27]
	ldr	w2, [x24, #8]
LBB0_5:
	ldr	w0, [x27, #8]
	ldr	w1, [x24, #32]
	mov	x3, #0
	bl	_av_fifo_generic_write
	b	LBB0_7
LBB0_6:
	ldr	w8, [x27, #4]
	stp	w8, w8, [x24, #24]
	ldr	w9, [x24, #16]
	add	w8, w8, w9
	str	w8, [x27, #4]
	mov	x0, x23
	mov	x1, x24
	mov	x2, x22
	bl	_ff_interleave_add_packet
	tbnz	w0, #31, LBB0_17
LBB0_7:
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.8:
	mov	x24, #0
	movi.2d	v0, #0000000000000000
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x24, x24, #1
	cmp	x24, w8, sxtw
	b.ge	LBB0_16
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	ldr	x9, [x23, #8]
	ldr	x9, [x9, x24, lsl #3]
	ldr	x9, [x9]
	ldr	x9, [x9]
	ldr	x10, [x26]
	cmp	x9, x10
	b.ne	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	str	xzr, [sp, #32]
	stp	q0, q0, [sp]
LBB0_12:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x1, sp
	mov	x0, x23
	mov	x2, x24
	mov	x3, x20
	bl	_interleave_new_audio_packet
	cmp	w0, #1
	b.lt	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	mov	x1, sp
	mov	x0, x23
	mov	x2, x22
	bl	_ff_interleave_add_packet
	tbz	w0, #31, LBB0_12
	b	LBB0_17
LBB0_14:                                ;   in Loop: Header=BB0_10 Depth=1
	cbnz	w0, LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [x23]
	movi.2d	v0, #0000000000000000
	b	LBB0_9
LBB0_16:
	mov	x0, x23
	mov	x1, x21
	mov	x2, #0
	mov	x3, x20
	blr	x19
LBB0_17:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_18:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	b	_AVERROR
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AVMEDIA_TYPE_AUDIO,8,3         ; @AVMEDIA_TYPE_AUDIO
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
