	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_solo_s_jpeg_qp                 ## -- Begin function solo_s_jpeg_qp
	.p2align	4, 0x90
_solo_s_jpeg_qp:                        ## @solo_s_jpeg_qp
	.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
                                        ## kill: def $esi killed $esi def $rsi
	cmpl	$31, %esi
	ja	LBB0_3
## %bb.1:
	movl	%edx, %ebx
	cmpl	$3, %edx
	ja	LBB0_3
## %bb.2:
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	_SOLO_DEV_6010@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	leal	(%rsi,%rsi), %eax
	leal	-32(%rax), %ecx
	leaq	16(%r14), %r15
	xorl	%r12d, %r12d
	cmpl	$16, %esi
	setae	%r12b
	movq	_SOLO_VE_JPEG_QP_CH_H@GOTPCREL(%rip), %rdx
	cmovbq	_SOLO_VE_JPEG_QP_CH_L@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movzbl	%cl, %r13d
	cmovbl	%eax, %r13d
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movl	$3, %eax
	movl	%r13d, %ecx
	shll	%cl, %eax
	notl	%eax
	movq	8(%r14), %rdx
	shll	%cl, %ebx
	andl	(%rdx,%r12,4), %eax
	orl	%eax, %ebx
	movl	%ebx, (%rdx,%r12,4)
	movq	%r14, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %edx
	callq	_solo_reg_write
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SOLO_DEV_6010,8,3              ## @SOLO_DEV_6010
	.comm	_SOLO_VE_JPEG_QP_CH_L,4,2       ## @SOLO_VE_JPEG_QP_CH_L
	.comm	_SOLO_VE_JPEG_QP_CH_H,4,2       ## @SOLO_VE_JPEG_QP_CH_H
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_solo_s_jpeg_qp                 ; -- Begin function solo_s_jpeg_qp
	.p2align	2
_solo_s_jpeg_qp:                        ; @solo_s_jpeg_qp
	.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
	cmp	w1, #31
	b.hi	LBB0_3
; %bb.1:
	mov	x20, x2
	cmp	w2, #3
	b.hi	LBB0_3
; %bb.2:
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _SOLO_DEV_6010@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SOLO_DEV_6010@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
LBB0_3:
	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
LBB0_4:
	cmp	w1, #15
	cset	w23, hi
Lloh3:
	adrp	x8, _SOLO_VE_JPEG_QP_CH_L@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SOLO_VE_JPEG_QP_CH_L@GOTPAGEOFF]
Lloh5:
	adrp	x9, _SOLO_VE_JPEG_QP_CH_H@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SOLO_VE_JPEG_QP_CH_H@GOTPAGEOFF]
	lsl	w10, w1, #1
	sub	w11, w10, #32
	cmp	w1, #16
	csel	w24, w10, w11, lo
	csel	x8, x8, x9, lo
	ldr	w21, [x8]
	add	x22, x19, #16
	mov	x0, x22
	bl	_spin_lock_irqsave
	mov	w8, #3
	ldr	x9, [x19, #8]
	lsl	x10, x23, #2
	ldr	w11, [x9, x10]
	lsl	w8, w8, w24
	bic	w8, w11, w8
	lsl	w11, w20, w24
	orr	w2, w8, w11
	str	w2, [x9, x10]
	mov	x0, x19
	mov	x1, x21
	bl	_solo_reg_write
	mov	x0, x22
	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
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SOLO_DEV_6010,8,3              ; @SOLO_DEV_6010
	.comm	_SOLO_VE_JPEG_QP_CH_L,4,2       ; @SOLO_VE_JPEG_QP_CH_L
	.comm	_SOLO_VE_JPEG_QP_CH_H,4,2       ; @SOLO_VE_JPEG_QP_CH_H
.subsections_via_symbols
