	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov511_init_compression
_ov511_init_compression:                ## @ov511_init_compression
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	cmpl	$0, (%rdi)
	jne	LBB0_3
## %bb.1:
	movq	_phy@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$112, %esi
	callq	_reg_w
	movq	_phuv@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$113, %esi
	callq	_reg_w
	movq	_pvy@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$114, %esi
	callq	_reg_w
	movq	_pvuv@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$115, %esi
	callq	_reg_w
	movq	_qhy@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$116, %esi
	callq	_reg_w
	movq	_qhuv@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$117, %esi
	callq	_reg_w
	movq	_qvy@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$118, %esi
	callq	_reg_w
	movq	_qvuv@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$119, %esi
	callq	_reg_w
	movq	%rbx, %rdi
	callq	_ov511_upload_quan_tables
	testq	%rax, %rax
	js	LBB0_2
LBB0_3:
	movl	$1, (%rbx)
	xorl	%eax, %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_err
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_phy,4,2                        ## @phy
	.comm	_phuv,4,2                       ## @phuv
	.comm	_pvy,4,2                        ## @pvy
	.comm	_pvuv,4,2                       ## @pvuv
	.comm	_qhy,4,2                        ## @qhy
	.comm	_qhuv,4,2                       ## @qhuv
	.comm	_qvy,4,2                        ## @qvy
	.comm	_qvuv,4,2                       ## @qvuv
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error uploading quantization tables"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_ov511_init_compression
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov511_init_compression
_ov511_init_compression:                ; @ov511_init_compression
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w8, [x0]
	cbnz	w8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _phy@GOTPAGE
Lloh1:
	ldr	x8, [x8, _phy@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #112
	bl	_reg_w
Lloh3:
	adrp	x8, _phuv@GOTPAGE
Lloh4:
	ldr	x8, [x8, _phuv@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #113
	bl	_reg_w
Lloh6:
	adrp	x8, _pvy@GOTPAGE
Lloh7:
	ldr	x8, [x8, _pvy@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #114
	bl	_reg_w
Lloh9:
	adrp	x8, _pvuv@GOTPAGE
Lloh10:
	ldr	x8, [x8, _pvuv@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #115
	bl	_reg_w
Lloh12:
	adrp	x8, _qhy@GOTPAGE
Lloh13:
	ldr	x8, [x8, _qhy@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #116
	bl	_reg_w
Lloh15:
	adrp	x8, _qhuv@GOTPAGE
Lloh16:
	ldr	x8, [x8, _qhuv@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #117
	bl	_reg_w
Lloh18:
	adrp	x8, _qvy@GOTPAGE
Lloh19:
	ldr	x8, [x8, _qvy@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #118
	bl	_reg_w
Lloh21:
	adrp	x8, _qvuv@GOTPAGE
Lloh22:
	ldr	x8, [x8, _qvuv@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #119
	bl	_reg_w
	mov	x0, x19
	bl	_ov511_upload_quan_tables
	tbnz	x0, #63, LBB0_4
LBB0_2:
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19]
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh24:
	adrp	x0, l_.str@PAGE
Lloh25:
	add	x0, x0, l_.str@PAGEOFF
	bl	_err
Lloh26:
	adrp	x8, _EIO@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_phy,4,2                        ; @phy
	.comm	_phuv,4,2                       ; @phuv
	.comm	_pvy,4,2                        ; @pvy
	.comm	_pvuv,4,2                       ; @pvuv
	.comm	_qhy,4,2                        ; @qhy
	.comm	_qhuv,4,2                       ; @qhuv
	.comm	_qvy,4,2                        ; @qvy
	.comm	_qvuv,4,2                       ; @qvuv
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error uploading quantization tables"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_ov511_init_compression
.subsections_via_symbols
