	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_set_fan_div
_do_set_fan_div:                        ## @do_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	callq	_g762_update_client
	movq	%rax, %r15
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.11:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	addq	$4, %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	decq	%rbx
	cmpq	$7, %rbx
	ja	LBB0_7
## %bb.2:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_8:
	movq	_G762_REG_FAN_CMD1_CLK_DIV_ID0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_G762_REG_FAN_CMD1_CLK_DIV_ID1@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	notl	%edx
	andl	8(%r14), %edx
	jmp	LBB0_9
LBB0_3:
	movq	_G762_REG_FAN_CMD1_CLK_DIV_ID0@GOTPCREL(%rip), %rax
	movl	8(%r14), %ecx
	orl	(%rax), %ecx
	movq	_G762_REG_FAN_CMD1_CLK_DIV_ID1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	%ecx, %edx
	jmp	LBB0_9
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_4:
	movq	_G762_REG_FAN_CMD1_CLK_DIV_ID0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	8(%r14), %edx
	jmp	LBB0_6
LBB0_5:
	movq	_G762_REG_FAN_CMD1_CLK_DIV_ID0@GOTPCREL(%rip), %rax
	movl	8(%r14), %edx
	orl	(%rax), %edx
LBB0_6:
	movq	_G762_REG_FAN_CMD1_CLK_DIV_ID1@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
LBB0_9:
	movl	%edx, 8(%r14)
	movl	12(%r14), %edi
	movq	_G762_REG_FAN_CMD1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_smbus_write_byte_data
	movl	%eax, %ebx
	movl	$0, (%r14)
LBB0_10:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_3
	.long	L0_0_set_7
	.long	L0_0_set_4
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.comm	_G762_REG_FAN_CMD1_CLK_DIV_ID0,4,2 ## @G762_REG_FAN_CMD1_CLK_DIV_ID0
	.comm	_G762_REG_FAN_CMD1_CLK_DIV_ID1,4,2 ## @G762_REG_FAN_CMD1_CLK_DIV_ID1
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_G762_REG_FAN_CMD1,4,2          ## @G762_REG_FAN_CMD1
	.no_dead_strip	_do_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 do_set_fan_div
_do_set_fan_div:                        ; @do_set_fan_div
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x1
	bl	_g762_update_client
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_2:
	add	x19, x20, #4
	mov	x0, x19
	bl	_mutex_lock
	sub	x8, x21, #1
	cmp	x8, #7
	b.hi	LBB0_6
; %bb.3:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
Lloh2:
	adrp	x8, _G762_REG_FAN_CMD1_CLK_DIV_ID0@GOTPAGE
Lloh3:
	ldr	x8, [x8, _G762_REG_FAN_CMD1_CLK_DIV_ID0@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x20, #8]
Lloh5:
	adrp	x10, _G762_REG_FAN_CMD1_CLK_DIV_ID1@GOTPAGE
Lloh6:
	ldr	x10, [x10, _G762_REG_FAN_CMD1_CLK_DIV_ID1@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	orr	w8, w8, w10
	bic	w2, w9, w8
	b	LBB0_10
LBB0_5:
Lloh8:
	adrp	x8, _G762_REG_FAN_CMD1_CLK_DIV_ID0@GOTPAGE
Lloh9:
	ldr	x8, [x8, _G762_REG_FAN_CMD1_CLK_DIV_ID0@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	w9, [x20, #8]
	orr	w8, w9, w8
Lloh11:
	adrp	x9, _G762_REG_FAN_CMD1_CLK_DIV_ID1@GOTPAGE
Lloh12:
	ldr	x9, [x9, _G762_REG_FAN_CMD1_CLK_DIV_ID1@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	bic	w2, w8, w9
	b	LBB0_10
LBB0_6:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_11
LBB0_7:
Lloh17:
	adrp	x8, _G762_REG_FAN_CMD1_CLK_DIV_ID0@GOTPAGE
Lloh18:
	ldr	x8, [x8, _G762_REG_FAN_CMD1_CLK_DIV_ID0@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ldr	w9, [x20, #8]
	bic	w8, w9, w8
	b	LBB0_9
LBB0_8:
Lloh20:
	adrp	x8, _G762_REG_FAN_CMD1_CLK_DIV_ID0@GOTPAGE
Lloh21:
	ldr	x8, [x8, _G762_REG_FAN_CMD1_CLK_DIV_ID0@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	ldr	w9, [x20, #8]
	orr	w8, w9, w8
LBB0_9:
Lloh23:
	adrp	x9, _G762_REG_FAN_CMD1_CLK_DIV_ID1@GOTPAGE
Lloh24:
	ldr	x9, [x9, _G762_REG_FAN_CMD1_CLK_DIV_ID1@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w2, w9, w8
LBB0_10:
	str	w2, [x20, #8]
	ldr	w0, [x20, #12]
Lloh26:
	adrp	x8, _G762_REG_FAN_CMD1@GOTPAGE
Lloh27:
	ldr	x8, [x8, _G762_REG_FAN_CMD1@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	bl	_i2c_smbus_write_byte_data
	mov	x21, x0
	str	wzr, [x20]
LBB0_11:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_5-LBB0_4)>>2
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
                                        ; -- End function
	.comm	_G762_REG_FAN_CMD1_CLK_DIV_ID0,4,2 ; @G762_REG_FAN_CMD1_CLK_DIV_ID0
	.comm	_G762_REG_FAN_CMD1_CLK_DIV_ID1,4,2 ; @G762_REG_FAN_CMD1_CLK_DIV_ID1
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_G762_REG_FAN_CMD1,4,2          ; @G762_REG_FAN_CMD1
	.no_dead_strip	_do_set_fan_div
.subsections_via_symbols
