	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function store_fan_min
_store_fan_min:                         ## @store_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, %r13
	movq	%rdx, %r14
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_to_sensor_dev_attr_2
	movslq	(%rax), %r12
	movq	%rbx, %rdi
	callq	_to_i2c_client
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_i2c_get_clientdata
	movq	%rax, %rbx
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movl	$10, %esi
	callq	_kstrtoul
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subq	(%rax), %r13
	jmp	LBB0_6
LBB0_2:
	movq	%rbx, %r14
	movq	-48(%rbp), %rdi
	callq	_fan_to_reg
	movq	%rax, -48(%rbp)
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	-48(%rbp), %rax
	movq	(%r14), %rcx
	movq	%rax, (%rcx,%r12,8)
	movl	%r12d, %edi
	callq	_W83795_REG_FAN_MIN_HL
	movl	-48(%rbp), %ecx
	shrl	$4, %ecx
	movzbl	%cl, %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_w83795_write
	movq	-48(%rbp), %rax
	andl	$15, %eax
	movq	%rax, -48(%rbp)
	testb	$1, %r12b
	jne	LBB0_3
## %bb.4:
	movl	%r12d, %edi
	callq	_W83795_REG_FAN_MIN_LSB
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_w83795_read
                                        ## kill: def $eax killed $eax def $rax
	andl	$240, %eax
	jmp	LBB0_5
LBB0_3:
	shlq	$4, %rax
	movq	%rax, -48(%rbp)
	movl	%r12d, %edi
	callq	_W83795_REG_FAN_MIN_LSB
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_w83795_read
                                        ## kill: def $eax killed $eax def $rax
	andl	$15, %eax
LBB0_5:
	orq	-48(%rbp), %rax
	movq	%rax, -48(%rbp)
	movl	%r12d, %edi
	callq	_W83795_REG_FAN_MIN_LSB
	movzbl	-48(%rbp), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_w83795_write
	movq	%rbx, %rdi
	callq	_mutex_unlock
LBB0_6:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,8,3                     ## @EINVAL
	.no_dead_strip	_store_fan_min
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function store_fan_min
_store_fan_min:                         ; @store_fan_min
	.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	x20, x0
	mov	x0, x1
	bl	_to_sensor_dev_attr_2
	ldrsw	x21, [x0]
	mov	x0, x20
	bl	_to_i2c_client
	mov	x20, x0
	bl	_i2c_get_clientdata
	mov	x23, x0
	add	x2, sp, #8
	mov	x0, x22
	mov	w1, #10
	bl	_kstrtoul
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	neg	x19, x8
	b	LBB0_6
LBB0_2:
	ldr	x0, [sp, #8]
	bl	_fan_to_reg
	str	x0, [sp, #8]
	add	x22, x23, #8
	mov	x0, x22
	bl	_mutex_lock
	ldr	x8, [sp, #8]
	ldr	x9, [x23]
	str	x8, [x9, x21, lsl #3]
	mov	x0, x21
	bl	_W83795_REG_FAN_MIN_HL
	mov	x1, x0
	ldr	x8, [sp, #8]
	ubfx	x2, x8, #4, #8
	mov	x0, x20
	bl	_w83795_write
	ldr	x8, [sp, #8]
	and	x8, x8, #0xf
	str	x8, [sp, #8]
	tbnz	w21, #0, LBB0_4
; %bb.3:
	mov	x0, x21
	bl	_W83795_REG_FAN_MIN_LSB
	mov	x1, x0
	mov	x0, x20
	bl	_w83795_read
	and	w8, w0, #0xf0
	b	LBB0_5
LBB0_4:
	lsl	x8, x8, #4
	str	x8, [sp, #8]
	mov	x0, x21
	bl	_W83795_REG_FAN_MIN_LSB
	mov	x1, x0
	mov	x0, x20
	bl	_w83795_read
	and	w8, w0, #0xf
LBB0_5:
	ldr	x9, [sp, #8]
	orr	x8, x9, x8
	str	x8, [sp, #8]
	mov	x0, x21
	bl	_W83795_REG_FAN_MIN_LSB
	mov	x1, x0
	ldrb	w2, [sp, #8]
	mov	x0, x20
	bl	_w83795_write
	mov	x0, x22
	bl	_mutex_unlock
LBB0_6:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,8,3                     ; @EINVAL
	.no_dead_strip	_store_fan_min
.subsections_via_symbols
