	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_fan_min
_set_fan_min:                           ## @set_fan_min
	.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, %r15
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_to_sensor_dev_attr
	movslq	(%rax), %r13
	movq	%rbx, %rdi
	callq	_dev_get_drvdata
	movq	%rax, %rbx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_simple_strtol
	movl	%eax, %r12d
	leaq	8(%rbx), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	_IT87_REG_FAN_DIV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_it87_read_value
	testq	%r13, %r13
	je	LBB0_4
## %bb.1:
	cmpl	$1, %r13d
	je	LBB0_5
## %bb.2:
	cmpl	$2, %r13d
	jne	LBB0_3
## %bb.6:
	andl	$64, %eax
	shrl	$5, %eax
	orl	$1, %eax
	movq	(%rbx), %rcx
	movl	%eax, 8(%rcx)
	jmp	LBB0_7
LBB0_4:
	andl	$7, %eax
	movq	(%rbx), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_7
LBB0_5:
	shrl	$3, %eax
	andl	$7, %eax
	movq	(%rbx), %rcx
	movl	%eax, 4(%rcx)
	jmp	LBB0_7
LBB0_3:
	movq	(%rbx), %rcx
LBB0_7:
	movl	(%rcx,%r13,4), %edi
	callq	_DIV_FROM_REG
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_FAN_TO_REG
	movq	16(%rbx), %rcx
	movl	%eax, (%rcx,%r13,4)
	movq	_IT87_REG_FAN_MIN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%r13,4), %esi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_it87_write_value
	movq	%r15, %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	_IT87_REG_FAN_DIV,4,2           ## @IT87_REG_FAN_DIV
	.comm	_IT87_REG_FAN_MIN,8,3           ## @IT87_REG_FAN_MIN
	.no_dead_strip	_set_fan_min
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_fan_min
_set_fan_min:                           ; @set_fan_min
	.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
	mov	x20, x0
	mov	x0, x1
	bl	_to_sensor_dev_attr
	ldr	w24, [x0]
	sxtw	x23, w24
	mov	x0, x20
	bl	_dev_get_drvdata
	mov	x20, x0
	mov	x0, x21
	mov	x1, #0
	mov	w2, #10
	bl	_simple_strtol
	mov	x22, x0
	add	x21, x20, #8
	mov	x0, x21
	bl	_mutex_lock
Lloh0:
	adrp	x8, _IT87_REG_FAN_DIV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IT87_REG_FAN_DIV@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_it87_read_value
	cbz	w24, LBB0_4
; %bb.1:
	cmp	w24, #1
	b.eq	LBB0_5
; %bb.2:
	cmp	w24, #2
	b.ne	LBB0_6
; %bb.3:
	tst	w0, #0x40
	mov	w8, #3
	csinc	w9, w8, wzr, ne
	ldr	x8, [x20]
	str	w9, [x8, #8]
	b	LBB0_7
LBB0_4:
	and	w9, w0, #0x7
	ldr	x8, [x20]
	str	w9, [x8]
	b	LBB0_7
LBB0_5:
	ubfx	w9, w0, #3, #3
	ldr	x8, [x20]
	str	w9, [x8, #4]
	b	LBB0_7
LBB0_6:
	ldr	x8, [x20]
LBB0_7:
	lsl	x23, x23, #2
	ldr	w0, [x8, x23]
	bl	_DIV_FROM_REG
	mov	x1, x0
	mov	x0, x22
	bl	_FAN_TO_REG
	mov	x2, x0
	ldr	x8, [x20, #16]
	str	w0, [x8, x23]
Lloh3:
	adrp	x8, _IT87_REG_FAN_MIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IT87_REG_FAN_MIN@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	w1, [x8, x23]
	mov	x0, x20
	bl	_it87_write_value
	mov	x0, x21
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_IT87_REG_FAN_DIV,4,2           ; @IT87_REG_FAN_DIV
	.comm	_IT87_REG_FAN_MIN,8,3           ; @IT87_REG_FAN_MIN
	.no_dead_strip	_set_fan_min
.subsections_via_symbols
