	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_set_fan_target
_do_set_fan_target:                     ## @do_set_fan_target
	.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	%rsi, %r15
	callq	_g762_update_client
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	%rbx, %r14
	addq	$4, %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	20(%rbx), %edi
	movl	24(%rbx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	callq	_G762_PULSE_FROM_REG
	movl	%eax, %r13d
	movl	20(%rbx), %edi
	callq	_G762_CLKDIV_FROM_REG
	movl	%eax, %r12d
	movl	16(%rbx), %edi
	callq	_G762_GEARMULT_FROM_REG
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r13d, %edx
	movl	%r12d, %ecx
	movl	%eax, %r8d
	callq	_cnt_from_rpm
	movl	%eax, 8(%rbx)
	movl	12(%rbx), %edi
	movq	_G762_REG_SET_CNT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edx
	callq	_i2c_smbus_write_byte_data
	movl	%eax, %r15d
	movl	$0, (%rbx)
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_G762_REG_SET_CNT,4,2           ## @G762_REG_SET_CNT
	.no_dead_strip	_do_set_fan_target
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_set_fan_target
_do_set_fan_target:                     ; @do_set_fan_target
	.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	x20, x1
	bl	_g762_update_client
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	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	_PTR_ERR
LBB0_2:
	add	x21, x19, #4
	mov	x0, x21
	bl	_mutex_lock
	ldp	w0, w22, [x19, #20]
	bl	_G762_PULSE_FROM_REG
	mov	x23, x0
	ldr	w0, [x19, #20]
	bl	_G762_CLKDIV_FROM_REG
	mov	x24, x0
	ldr	w0, [x19, #16]
	bl	_G762_GEARMULT_FROM_REG
	mov	x4, x0
	mov	x0, x20
	mov	x1, x22
	mov	x2, x23
	mov	x3, x24
	bl	_cnt_from_rpm
	mov	x2, x0
	str	w0, [x19, #8]
	ldr	w0, [x19, #12]
Lloh0:
	adrp	x8, _G762_REG_SET_CNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _G762_REG_SET_CNT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_i2c_smbus_write_byte_data
	mov	x20, x0
	str	wzr, [x19]
	mov	x0, x21
	bl	_mutex_unlock
	mov	x0, x20
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_G762_REG_SET_CNT,4,2           ; @G762_REG_SET_CNT
	.no_dead_strip	_do_set_fan_target
.subsections_via_symbols
