	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adm9240_write_fan_div
_adm9240_write_fan_div:                 ## @adm9240_write_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %r14
	leal	(%r12,%r12), %ebx
	movq	_ADM9240_REG_VID_FAN_DIV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_smbus_read_byte_data
	addb	$4, %bl
	movl	%eax, %r13d
	movl	%ebx, %ecx
	sarl	%cl, %r13d
	movl	$3, %esi
	shll	%cl, %esi
	movl	%r15d, %edx
	shll	%cl, %edx
	notl	%esi
	andl	%eax, %esi
	orl	%esi, %edx
	movq	_ADM9240_REG_VID_FAN_DIV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_i2c_smbus_write_byte_data
	incl	%r12d
	andb	$3, %r13b
	movl	$1, %r8d
	movl	$1, %eax
	movl	%r13d, %ecx
	shll	%cl, %eax
	movl	%r15d, %ecx
	shll	%cl, %r8d
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
	movl	%eax, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_dbg                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ADM9240_REG_VID_FAN_DIV,4,2    ## @ADM9240_REG_VID_FAN_DIV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fan%d clock divider changed from %u to %u\n"

	.no_dead_strip	_adm9240_write_fan_div
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adm9240_write_fan_div
_adm9240_write_fan_div:                 ; @adm9240_write_fan_div
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x2
	mov	x20, x1
	mov	x21, x0
	lsl	w8, w1, #1
	add	w22, w8, #4
Lloh0:
	adrp	x23, _ADM9240_REG_VID_FAN_DIV@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ADM9240_REG_VID_FAN_DIV@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_i2c_smbus_read_byte_data
	asr	w8, w0, w22
	and	w24, w8, #0x3
	mov	w8, #3
	lsl	w8, w8, w22
	bic	w8, w0, w8
	lsl	w9, w19, w22
	orr	w2, w8, w9
	ldr	w1, [x23]
	mov	x0, x21
	bl	_i2c_smbus_write_byte_data
	add	w2, w20, #1
	mov	w8, #1
	lsl	w3, w8, w24
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	lsl	w4, w8, w19
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_dev_dbg
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ADM9240_REG_VID_FAN_DIV,4,2    ; @ADM9240_REG_VID_FAN_DIV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fan%d clock divider changed from %u to %u\n"

	.no_dead_strip	_adm9240_write_fan_div
.subsections_via_symbols
