	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fan_min_store
_fan_min_store:                         ## @fan_min_store
	.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, %r13
	movq	%rsi, %rbx
	callq	_dev_get_drvdata
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_to_sensor_dev_attr
	movslq	(%rax), %r12
	movq	(%r15), %rax
	movq	_LD_FAN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	(%rax,%rcx,4), %rbx
	leaq	-48(%rbp), %rdx
	movq	%r13, %rdi
	movl	$10, %esi
	callq	_kstrtoul
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movq	%r15, %r13
	addq	$8, %r13
	movq	%r13, %rdi
	callq	_mutex_lock
	movl	%r12d, %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	-48(%rbp), %rdi
	callq	_fan_to_reg
	movq	16(%r15), %rcx
	movl	%eax, (%rcx,%r12,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	%r13, %rdi
	callq	_mutex_unlock
	jmp	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subq	(%rax), %r14
LBB0_3:
	movq	%r14, %rax
	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	_EINVAL,8,3                     ## @EINVAL
	.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	_fan_min_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fan_min_store
_fan_min_store:                         ; @fan_min_store
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x3
	mov	x22, x2
	mov	x21, x1
	bl	_dev_get_drvdata
	mov	x20, x0
	mov	x0, x21
	bl	_to_sensor_dev_attr
	ldrsw	x21, [x0]
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _LD_FAN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LD_FAN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldrsw	x23, [x8, x9, lsl #2]
	add	x2, sp, #8
	mov	x0, x22
	mov	w1, #10
	bl	_kstrtoul
	tbnz	x0, #63, LBB0_2
; %bb.1:
	add	x22, x20, #8
	mov	x0, x22
	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, x23
	bl	_outb
Lloh6:
	adrp	x24, _PC87427_REG_FAN_STATUS@GOTPAGE
Lloh7:
	ldr	x24, [x24, _PC87427_REG_FAN_STATUS@GOTPAGEOFF]
	ldr	x8, [x24]
	add	x1, x8, x23
	mov	w0, #0
	bl	_outb
	ldr	x0, [sp, #8]
	bl	_fan_to_reg
	ldr	x8, [x20, #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, x23
	bl	_outw
Lloh11:
	adrp	x8, _FAN_STATUS_MONEN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FAN_STATUS_MONEN@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldr	x8, [x24]
	add	x1, x8, x23
	bl	_outb
	mov	x0, x22
	bl	_mutex_unlock
	b	LBB0_3
LBB0_2:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	neg	x19, x8
LBB0_3:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_LD_FAN,8,3                     ; @LD_FAN
	.comm	_EINVAL,8,3                     ; @EINVAL
	.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	_fan_min_store
.subsections_via_symbols
