	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_mediacodec_sw_buffer_copy_yuv420_packed_semi_planar ## -- Begin function ff_mediacodec_sw_buffer_copy_yuv420_packed_semi_planar
	.p2align	4, 0x90
_ff_mediacodec_sw_buffer_copy_yuv420_packed_semi_planar: ## @ff_mediacodec_sw_buffer_copy_yuv420_packed_semi_planar
	.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, %r12
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movslq	(%r8), %rax
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	leaq	(%rdx,%rax,4), %rbx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %r15d
	movq	(%r9), %rax
	movq	8(%r9), %rcx
	movl	(%rax), %eax
	movq	(%rcx), %r13
	cmpl	8(%rsi), %eax
	jne	LBB0_2
## %bb.1:
	imull	%eax, %r15d
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	movq	%r9, %rbx
	callq	_memcpy
	movq	%rbx, %r9
	jmp	LBB0_5
LBB0_2:
	testl	%r15d, %r15d
	jle	LBB0_5
## %bb.3:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	movq	%r12, %r14
	movq	%r9, %r12
	callq	_memcpy
	movq	%r12, %r9
	movq	%r14, %r12
	movslq	8(%r14), %rax
	leaq	(%rbx,%rax,4), %rbx
	movq	(%r9), %rax
	movslq	(%rax), %rax
	leaq	(%r13,%rax,4), %r13
	decl	%r15d
	jne	LBB0_4
LBB0_5:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movslq	(%rax), %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rcx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	(%rdi), %r8d
	movl	%r8d, %r13d
	shrl	$31, %r13d
	addl	%r8d, %r13d
	sarl	%r13d
	movl	(%r12), %edx
	movl	4(%r12), %esi
	movl	%esi, %eax
	shrl	$31, %eax
	addl	%esi, %eax
	sarl	%eax
	subl	%eax, %edx
	movl	8(%r12), %eax
	imull	%eax, %edx
	movslq	%edx, %rdx
	leaq	(%rcx,%rdx,4), %rcx
	imull	%eax, %esi
	movslq	%esi, %rdx
	leaq	(%rcx,%rdx,4), %rcx
	movslq	12(%r12), %rdx
	leaq	(%rcx,%rdx,4), %r15
	movq	(%r9), %rcx
	movl	4(%rcx), %r14d
	cmpl	%eax, %r14d
	jne	LBB0_6
## %bb.10:
	imull	%eax, %r13d
	movq	8(%r9), %rax
	movq	8(%rax), %rdi
	movq	%r15, %rsi
	movl	%r13d, %edx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memcpy                         ## TAILCALL
LBB0_6:
	movq	8(%r9), %rax
	movq	8(%rax), %rbx
	movl	4(%rdi), %edi
	movl	$2, %esi
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	callq	_FFALIGN
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_FFMIN
	cmpl	$2, -48(%rbp)                   ## 4-byte Folded Reload
	jl	LBB0_9
## %bb.7:
	movl	%eax, %r14d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_memcpy
	movslq	8(%r12), %rax
	leaq	(%r15,%rax,4), %r15
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movslq	4(%rax), %rax
	leaq	(%rbx,%rax,4), %rbx
	decl	%r13d
	jne	LBB0_8
LBB0_9:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_mediacodec_sw_buffer_copy_yuv420_packed_semi_planar ; -- Begin function ff_mediacodec_sw_buffer_copy_yuv420_packed_semi_planar
	.p2align	2
_ff_mediacodec_sw_buffer_copy_yuv420_packed_semi_planar: ; @ff_mediacodec_sw_buffer_copy_yuv420_packed_semi_planar
	.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, x5
	mov	x23, x4
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
	ldrsw	x8, [x4]
	add	x24, x2, x8, lsl #2
	ldr	w27, [x0]
	ldp	x8, x9, [x5]
	ldr	w8, [x8]
	ldr	w10, [x1, #8]
	ldr	x25, [x9]
	cmp	w8, w10
	b.ne	LBB0_2
; %bb.1:
	mul	w2, w27, w8
	mov	x0, x25
	mov	x1, x24
	bl	_memcpy
	b	LBB0_5
LBB0_2:
	cmp	w27, #1
	b.lt	LBB0_5
; %bb.3:
	ldr	w26, [x21, #4]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x25
	mov	x1, x24
	mov	x2, x26
	bl	_memcpy
	ldrsw	x8, [x20, #8]
	add	x24, x24, x8, lsl #2
	ldr	x8, [x19]
	ldrsw	x8, [x8]
	add	x25, x25, x8, lsl #2
	subs	w27, w27, #1
	b.ne	LBB0_4
LBB0_5:
	ldrsw	x8, [x23]
	add	x9, x22, x8, lsl #2
	ldr	w26, [x21]
	cmp	w26, #0
	cinc	w10, w26, lt
	ldp	w8, w11, [x20]
	cmp	w11, #0
	cinc	w12, w11, lt
	sub	w12, w8, w12, asr #1
	ldp	w8, w13, [x20, #8]
                                        ; kill: def $w13 killed $w13 def $x13
	sxtw	x13, w13
	mul	w12, w12, w8
	add	x9, x9, w12, sxtw #2
	asr	w25, w10, #1
	mul	w10, w8, w11
	add	x9, x9, w10, sxtw #2
	add	x22, x9, x13, lsl #2
	ldr	x9, [x19]
	ldr	w24, [x9, #4]
	cmp	w24, w8
	b.ne	LBB0_7
; %bb.6:
	mul	w2, w25, w8
	ldr	x8, [x19, #8]
	ldr	x0, [x8, #8]
	mov	x1, x22
	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
	b	_memcpy
LBB0_7:
	ldr	x8, [x19, #8]
	ldr	x23, [x8, #8]
	ldr	w0, [x21, #4]
	mov	w1, #2
	bl	_FFALIGN
	mov	x1, x0
	mov	x0, x24
	bl	_FFMIN
	cmp	w26, #2
	b.lt	LBB0_10
; %bb.8:
	mov	x21, x0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	bl	_memcpy
	ldrsw	x8, [x20, #8]
	add	x22, x22, x8, lsl #2
	ldr	x8, [x19]
	ldrsw	x8, [x8, #4]
	add	x23, x23, x8, lsl #2
	subs	w25, w25, #1
	b.ne	LBB0_9
LBB0_10:
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
