	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_target
_set_target:                            ## @set_target
	.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, %r14
	movq	%rdx, %rbx
	callq	_to_i2c_client
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_i2c_get_clientdata
	movq	%rax, %r13
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_simple_strtoul
	movq	_FAN_RPM_MIN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_FAN_RPM_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	callq	_SENSORS_LIMIT
	movl	%eax, %ebx
	leaq	4(%r13), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movl	8(%r13), %edi
	callq	_DIV_FROM_REG
	movq	_clock@GOTPCREL(%rip), %rcx
	imull	(%rcx), %eax
	shll	$8, %ebx
	movslq	%ebx, %rcx
	imulq	$-2004318071, %rcx, %rdx        ## imm = 0x88888889
	shrq	$32, %rdx
	addl	%edx, %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	sarl	$5, %ecx
	addl	%edx, %ecx
	cltd
	idivl	%ecx
	cmpl	$2, %eax
	movl	$1, %ecx
	cmovgel	%eax, %ecx
	cmpl	$256, %ecx                      ## imm = 0x100
	movl	$256, %edx                      ## imm = 0x100
	cmovll	%ecx, %edx
	decl	%edx
	movl	%edx, (%r13)
	movq	_MAX6650_REG_SPEED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_write_byte_data
	movq	%r12, %rdi
	callq	_mutex_unlock
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FAN_RPM_MIN,4,2                ## @FAN_RPM_MIN
	.comm	_FAN_RPM_MAX,4,2                ## @FAN_RPM_MAX
	.comm	_clock,4,2                      ## @clock
	.comm	_MAX6650_REG_SPEED,4,2          ## @MAX6650_REG_SPEED
	.no_dead_strip	_set_target
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_target
_set_target:                            ; @set_target
	.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	x21, x2
	bl	_to_i2c_client
	mov	x20, x0
	bl	_i2c_get_clientdata
	mov	x22, x0
	mov	x0, x21
	mov	x1, #0
	mov	w2, #10
	bl	_simple_strtoul
Lloh0:
	adrp	x8, _FAN_RPM_MIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FAN_RPM_MIN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _FAN_RPM_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FAN_RPM_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_SENSORS_LIMIT
	mov	x21, x0
	add	x23, x22, #4
	mov	x0, x23
	bl	_mutex_lock
	ldr	w0, [x22, #8]
	bl	_DIV_FROM_REG
Lloh6:
	adrp	x8, _clock@GOTPAGE
Lloh7:
	ldr	x8, [x8, _clock@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	mul	w8, w8, w0
	lsl	w9, w21, #8
	mov	w10, #34953
	movk	w10, #34952, lsl #16
	smull	x10, w9, w10
	lsr	x10, x10, #32
	add	w9, w10, w9
	asr	w10, w9, #5
	add	w9, w10, w9, lsr #31
	sdiv	w8, w8, w9
	cmp	w8, #1
	csinc	w8, w8, wzr, gt
	mov	w9, #256
	cmp	w8, #256
	csel	w8, w8, w9, lt
	sub	w2, w8, #1
	str	w2, [x22]
Lloh9:
	adrp	x8, _MAX6650_REG_SPEED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MAX6650_REG_SPEED@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_i2c_smbus_write_byte_data
	mov	x0, x23
	bl	_mutex_unlock
	mov	x0, x19
	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 AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FAN_RPM_MIN,4,2                ; @FAN_RPM_MIN
	.comm	_FAN_RPM_MAX,4,2                ; @FAN_RPM_MAX
	.comm	_clock,4,2                      ; @clock
	.comm	_MAX6650_REG_SPEED,4,2          ; @MAX6650_REG_SPEED
	.no_dead_strip	_set_target
.subsections_via_symbols
