	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xv_init_yuv_tables
_xv_init_yuv_tables:                    ## @xv_init_yuv_tables
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	$65536, %edi                    ## imm = 0x10000
	callq	_malloc
	movq	%rax, 16(%r14)
	movl	$65536, %edi                    ## imm = 0x10000
	callq	_malloc
	movq	%rax, 8(%r14)
	movl	$65536, %edi                    ## imm = 0x10000
	callq	_malloc
	movq	%rax, %rdx
	movq	%rax, (%r14)
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %eax
	shrl	$5, %eax
	andl	$63, %eax
	movl	%ebx, %esi
	andl	$31, %esi
	movl	%ebx, %edi
	shrl	$8, %edi
	andl	$8388600, %edi                  ## imm = 0x7FFFF8
	movl	%ebx, %ecx
	shrl	$13, %ecx
	orl	%edi, %ecx
	movl	%eax, %edi
	shrl	$4, %edi
	leal	(%rdi,%rax,4), %r8d
	movl	%esi, %eax
	shrl	$2, %eax
	leal	(%rax,%rsi,8), %r9d
	movq	16(%r14), %rdi
	addq	%r15, %rdi
	movq	8(%r14), %rsi
	addq	%r15, %rsi
	addq	%r15, %rdx
	callq	_xv_calculate_yuv
	cmpq	$65535, %rbx                    ## imm = 0xFFFF
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r14), %rdx
	addq	$4, %r15
	incq	%rbx
	jmp	LBB0_1
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_xv_init_yuv_tables
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xv_init_yuv_tables
_xv_init_yuv_tables:                    ; @xv_init_yuv_tables
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	mov	w0, #65536
	bl	_malloc
	str	x0, [x19, #16]
	mov	w0, #65536
	bl	_malloc
	str	x0, [x19, #8]
	mov	w0, #65536
	bl	_malloc
	mov	w20, #0
	mov	x21, #0
	str	x0, [x19]
	mov	w22, #262140
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w8, w20, #5
	ubfx	w9, w20, #5, #6
	and	w10, w20, #0x1f
	lsr	w11, w20, #8
	and	w11, w11, #0x7ffff8
	orr	w3, w11, w20, lsr #13
	ubfx	w4, w8, #4, #2
	bfi	w4, w9, #2, #6
	ubfx	w5, w20, #2, #3
	bfi	w5, w10, #3, #5
	ldp	x9, x8, [x19, #8]
	add	x8, x8, x21
	add	x1, x9, x21
	add	x2, x0, x21
	mov	x0, x8
	bl	_xv_calculate_yuv
	cmp	x21, x22
	b.eq	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x0, [x19]
	add	x21, x21, #4
	add	w20, w20, #1
	b	LBB0_1
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_xv_init_yuv_tables
.subsections_via_symbols
