	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amc_fill_frame
_amc_fill_frame:                        ## @amc_fill_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r15
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	(%rdi), %rbx
	movq	24(%rbx), %rax
	movq	(%rax), %r12
	movl	16(%rbx), %edi
	movl	%r8d, %esi
	movl	%ecx, %edx
	movq	%r9, %rcx
	callq	_SDL_VoutAndroid_obtainBufferProxy
	movl	%eax, 20(%r13)
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	12(%rbx), %eax
	movl	%eax, 16(%r13)
	movl	8(%rbx), %eax
	movl	%eax, 12(%r13)
	movq	_IJK_AV_PIX_FMT__ANDROID_MEDIACODEC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r13)
	movq	(%rbx), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r13)
	movl	(%r15), %edi
	movq	_AV_TIME_BASE_Q@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r12), %rax
	movl	(%rax), %edx
	callq	_av_rescale_q
	movl	%eax, %ecx
	movl	%eax, (%r13)
	xorl	%eax, %eax
	movl	$1, %edx
	testl	%ecx, %ecx
	jns	LBB0_4
## %bb.3:
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%r13)
	jmp	LBB0_4
LBB0_1:
	movl	$-1, %eax
	xorl	%edx, %edx
LBB0_4:
	movl	%edx, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IJK_AV_PIX_FMT__ANDROID_MEDIACODEC,4,2 ## @IJK_AV_PIX_FMT__ANDROID_MEDIACODEC
	.comm	_AV_TIME_BASE_Q,4,2             ## @AV_TIME_BASE_Q
	.comm	_AV_NOPTS_VALUE,4,2             ## @AV_NOPTS_VALUE
	.no_dead_strip	_amc_fill_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amc_fill_frame
_amc_fill_frame:                        ; @amc_fill_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	x21, x5
	mov	x19, x2
	mov	x20, x1
	ldr	x23, [x0]
	ldr	x8, [x23, #24]
	ldr	x22, [x8]
	ldr	w0, [x23, #16]
	mov	x1, x4
	mov	x2, x3
	mov	x3, x5
	bl	_SDL_VoutAndroid_obtainBufferProxy
	str	w0, [x20, #20]
	cbz	w0, LBB0_3
; %bb.1:
	ldr	d0, [x23, #8]
Lloh0:
	adrp	x8, _IJK_AV_PIX_FMT__ANDROID_MEDIACODEC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IJK_AV_PIX_FMT__ANDROID_MEDIACODEC@GOTPAGEOFF]
	stur	d0, [x20, #12]
Lloh2:
	ldr	w8, [x8]
	ldr	x9, [x23]
	ldr	w9, [x9]
	stp	w9, w8, [x20, #4]
	ldr	w0, [x21]
Lloh3:
	adrp	x8, _AV_TIME_BASE_Q@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_TIME_BASE_Q@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	x8, [x22]
	ldr	w2, [x8]
	bl	_av_rescale_q
	str	w0, [x20]
	tbnz	w0, #31, LBB0_4
; %bb.2:
	mov	w0, #0
	b	LBB0_5
LBB0_3:
	mov	w8, #0
	mov	w0, #-1
	b	LBB0_6
LBB0_4:
	mov	w0, #0
Lloh6:
	adrp	x8, _AV_NOPTS_VALUE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x20]
LBB0_5:
	mov	w8, #1
LBB0_6:
	str	w8, [x19]
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IJK_AV_PIX_FMT__ANDROID_MEDIACODEC,4,2 ; @IJK_AV_PIX_FMT__ANDROID_MEDIACODEC
	.comm	_AV_TIME_BASE_Q,4,2             ; @AV_TIME_BASE_Q
	.comm	_AV_NOPTS_VALUE,4,2             ; @AV_NOPTS_VALUE
	.no_dead_strip	_amc_fill_frame
.subsections_via_symbols
