	.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, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r14
	movq	%rsi, %rbx
	callq	_dev_get_drvdata
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_to_sensor_dev_attr
	movslq	(%rax), %r13
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_simple_strtoul
	movq	%rax, %r14
	movq	(%r12), %rax
	movq	_LD_FAN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	(%rax,%rcx,4), %rbx
	leaq	8(%r12), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movl	%r13d, %edi
	callq	_BANK_FM
	movq	_PC87427_REG_BANK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	%rbx, %rsi
	movl	%eax, %edi
	callq	_outb
	movq	_PC87427_REG_FAN_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	xorl	%edi, %edi
	callq	_outb
	movq	%r14, %rdi
	callq	_fan_to_reg
	movq	16(%r12), %rcx
	movl	%eax, (%rcx,%r13,4)
	movq	_PC87427_REG_FAN_MIN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	%rbx, %rsi
	movl	%eax, %edi
	callq	_outw
	movq	_FAN_STATUS_MONEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PC87427_REG_FAN_STATUS@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	movq	%rbx, %rsi
	callq	_outb
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LD_FAN,8,3                     ## @LD_FAN
	.comm	_PC87427_REG_BANK,8,3           ## @PC87427_REG_BANK
	.comm	_PC87427_REG_FAN_STATUS,8,3     ## @PC87427_REG_FAN_STATUS
	.comm	_PC87427_REG_FAN_MIN,8,3        ## @PC87427_REG_FAN_MIN
	.comm	_FAN_STATUS_MONEN,4,2           ## @FAN_STATUS_MONEN
	.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	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	bl	_dev_get_drvdata
	mov	x22, x0
	mov	x0, x21
	bl	_to_sensor_dev_attr
	ldrsw	x21, [x0]
	mov	x0, x20
	mov	x1, #0
	mov	w2, #10
	bl	_simple_strtoul
	mov	x20, x0
	ldr	x8, [x22]
Lloh0:
	adrp	x9, _LD_FAN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LD_FAN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldrsw	x24, [x8, x9, lsl #2]
	add	x23, x22, #8
	mov	x0, x23
	bl	_mutex_lock
	mov	x0, x21
	bl	_BANK_FM
Lloh3:
	adrp	x8, _PC87427_REG_BANK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PC87427_REG_BANK@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x1, x8, x24
	bl	_outb
Lloh6:
	adrp	x25, _PC87427_REG_FAN_STATUS@GOTPAGE
Lloh7:
	ldr	x25, [x25, _PC87427_REG_FAN_STATUS@GOTPAGEOFF]
	ldr	x8, [x25]
	add	x1, x8, x24
	mov	w0, #0
	bl	_outb
	mov	x0, x20
	bl	_fan_to_reg
	ldr	x8, [x22, #16]
	str	w0, [x8, x21, lsl #2]
Lloh8:
	adrp	x8, _PC87427_REG_FAN_MIN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PC87427_REG_FAN_MIN@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	add	x1, x8, x24
	bl	_outw
Lloh11:
	adrp	x8, _FAN_STATUS_MONEN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FAN_STATUS_MONEN@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldr	x8, [x25]
	add	x1, x8, x24
	bl	_outb
	mov	x0, x23
	bl	_mutex_unlock
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LD_FAN,8,3                     ; @LD_FAN
	.comm	_PC87427_REG_BANK,8,3           ; @PC87427_REG_BANK
	.comm	_PC87427_REG_FAN_STATUS,8,3     ; @PC87427_REG_FAN_STATUS
	.comm	_PC87427_REG_FAN_MIN,8,3        ; @PC87427_REG_FAN_MIN
	.comm	_FAN_STATUS_MONEN,4,2           ; @FAN_STATUS_MONEN
	.no_dead_strip	_set_fan_min
.subsections_via_symbols
