	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lm93_write_fan_smart_tach
_lm93_write_fan_smart_tach:             ## @lm93_write_fan_smart_tach
	.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	%rcx, %r15
	movl	%edx, %r12d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_LM93_REG_SF_TACH_TO_PWM@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_lm93_read_byte
	leal	(%r12,%r12), %ecx
	movl	$3, %edx
	shll	%cl, %edx
	notl	%edx
	andl	%eax, %edx
	movq	%r15, %rax
                                        ## kill: def $cl killed $cl killed $ecx
	shlq	%cl, %rax
	orl	%edx, %eax
	movl	%eax, (%r14)
	movl	(%r13), %esi
	movslq	%eax, %rdx
	movq	%rbx, %rdi
	callq	_lm93_write_byte
	movq	_LM93_REG_SFC2@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_lm93_read_byte
	movl	%eax, %ecx
	btrl	%r12d, %ecx
	btsl	%r12d, %eax
	testq	%r15, %r15
	cmovel	%ecx, %eax
	movl	%eax, 4(%r14)
	movl	(%r13), %esi
	movslq	%eax, %rdx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_lm93_write_byte                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LM93_REG_SF_TACH_TO_PWM,4,2    ## @LM93_REG_SF_TACH_TO_PWM
	.comm	_LM93_REG_SFC2,4,2              ## @LM93_REG_SFC2
	.no_dead_strip	_lm93_write_fan_smart_tach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lm93_write_fan_smart_tach
_lm93_write_fan_smart_tach:             ; @lm93_write_fan_smart_tach
	.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, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x23, _LM93_REG_SF_TACH_TO_PWM@GOTPAGE
Lloh1:
	ldr	x23, [x23, _LM93_REG_SF_TACH_TO_PWM@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_lm93_read_byte
	lsl	w8, w20, #1
	mov	w9, #3
	lsl	w9, w9, w8
	bic	w9, w0, w9
	lsl	x8, x19, x8
	orr	w8, w9, w8
	str	w8, [x21]
	ldr	w1, [x23]
	sxtw	x2, w8
	mov	x0, x22
	bl	_lm93_write_byte
Lloh2:
	adrp	x23, _LM93_REG_SFC2@GOTPAGE
Lloh3:
	ldr	x23, [x23, _LM93_REG_SFC2@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x22
	bl	_lm93_read_byte
	mov	w8, #1
	lsl	w8, w8, w20
	bic	w9, w0, w8
	orr	w8, w8, w0
	cmp	x19, #0
	csel	w8, w9, w8, eq
	str	w8, [x21, #4]
	ldr	w1, [x23]
	sxtw	x2, w8
	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	_lm93_write_byte
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_LM93_REG_SF_TACH_TO_PWM,4,2    ; @LM93_REG_SF_TACH_TO_PWM
	.comm	_LM93_REG_SFC2,4,2              ; @LM93_REG_SFC2
	.no_dead_strip	_lm93_write_fan_smart_tach
.subsections_via_symbols
