	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_fan_div
_set_fan_div:                           ## @set_fan_div
	.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, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r14
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_to_sensor_dev_attr
	movslq	(%rax), %r13
	movq	%rbx, %rdi
	callq	_to_i2c_client
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_i2c_get_clientdata
	movq	%rax, %r12
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_simple_strtoul
	movq	%rax, %r14
	leaq	16(%r12), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	movq	(%r12), %rax
	movq	8(%r12), %rcx
	movl	(%rax,%r13,4), %ebx
	movl	(%rcx,%r13,4), %edi
	callq	_DIV_FROM_REG
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_FAN_FROM_REG
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_DIV_TO_REG
	movq	8(%r12), %rcx
	movl	%eax, (%rcx,%r13,4)
	cmpq	$2, %r13
	je	LBB0_5
## %bb.1:
	cmpl	$1, %r13d
	je	LBB0_4
## %bb.2:
	testl	%r13d, %r13d
	jne	LBB0_8
## %bb.3:
	movq	%rbx, %r14
	movq	_ASB100_REG_VID_FANDIV@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_asb100_read_value
	andl	$207, %eax
	movq	8(%r12), %rdx
	movl	$4, %ecx
	jmp	LBB0_7
LBB0_5:
	movq	%rbx, %r14
	movq	_ASB100_REG_PIN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_asb100_read_value
	andl	$63, %eax
	movq	8(%r12), %rdx
	addq	$8, %rdx
	jmp	LBB0_6
LBB0_4:
	movq	%rbx, %r14
	movq	_ASB100_REG_VID_FANDIV@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_asb100_read_value
	andl	$63, %eax
	movq	8(%r12), %rdx
	addq	$4, %rdx
LBB0_6:
	movl	$6, %ecx
LBB0_7:
	movl	(%rdx), %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	orl	%eax, %edx
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_asb100_write_value
	movq	%r14, %rbx
LBB0_8:
	movq	8(%r12), %rax
	movl	(%rax,%r13,4), %edi
	callq	_DIV_FROM_REG
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_FAN_TO_REG
	movq	(%r12), %rcx
	movl	%eax, (%rcx,%r13,4)
	movl	%r13d, %edi
	callq	_ASB100_REG_FAN_MIN
	movq	(%r12), %rcx
	movl	(%rcx,%r13,4), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_asb100_write_value
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ASB100_REG_VID_FANDIV,4,2      ## @ASB100_REG_VID_FANDIV
	.comm	_ASB100_REG_PIN,4,2             ## @ASB100_REG_PIN
	.no_dead_strip	_set_fan_div
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_fan_div
_set_fan_div:                           ; @set_fan_div
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x3
	mov	x22, x2
	mov	x20, x0
	mov	x0, x1
	bl	_to_sensor_dev_attr
	ldr	w26, [x0]
	mov	x0, x20
	bl	_to_i2c_client
	mov	x20, x0
	bl	_i2c_get_clientdata
	mov	x21, x0
	mov	x0, x22
	mov	x1, #0
	mov	w2, #10
	bl	_simple_strtoul
	mov	x25, x0
	add	x22, x21, #16
	mov	x0, x22
	bl	_mutex_lock
	sxtw	x23, w26
	sbfiz	x27, x26, #2, #32
	ldp	x8, x9, [x21]
	ldr	w24, [x8, x27]
	ldr	w0, [x9, x27]
	bl	_DIV_FROM_REG
	mov	x1, x0
	mov	x0, x24
	bl	_FAN_FROM_REG
	mov	x24, x0
	mov	x0, x25
	bl	_DIV_TO_REG
	ldr	x8, [x21, #8]
	str	w0, [x8, x27]
	cmp	w26, #2
	b.eq	LBB0_4
; %bb.1:
	cmp	w26, #1
	b.eq	LBB0_5
; %bb.2:
	cbnz	w26, LBB0_8
; %bb.3:
Lloh0:
	adrp	x25, _ASB100_REG_VID_FANDIV@GOTPAGE
Lloh1:
	ldr	x25, [x25, _ASB100_REG_VID_FANDIV@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x20
	bl	_asb100_read_value
	mov	w8, #207
	and	w8, w0, w8
	ldr	x9, [x21, #8]
	mov	w10, #4
	b	LBB0_7
LBB0_4:
Lloh2:
	adrp	x25, _ASB100_REG_PIN@GOTPAGE
Lloh3:
	ldr	x25, [x25, _ASB100_REG_PIN@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x20
	bl	_asb100_read_value
	and	w8, w0, #0x3f
	ldr	x9, [x21, #8]
	add	x9, x9, #8
	b	LBB0_6
LBB0_5:
Lloh4:
	adrp	x25, _ASB100_REG_VID_FANDIV@GOTPAGE
Lloh5:
	ldr	x25, [x25, _ASB100_REG_VID_FANDIV@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x20
	bl	_asb100_read_value
	and	w8, w0, #0x3f
	ldr	x9, [x21, #8]
	add	x9, x9, #4
LBB0_6:
	mov	w10, #6
LBB0_7:
	ldr	w9, [x9]
	lsl	w9, w9, w10
	orr	w2, w9, w8
	ldr	w1, [x25]
	mov	x0, x20
	bl	_asb100_write_value
LBB0_8:
	ldr	x8, [x21, #8]
	lsl	x25, x23, #2
	ldr	w0, [x8, x25]
	bl	_DIV_FROM_REG
	mov	x1, x0
	mov	x0, x24
	bl	_FAN_TO_REG
	ldr	x8, [x21]
	str	w0, [x8, x25]
	mov	x0, x23
	bl	_ASB100_REG_FAN_MIN
	mov	x1, x0
	ldr	x8, [x21]
	ldr	w2, [x8, x25]
	mov	x0, x20
	bl	_asb100_write_value
	mov	x0, x22
	bl	_mutex_unlock
	mov	x0, x19
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ASB100_REG_VID_FANDIV,4,2      ; @ASB100_REG_VID_FANDIV
	.comm	_ASB100_REG_PIN,4,2             ; @ASB100_REG_PIN
	.no_dead_strip	_set_fan_div
.subsections_via_symbols
