	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qcm_sensor_set_gains
_qcm_sensor_set_gains:                  ## @qcm_sensor_set_gains
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	$0, -16(%rbp)
	movl	$0, -12(%rbp)
	movl	$0, -20(%rbp)
	leaq	-16(%rbp), %rax
	leaq	-12(%rbp), %r8
	leaq	-20(%rbp), %r9
	movl	%esi, %edi
	movl	%edx, %esi
	movl	%ecx, %edx
	movq	%rax, %rcx
	callq	_qcm_hsv2rgb
	movl	-16(%rbp), %esi
	sarl	$12, %esi
	movl	%esi, -16(%rbp)
	sarl	$12, -12(%rbp)
	sarl	$12, -20(%rbp)
	movl	$8, %edi
	callq	_max
	movl	%eax, -16(%rbp)
	movl	-12(%rbp), %esi
	movl	$8, %edi
	callq	_max
	movl	%eax, -12(%rbp)
	movl	-20(%rbp), %esi
	movl	$8, %edi
	callq	_max
	movl	-16(%rbp), %edx
	orl	$48, %edx
	orb	$48, -12(%rbp)
	movl	%edx, -16(%rbp)
	orl	$48, %eax
	movl	%eax, -20(%rbp)
	movl	(%rbx), %edi
	movl	$1289, %esi                     ## imm = 0x509
	callq	_qcm_stv_setb
	movl	%eax, %esi
	callq	_CHECK_RET
	movl	(%rbx), %edi
	movl	-12(%rbp), %edx
	movl	$1290, %esi                     ## imm = 0x50A
	callq	_qcm_stv_setb
	movl	%eax, %esi
	callq	_CHECK_RET
	movl	(%rbx), %edi
	movl	-20(%rbp), %edx
	movl	$1291, %esi                     ## imm = 0x50B
	callq	_qcm_stv_setb
	movl	%eax, %esi
	callq	_CHECK_RET
	movl	(%rbx), %edi
	movl	$1292, %esi                     ## imm = 0x50C
	movl	$42, %edx
	callq	_qcm_stv_setb
	movl	%eax, %esi
	callq	_CHECK_RET
	movl	(%rbx), %edi
	movl	$1293, %esi                     ## imm = 0x50D
	movl	$1, %edx
	callq	_qcm_stv_setb
	movl	%eax, %esi
	callq	_CHECK_RET
	movl	(%rbx), %edi
	movl	$5183, %esi                     ## imm = 0x143F
	movl	$1, %edx
	callq	_qcm_stv_setb
	movl	%eax, %esi
	callq	_CHECK_RET
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_qcm_sensor_set_gains
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qcm_sensor_set_gains
_qcm_sensor_set_gains:                  ; @qcm_sensor_set_gains
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x8, x3
	mov	x19, x0
	str	xzr, [sp, #8]
	str	wzr, [sp, #4]
	add	x3, sp, #12
	add	x4, sp, #8
	add	x5, sp, #4
	mov	x0, x1
	mov	x1, x2
	mov	x2, x8
	bl	_qcm_hsv2rgb
	ldr	w8, [sp, #12]
	asr	w1, w8, #12
	ldr	w8, [sp, #8]
	asr	w8, w8, #12
	stp	w8, w1, [sp, #8]
	ldr	w8, [sp, #4]
	asr	w8, w8, #12
	str	w8, [sp, #4]
	mov	w0, #8
	bl	_max
	str	w0, [sp, #12]
	ldr	w1, [sp, #8]
	mov	w0, #8
	bl	_max
	str	w0, [sp, #8]
	ldr	w1, [sp, #4]
	mov	w0, #8
	bl	_max
	ldr	w8, [sp, #12]
	orr	w2, w8, #0x30
	ldr	w8, [sp, #8]
	orr	w8, w8, #0x30
	stp	w8, w2, [sp, #8]
	orr	w8, w0, #0x30
	str	w8, [sp, #4]
	ldr	w0, [x19]
	mov	w1, #1289
	bl	_qcm_stv_setb
	mov	x1, x0
	bl	_CHECK_RET
	ldr	w0, [x19]
	ldr	w2, [sp, #8]
	mov	w1, #1290
	bl	_qcm_stv_setb
	mov	x1, x0
	bl	_CHECK_RET
	ldr	w0, [x19]
	ldr	w2, [sp, #4]
	mov	w1, #1291
	bl	_qcm_stv_setb
	mov	x1, x0
	bl	_CHECK_RET
	ldr	w0, [x19]
	mov	w1, #1292
	mov	w2, #42
	bl	_qcm_stv_setb
	mov	x1, x0
	bl	_CHECK_RET
	ldr	w0, [x19]
	mov	w1, #1293
	mov	w2, #1
	bl	_qcm_stv_setb
	mov	x1, x0
	bl	_CHECK_RET
	ldr	w0, [x19]
	mov	w1, #5183
	mov	w2, #1
	bl	_qcm_stv_setb
	mov	x1, x0
	bl	_CHECK_RET
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_qcm_sensor_set_gains
.subsections_via_symbols
