	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fan_div_store
_fan_div_store:                         ## @fan_div_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %rbx
	movq	%rdi, %r13
	movq	%rsi, %rdi
	callq	_to_sensor_dev_attr
	movslq	(%rax), %r14
	movq	%r13, %rdi
	callq	_dev_get_drvdata
	movq	%rax, %r15
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_kstrtoul
	testl	%eax, %eax
	jne	LBB0_9
## %bb.1:
	movq	-48(%rbp), %rdx
	cmpq	$8, %rdx
	je	LBB0_5
## %bb.2:
	cmpq	$4, %rdx
	je	LBB0_7
## %bb.3:
	cmpq	$2, %rdx
	jne	LBB0_6
## %bb.4:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	$1, -48(%rbp)
	jmp	LBB0_8
LBB0_5:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	$3, -48(%rbp)
	jmp	LBB0_8
LBB0_7:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	$2, -48(%rbp)
LBB0_8:
	movq	%r15, %r12
	addq	$16, %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	%r13, %rdi
	callq	_to_i2c_client
	movq	_FSCHMD_REG_FAN_RIPPLE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%r15), %rdx
	movq	(%rcx,%rdx,8), %rcx
	movl	(%rcx,%r14,4), %esi
	movl	%eax, %edi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	andl	$-4, %ebx
	orl	-48(%rbp), %ebx
	movq	%r13, %rdi
	callq	_to_i2c_client
	movq	_FSCHMD_REG_FAN_RIPPLE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%r15), %rdx
	movq	(%rcx,%rdx,8), %rcx
	movl	(%rcx,%r14,4), %esi
	movl	%eax, %edi
	movl	%ebx, %edx
	callq	_i2c_smbus_write_byte_data
	movq	8(%r15), %rax
	movl	%ebx, (%rax,%r14,4)
	movq	%r12, %rdi
	callq	_mutex_unlock
	movq	-56(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
	jmp	LBB0_9
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fan_div value %lu not supported. Choose one of 2, 4 or 8!\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_FSCHMD_REG_FAN_RIPPLE,8,3      ## @FSCHMD_REG_FAN_RIPPLE
	.no_dead_strip	_fan_div_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fan_div_store
_fan_div_store:                         ; @fan_div_store
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x22, x2
	mov	x20, x0
	mov	x0, x1
	bl	_to_sensor_dev_attr
	ldrsw	x23, [x0]
	mov	x0, x20
	bl	_dev_get_drvdata
	mov	x21, x0
	add	x2, sp, #8
	mov	x0, x22
	mov	w1, #10
	bl	_kstrtoul
	cbnz	w0, LBB0_9
; %bb.1:
	ldr	x2, [sp, #8]
	cmp	x2, #8
	b.eq	LBB0_5
; %bb.2:
	cmp	x2, #4
	b.eq	LBB0_6
; %bb.3:
	cmp	x2, #2
	b.ne	LBB0_8
; %bb.4:
	mov	w8, #1
	b	LBB0_7
LBB0_5:
	mov	w8, #3
	b	LBB0_7
LBB0_6:
	mov	w8, #2
LBB0_7:
	str	x8, [sp, #8]
	add	x22, x21, #16
	mov	x0, x22
	bl	_mutex_lock
	mov	x0, x20
	bl	_to_i2c_client
Lloh0:
	adrp	x24, _FSCHMD_REG_FAN_RIPPLE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _FSCHMD_REG_FAN_RIPPLE@GOTPAGEOFF]
	ldr	x8, [x24]
	ldr	x9, [x21]
	ldr	x8, [x8, x9, lsl #3]
	lsl	x25, x23, #2
	ldr	w1, [x8, x25]
	bl	_i2c_smbus_read_byte_data
	and	w8, w0, #0xfffffffc
	ldr	w9, [sp, #8]
	orr	w23, w8, w9
	mov	x0, x20
	bl	_to_i2c_client
	ldr	x8, [x24]
	ldr	x9, [x21]
	ldr	x8, [x8, x9, lsl #3]
	ldr	w1, [x8, x25]
	mov	x2, x23
	bl	_i2c_smbus_write_byte_data
	ldr	x8, [x21, #8]
	str	w23, [x8, x25]
	mov	x0, x22
	bl	_mutex_unlock
	mov	x0, x19
	b	LBB0_9
LBB0_8:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fan_div value %lu not supported. Choose one of 2, 4 or 8!\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_FSCHMD_REG_FAN_RIPPLE,8,3      ; @FSCHMD_REG_FAN_RIPPLE
	.no_dead_strip	_fan_div_store
.subsections_via_symbols
