	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pad_last_frame
_pad_last_frame:                        ## @pad_last_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
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %r15
	xorl	%eax, %eax
	callq	_av_frame_alloc
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %rbx
	movl	20(%r12), %eax
	movl	%eax, 20(%rbx)
	movl	16(%r12), %eax
	movl	%eax, 16(%rbx)
	movl	12(%r12), %eax
	movl	%eax, 12(%rbx)
	movq	8(%r15), %rax
	movq	%rax, (%rbx)
	movq	%rbx, %rdi
	movl	$32, %esi
	callq	_av_frame_get_buffer
	testl	%eax, %eax
	js	LBB0_5
## %bb.2:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_av_frame_copy_props
	testl	%eax, %eax
	js	LBB0_5
## %bb.3:
	movl	8(%rbx), %edi
	movl	8(%r12), %esi
	movq	(%r12), %r8
	movl	(%r15), %eax
	movl	4(%r15), %r9d
	movl	%eax, (%rsp)
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_av_samples_copy
	testl	%eax, %eax
	js	LBB0_5
## %bb.4:
	movl	8(%rbx), %edi
	movq	(%r12), %rsi
	movq	(%rbx), %rdx
	subq	%rsi, %rdx
	movl	(%r15), %r8d
	movl	4(%r15), %ecx
	callq	_av_samples_set_silence
	testl	%eax, %eax
	js	LBB0_5
## %bb.8:
	movq	%rbx, (%r14)
	xorl	%r13d, %r13d
	jmp	LBB0_6
LBB0_5:
	movl	%eax, %r13d
	leaq	-48(%rbp), %rdi
	callq	_av_frame_free
LBB0_6:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_pad_last_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pad_last_frame
_pad_last_frame:                        ; @pad_last_frame
	.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	x22, x2
	mov	x19, x1
	mov	x21, x0
	bl	_av_frame_alloc
	str	x0, [sp, #8]
	cbz	x0, LBB0_8
; %bb.1:
	mov	x20, x0
	ldr	w8, [x22, #20]
	str	w8, [x0, #20]
	ldur	d0, [x22, #12]
	stur	d0, [x0, #12]
	ldr	x8, [x21, #8]
	str	x8, [x0]
	mov	w1, #32
	bl	_av_frame_get_buffer
	tbnz	w0, #31, LBB0_6
; %bb.2:
	mov	x0, x20
	mov	x1, x22
	bl	_av_frame_copy_props
	tbnz	w0, #31, LBB0_6
; %bb.3:
	ldr	w0, [x20, #8]
	ldr	w1, [x22, #8]
	ldr	x4, [x22]
	ldp	w6, w5, [x21]
	mov	w2, #0
	mov	w3, #0
	bl	_av_samples_copy
	tbnz	w0, #31, LBB0_6
; %bb.4:
	ldr	w0, [x20, #8]
	ldr	x1, [x22]
	ldr	x8, [x20]
	sub	x2, x8, x1
	ldp	w4, w3, [x21]
	bl	_av_samples_set_silence
	tbnz	w0, #31, LBB0_6
; %bb.5:
	mov	w23, #0
	str	x20, [x19]
	b	LBB0_7
LBB0_6:
	mov	x23, x0
	add	x0, sp, #8
	bl	_av_frame_free
LBB0_7:
	mov	x0, x23
	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
LBB0_8:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_pad_last_frame
.subsections_via_symbols
