	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_avcodec_fill_audio_frame       ## -- Begin function avcodec_fill_audio_frame
	.p2align	4, 0x90
_avcodec_fill_audio_frame:              ## @avcodec_fill_audio_frame
	.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
	movl	%r9d, %r14d
	movl	%r8d, %r15d
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, %r13d
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movl	16(%rdi), %edx
	xorl	%edi, %edi
	movl	%r13d, %ecx
	movl	%r9d, %r8d
	callq	_av_samples_get_buffer_size
	cmpl	%r15d, %eax
	jle	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_3:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	movl	%r13d, %edi
	callq	_av_sample_fmt_is_planar
	movq	_AV_NUM_DATA_POINTERS@GOTPCREL(%rip), %r15
	testl	%eax, %eax
	je	LBB0_7
## %bb.4:
	cmpl	%r12d, (%r15)
	jge	LBB0_7
## %bb.5:
	movl	%r12d, %edi
	movl	$4, %esi
	callq	_av_mallocz_array
	movq	%rax, %rdi
	movq	%rax, (%rbx)
	testq	%rax, %rax
	movq	%r14, %rdx
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	jne	LBB0_8
## %bb.6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_7:
	movq	8(%rbx), %rdi
	movq	%rdi, (%rbx)
	movq	%r14, %rdx
	movl	-44(%rbp), %r14d                ## 4-byte Reload
LBB0_8:
	movq	24(%rbx), %rsi
	movl	16(%rbx), %r8d
	movl	%r14d, (%rsp)
	movl	%r12d, %ecx
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	callq	_av_samples_fill_arrays
	movl	%eax, %r14d
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	testl	%r14d, %r14d
	js	LBB0_9
## %bb.11:
	cmpq	%rcx, %rax
	je	LBB0_15
## %bb.12:
	cmpl	$0, (%r15)
	jle	LBB0_15
## %bb.13:
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rdx,4), %esi
	movl	%esi, (%rcx,%rdx,4)
	incq	%rdx
	movslq	(%r15), %rsi
	cmpq	%rsi, %rdx
	jl	LBB0_14
	jmp	LBB0_15
LBB0_9:
	cmpq	%rcx, %rax
	je	LBB0_15
## %bb.10:
	movq	%rbx, %rdi
	callq	_av_freep
LBB0_15:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AV_NUM_DATA_POINTERS,4,2       ## @AV_NUM_DATA_POINTERS
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_avcodec_fill_audio_frame       ; -- Begin function avcodec_fill_audio_frame
	.p2align	2
_avcodec_fill_audio_frame:              ; @avcodec_fill_audio_frame
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x5
	mov	x24, x4
	mov	x22, x3
	mov	x21, x2
	mov	x23, x1
	mov	x19, x0
	ldr	w2, [x0, #16]
	mov	x0, #0
	mov	x3, x21
	mov	x4, x5
	bl	_av_samples_get_buffer_size
	cmp	w0, w24
	b.le	LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_2:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_3:
	mov	x0, x21
	bl	_av_sample_fmt_is_planar
Lloh2:
	adrp	x24, _AV_NUM_DATA_POINTERS@GOTPAGE
Lloh3:
	ldr	x24, [x24, _AV_NUM_DATA_POINTERS@GOTPAGEOFF]
	cbz	w0, LBB0_7
; %bb.4:
	ldr	w8, [x24]
	cmp	w8, w23
	b.ge	LBB0_7
; %bb.5:
	mov	x0, x23
	mov	w1, #4
	bl	_av_mallocz_array
	str	x0, [x19]
	cbnz	x0, LBB0_8
; %bb.6:
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_2
LBB0_7:
	ldr	x0, [x19, #8]
	str	x0, [x19]
LBB0_8:
	ldr	x1, [x19, #24]
	ldr	w4, [x19, #16]
	mov	x2, x22
	mov	x3, x23
	mov	x5, x21
	mov	x6, x20
	bl	_av_samples_fill_arrays
	mov	x20, x0
	ldp	x8, x9, [x19]
	tbnz	w0, #31, LBB0_13
; %bb.9:
	cmp	x8, x9
	b.eq	LBB0_15
; %bb.10:
	ldr	w10, [x24]
	cmp	w10, #1
	b.lt	LBB0_15
; %bb.11:
	mov	x10, #0
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	lsl	x11, x10, #2
	ldr	w12, [x8, x11]
	str	w12, [x9, x11]
	add	x10, x10, #1
	ldrsw	x11, [x24]
	cmp	x10, x11
	b.lt	LBB0_12
	b	LBB0_15
LBB0_13:
	cmp	x8, x9
	b.eq	LBB0_15
; %bb.14:
	mov	x0, x19
	bl	_av_freep
LBB0_15:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AV_NUM_DATA_POINTERS,4,2       ; @AV_NUM_DATA_POINTERS
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
