	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bgr24ToYv12Wrapper
_bgr24ToYv12Wrapper:                    ## @bgr24ToYv12Wrapper
	.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, %r13
	movl	%r8d, %r9d
	movq	%rdi, %r12
	movq	16(%rbp), %r8
	movl	(%r8), %r10d
	movl	4(%r8), %r11d
	movl	%r10d, %eax
	imull	%ecx, %eax
	cltq
	shlq	$2, %rax
	addq	(%r13), %rax
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	sarl	%ecx
	movl	%r11d, %edi
	imull	%ecx, %edi
	movslq	%edi, %rbx
	shlq	$2, %rbx
	addq	8(%r13), %rbx
	movslq	8(%r8), %rdi
	movslq	%ecx, %rcx
	imulq	%rdi, %rcx
	shlq	$2, %rcx
	addq	16(%r13), %rcx
	movq	(%rsi), %rdi
	movl	(%rdx), %r14d
	movl	(%r12), %r8d
	movl	4(%r12), %r15d
	movq	%rax, %rsi
	movq	%rbx, %rdx
	movl	%r9d, %ebx
	pushq	%r15
	pushq	%r14
	pushq	%r11
	pushq	%r10
	callq	_ff_rgb24toyv12
	addq	$32, %rsp
	movq	24(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	16(%rbp), %rax
	movl	12(%rax), %esi
	movl	(%r12), %edx
	movl	%ebx, %ecx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	$255, %r9d
	callq	_fillPlane
LBB0_2:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_bgr24ToYv12Wrapper
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bgr24ToYv12Wrapper
_bgr24ToYv12Wrapper:                    ; @bgr24ToYv12Wrapper
	.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	x21, x6
	mov	x23, x5
	mov	x19, x4
	mov	x20, x3
	mov	x22, x0
	ldr	x0, [x1]
	ldr	w6, [x6]
	ldp	w7, w11, [x21, #4]
	mul	w8, w6, w3
	ldp	x9, x10, [x5]
	add	x1, x9, w8, sxtw #2
	asr	w9, w3, #1
	mul	w8, w7, w9
	add	x8, x10, w8, sxtw #2
	ldr	x10, [x5, #16]
	mul	w9, w11, w9
	add	x3, x10, w9, sxtw #2
	ldr	w9, [x2]
	ldp	w4, w10, [x22]
	stp	w9, w10, [sp]
	mov	x2, x8
	mov	x5, x19
	bl	_ff_rgb24toyv12
	ldr	x0, [x23, #24]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w1, [x21, #12]
	ldr	w2, [x22]
	mov	x3, x19
	mov	x4, x20
	mov	w5, #255
	bl	_fillPlane
LBB0_2:
	mov	x0, x19
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_bgr24ToYv12Wrapper
.subsections_via_symbols
