	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function android_render_yv12_on_yv12
_android_render_yv12_on_yv12:           ## @android_render_yv12_on_yv12
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	(%rsi), %rax
	movq	_SDL_FCC_YV12@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_assert
	xorl	%edi, %edi
	cmpl	$3, 8(%r15)
	sete	%dil
	callq	_assert
	movl	(%r13), %edi
	movl	12(%r15), %esi
	callq	_IJKMIN
	movl	%eax, %r14d
	movl	4(%r13), %ebx
	movl	%ebx, %edi
	shrl	$31, %edi
	addl	%ebx, %edi
	sarl	%edi
	movl	$16, %esi
	callq	_IJKALIGN
	movl	(%r13), %edx
	movl	%edx, %ecx
	imull	%ebx, %ecx
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	imull	%eax, %edx
	movl	%edx, %r12d
	shrl	$31, %r12d
	addl	%edx, %r12d
	sarl	%r12d
	movq	8(%r13), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movslq	%ecx, %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	%r14d, %r13d
	shrl	$31, %r13d
	movl	%r14d, -56(%rbp)                ## 4-byte Spill
	addl	%r14d, %r13d
	movq	16(%r15), %rax
	movq	24(%r15), %rcx
	movl	(%rax), %r14d
	movq	(%rcx), %rsi
	cmpl	%r14d, %ebx
	jne	LBB0_2
## %bb.1:
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	imull	%ebx, %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_memcpy
	jmp	LBB0_3
LBB0_2:
	movl	%ebx, %edi
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movl	%r14d, %esi
	callq	_IJKMIN
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	%r14d, %ecx
	movl	%eax, %r8d
	movl	-56(%rbp), %r9d                 ## 4-byte Reload
	callq	_av_image_copy_plane
LBB0_3:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx,4), %r14
	movslq	%r12d, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	sarl	%r13d
	movq	16(%r15), %rax
	movq	24(%r15), %rcx
	movl	4(%rax), %ebx
	movq	8(%rcx), %rsi
	movl	-60(%rbp), %r12d                ## 4-byte Reload
	cmpl	%ebx, %r12d
	jne	LBB0_4
## %bb.5:
	movl	%r13d, %edx
	imull	%r12d, %edx
	movq	%r14, %rdi
	callq	_memcpy
	jmp	LBB0_6
LBB0_4:
	movl	%r12d, %edi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	%ebx, %esi
	callq	_IJKMIN
	movq	%r14, %rdi
	movl	%r12d, %esi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%ebx, %ecx
	movl	%eax, %r8d
	movl	%r13d, %r9d
	callq	_av_image_copy_plane
LBB0_6:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%r14,%rax,4), %rdx
	movq	16(%r15), %rax
	movq	24(%r15), %rcx
	movl	8(%rax), %ebx
	movq	16(%rcx), %r14
	cmpl	%ebx, %r12d
	jne	LBB0_7
## %bb.8:
	imull	%r12d, %r13d
	movq	%rdx, %rdi
	movq	%r14, %rsi
	movl	%r13d, %edx
	callq	_memcpy
	jmp	LBB0_9
LBB0_7:
	movl	%r12d, %edi
	movl	%ebx, %esi
	movl	%r12d, %r15d
	movq	%rdx, %r12
	callq	_IJKMIN
	movq	%r12, %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	movl	%ebx, %ecx
	movl	%eax, %r8d
	movl	%r13d, %r9d
	callq	_av_image_copy_plane
LBB0_9:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SDL_FCC_YV12,8,3               ## @SDL_FCC_YV12
	.no_dead_strip	_android_render_yv12_on_yv12
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function android_render_yv12_on_yv12
_android_render_yv12_on_yv12:           ; @android_render_yv12_on_yv12
	.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
	mov	x19, x1
	mov	x21, x0
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _SDL_FCC_YV12@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SDL_FCC_YV12@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
	ldr	w8, [x19, #8]
	cmp	w8, #3
	cset	w0, eq
	bl	_assert
	ldr	w0, [x21]
	ldr	w1, [x19, #12]
	bl	_IJKMIN
	mov	x23, x0
	ldr	w24, [x21, #4]
	cmp	w24, #0
	cinc	w8, w24, lt
	asr	w0, w8, #1
	mov	w1, #16
	bl	_IJKALIGN
	mov	x20, x0
	ldr	w8, [x21]
	mul	w9, w8, w24
	mul	w8, w8, w0
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w28, w8, #1
	ldr	x25, [x21, #8]
	add	x22, x25, w9, sxtw #2
	cmp	w23, #0
	cinc	w8, w23, lt
	asr	w21, w8, #1
	ldp	x8, x9, [x19, #16]
	ldr	w27, [x8]
	ldr	x26, [x9]
	cmp	w24, w27
	b.ne	LBB0_2
; %bb.1:
	mul	w2, w23, w24
	mov	x0, x25
	mov	x1, x26
	bl	_memcpy
	b	LBB0_3
LBB0_2:
	mov	x0, x24
	mov	x1, x27
	bl	_IJKMIN
	mov	x4, x0
	mov	x0, x25
	mov	x1, x24
	mov	x2, x26
	mov	x3, x27
	mov	x5, x23
	bl	_av_image_copy_plane
LBB0_3:
	add	x23, x22, w28, sxtw #2
	ldp	x8, x9, [x19, #16]
	ldr	w26, [x8, #4]
	ldr	x25, [x9, #8]
	mul	w24, w21, w20
	cmp	w20, w26
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x22
	mov	x1, x25
	mov	x2, x24
	bl	_memcpy
	b	LBB0_6
LBB0_5:
	mov	x0, x20
	mov	x1, x26
	bl	_IJKMIN
	mov	x4, x0
	mov	x0, x22
	mov	x1, x20
	mov	x2, x25
	mov	x3, x26
	mov	x5, x21
	bl	_av_image_copy_plane
LBB0_6:
	ldp	x8, x9, [x19, #16]
	ldr	w22, [x8, #8]
	ldr	x19, [x9, #16]
	cmp	w20, w22
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x23
	mov	x1, x19
	mov	x2, x24
	bl	_memcpy
	b	LBB0_9
LBB0_8:
	mov	x0, x20
	mov	x1, x22
	bl	_IJKMIN
	mov	x4, x0
	mov	x0, x23
	mov	x1, x20
	mov	x2, x19
	mov	x3, x22
	mov	x5, x21
	bl	_av_image_copy_plane
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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SDL_FCC_YV12,8,3               ; @SDL_FCC_YV12
	.no_dead_strip	_android_render_yv12_on_yv12
.subsections_via_symbols
