	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_offset
_set_offset:                            ## @set_offset
	.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
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	%rdx, %rdi
	movl	$-127825, %esi                  ## imm = 0xFFFE0CAF
	movl	$127825, %edx                   ## imm = 0x1F351
	callq	_clamp_val
	movabsq	$2361183241434822607, %rcx      ## imm = 0x20C49BA5E353F7CF
	imulq	%rcx
	movq	%rdx, %rbx
	movq	%rdx, %rax
	shrq	$63, %rax
	sarq	$4, %rbx
	addq	%rax, %rbx
	movq	%rbx, %rdx
	sarq	$3, %rdx
	movq	_W83773_OFFSET_MSB@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r15d, %r15
	movl	(%rax,%r15,4), %esi
	movq	%r14, %rdi
	callq	_regmap_write
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	shll	$5, %ebx
	movzbl	%bl, %edx
	movq	_W83773_OFFSET_LSB@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r15,4), %esi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_regmap_write                   ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_W83773_OFFSET_MSB,8,3          ## @W83773_OFFSET_MSB
	.comm	_W83773_OFFSET_LSB,8,3          ## @W83773_OFFSET_LSB
	.no_dead_strip	_set_offset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_offset
_set_offset:                            ; @set_offset
	.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	x20, x1
	mov	x19, x0
	mov	x0, x2
	mov	w1, #3247
	movk	w1, #65534, lsl #16
	mov	w2, #62289
	movk	w2, #1, lsl #16
	bl	_clamp_val
	mov	x8, #63439
	movk	x8, #58195, lsl #16
	movk	x8, #39845, lsl #32
	movk	x8, #8388, lsl #48
	smulh	x8, x0, x8
	asr	x9, x8, #4
	add	x21, x9, x8, lsr #63
	asr	x2, x21, #3
Lloh0:
	adrp	x8, _W83773_OFFSET_MSB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _W83773_OFFSET_MSB@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w1, [x8, w20, sxtw #2]
	mov	x0, x19
	bl	_regmap_write
	tbnz	w0, #31, LBB0_2
; %bb.1:
	sxtw	x8, w20
	lsl	w9, w21, #5
	and	x2, x9, #0xe0
Lloh3:
	adrp	x9, _W83773_OFFSET_LSB@GOTPAGE
Lloh4:
	ldr	x9, [x9, _W83773_OFFSET_LSB@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	w1, [x9, x8, lsl #2]
	mov	x0, x19
	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
	b	_regmap_write
LBB0_2:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_W83773_OFFSET_MSB,8,3          ; @W83773_OFFSET_MSB
	.comm	_W83773_OFFSET_LSB,8,3          ; @W83773_OFFSET_LSB
	.no_dead_strip	_set_offset
.subsections_via_symbols
