	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sn9c102_set_compression
_sn9c102_set_compression:               ## @sn9c102_set_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	%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	%rdi, %r14
	movl	(%rdi), %eax
	leal	-130(%rax), %ecx
	cmpl	$3, %ecx
	jae	LBB0_1
## %bb.7:
	movl	(%rsi), %eax
	cmpl	$1, %eax
	je	LBB0_11
## %bb.8:
	testl	%eax, %eax
	jne	LBB0_18
## %bb.9:
	movq	8(%r14), %rax
	movl	92(%rax), %esi
	orl	$1, %esi
	jmp	LBB0_10
LBB0_1:
	addl	$-128, %eax
	cmpl	$2, %eax
	jae	LBB0_18
## %bb.2:
	movl	(%rsi), %r12d
	testl	%r12d, %r12d
	je	LBB0_12
## %bb.3:
	cmpl	$1, %r12d
	jne	LBB0_18
## %bb.4:
	xorl	%ebx, %ebx
	movq	_SN9C102_UV_QTABLE1@GOTPCREL(%rip), %r13
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	_SN9C102_Y_QTABLE1@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %esi
	leal	256(%rbx), %edx
	movq	%r14, %rdi
	callq	_sn9c102_write_reg
	movl	%eax, %r15d
	addl	%r12d, %r15d
	movq	(%r13), %rax
	movl	(%rax,%rbx,4), %esi
	leal	320(%rbx), %edx
	movq	%r14, %rdi
	callq	_sn9c102_write_reg
	movl	%eax, %r12d
	addl	%r15d, %r12d
	incq	%rbx
	cmpq	$64, %rbx
	jne	LBB0_5
## %bb.6:
	movq	8(%r14), %rax
	movl	96(%rax), %esi
	orl	$64, %esi
	jmp	LBB0_15
LBB0_11:
	movq	8(%r14), %rax
	movl	$254, %esi
	andl	92(%rax), %esi
LBB0_10:
	movq	%r14, %rdi
	movl	$23, %edx
	callq	_sn9c102_write_reg
	testl	%eax, %eax
	je	LBB0_18
LBB0_17:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_19
LBB0_12:
	xorl	%ebx, %ebx
	movq	_SN9C102_UV_QTABLE1@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	_SN9C102_Y_QTABLE1@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %esi
	leal	256(%rbx), %edx
	movq	%r14, %rdi
	callq	_sn9c102_write_reg
	movl	%eax, %r15d
	addl	%r12d, %r15d
	movq	(%r13), %rax
	movl	(%rax,%rbx,4), %esi
	leal	320(%rbx), %edx
	movq	%r14, %rdi
	callq	_sn9c102_write_reg
	movl	%eax, %r12d
	addl	%r15d, %r12d
	incq	%rbx
	cmpq	$64, %rbx
	jne	LBB0_13
## %bb.14:
	movq	8(%r14), %rax
	movl	$191, %esi
	andl	96(%rax), %esi
LBB0_15:
	movq	%r14, %rdi
	movl	$24, %edx
	callq	_sn9c102_write_reg
	addl	%r12d, %eax
	testl	%eax, %eax
	jne	LBB0_17
LBB0_18:
	xorl	%eax, %eax
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SN9C102_Y_QTABLE1,8,3          ## @SN9C102_Y_QTABLE1
	.comm	_SN9C102_UV_QTABLE1,8,3         ## @SN9C102_UV_QTABLE1
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_sn9c102_set_compression
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sn9c102_set_compression
_sn9c102_set_compression:               ; @sn9c102_set_compression
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x0
	ldr	w8, [x0]
	sub	w9, w8, #130
	cmp	w9, #3
	b.hs	LBB0_4
; %bb.1:
	ldr	w8, [x1]
	cmp	w8, #1
	b.eq	LBB0_10
; %bb.2:
	cbnz	w8, LBB0_17
; %bb.3:
	ldr	x8, [x19, #8]
	ldr	w8, [x8, #92]
	orr	w1, w8, #0x1
	b	LBB0_11
LBB0_4:
	sub	w8, w8, #128
	cmp	w8, #2
	b.hs	LBB0_17
; %bb.5:
	ldr	w20, [x1]
	cbz	w20, LBB0_13
; %bb.6:
	cmp	w20, #1
	b.ne	LBB0_17
; %bb.7:
	mov	x21, #0
	mov	w20, #0
Lloh0:
	adrp	x22, _SN9C102_Y_QTABLE1@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SN9C102_Y_QTABLE1@GOTPAGEOFF]
Lloh2:
	adrp	x23, _SN9C102_UV_QTABLE1@GOTPAGE
Lloh3:
	ldr	x23, [x23, _SN9C102_UV_QTABLE1@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	lsl	x24, x21, #2
	ldr	w1, [x8, x24]
	add	w2, w21, #256
	mov	x0, x19
	bl	_sn9c102_write_reg
	add	w20, w0, w20
	ldr	x8, [x23]
	ldr	w1, [x8, x24]
	add	w2, w21, #320
	mov	x0, x19
	bl	_sn9c102_write_reg
	add	w20, w20, w0
	add	x21, x21, #1
	cmp	x21, #64
	b.ne	LBB0_8
; %bb.9:
	ldr	x8, [x19, #8]
	ldr	w8, [x8, #96]
	orr	w1, w8, #0x40
	b	LBB0_16
LBB0_10:
	ldr	x8, [x19, #8]
	ldr	w8, [x8, #92]
	and	w1, w8, #0xfe
LBB0_11:
	mov	x0, x19
	mov	w2, #23
	bl	_sn9c102_write_reg
	cbz	w0, LBB0_17
LBB0_12:
Lloh4:
	adrp	x8, _EIO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_18
LBB0_13:
	mov	x21, #0
Lloh7:
	adrp	x22, _SN9C102_Y_QTABLE1@GOTPAGE
Lloh8:
	ldr	x22, [x22, _SN9C102_Y_QTABLE1@GOTPAGEOFF]
Lloh9:
	adrp	x23, _SN9C102_UV_QTABLE1@GOTPAGE
Lloh10:
	ldr	x23, [x23, _SN9C102_UV_QTABLE1@GOTPAGEOFF]
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	lsl	x24, x21, #2
	ldr	w1, [x8, x24]
	add	w2, w21, #256
	mov	x0, x19
	bl	_sn9c102_write_reg
	add	w20, w0, w20
	ldr	x8, [x23]
	ldr	w1, [x8, x24]
	add	w2, w21, #320
	mov	x0, x19
	bl	_sn9c102_write_reg
	add	w20, w20, w0
	add	x21, x21, #1
	cmp	x21, #64
	b.ne	LBB0_14
; %bb.15:
	ldr	x8, [x19, #8]
	ldr	w8, [x8, #96]
	mov	w9, #191
	and	w1, w8, w9
LBB0_16:
	mov	x0, x19
	mov	w2, #24
	bl	_sn9c102_write_reg
	add	w0, w0, w20
	cbnz	w0, LBB0_12
LBB0_17:
	mov	w0, #0
LBB0_18:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SN9C102_Y_QTABLE1,8,3          ; @SN9C102_Y_QTABLE1
	.comm	_SN9C102_UV_QTABLE1,8,3         ; @SN9C102_UV_QTABLE1
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_sn9c102_set_compression
.subsections_via_symbols
