	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_pwm_enable_direct
_set_pwm_enable_direct:                 ## @set_pwm_enable_direct
	.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
	movl	%edx, %r12d
	movl	%esi, %r14d
	movq	%rdi, %r15
	callq	_i2c_get_clientdata
	cmpl	$5, %r12d
	jb	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_21
LBB0_3:
	movq	%rax, %rbx
	movq	_F75375_REG_FAN_TIMER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_f75375_read8
	movl	%eax, %r13d
	movq	(%rbx), %rax
	movq	_f75387@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.4:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %rax
	movslq	%r14d, %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	(%rax,%rcx,4), %edi
	callq	_duty_mode_enabled
	movq	%rax, %rbx
	movl	%r12d, %edi
	callq	_duty_mode_enabled
	cmpq	%rax, %rbx
	jne	LBB0_5
## %bb.6:
	movl	%r14d, %edi
	callq	_F75387_FAN_DUTY_MODE
	movl	%eax, %ebx
	movl	%r14d, %edi
	callq	_F75387_FAN_MANU_MODE
	movl	$1, %edx
	movl	%eax, %ecx
	shll	%cl, %edx
	btsl	%ebx, %edx
	notl	%edx
	andl	%edx, %r13d
	cmpl	$4, %r12d
	ja	LBB0_7
## %bb.8:
	movl	%r12d, %eax
	leaq	LJTI0_1(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmpq	*%rax
LBB0_17:
	movl	%r14d, %edi
	callq	_F75387_FAN_MANU_MODE
	btsl	%eax, %r13d
	movl	%r14d, %edi
	callq	_F75387_FAN_DUTY_MODE
	btsl	%eax, %r13d
	movq	16(%rbx), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	jmp	LBB0_18
LBB0_12:
	movl	%r14d, %edi
	callq	_FAN_CTRL_MODE
	movl	$3, %edx
	movl	%eax, %ecx
	shll	%cl, %edx
	notl	%edx
	andl	%edx, %r13d
	cmpl	$4, %r12d
	ja	LBB0_19
## %bb.13:
	movl	%r12d, %eax
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_14:
	movl	%r14d, %edi
	callq	_FAN_CTRL_MODE
	movl	$3, %edx
	movl	%eax, %ecx
	shll	%cl, %edx
	orl	%edx, %r13d
	movq	16(%rbx), %rax
	movslq	%r14d, %rcx
LBB0_18:
	movl	$255, (%rax,%rcx,4)
	jmp	LBB0_19
LBB0_5:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_15:
	movl	%r14d, %edi
	callq	_FAN_CTRL_MODE
	movl	$3, %edx
	movl	%eax, %ecx
	shll	%cl, %edx
	orl	%edx, %r13d
	jmp	LBB0_19
LBB0_16:
	movl	%r14d, %edi
	callq	_FAN_CTRL_MODE
	btsl	%eax, %r13d
	jmp	LBB0_19
LBB0_10:
	movl	%r14d, %edi
	callq	_F75387_FAN_MANU_MODE
	btsl	%eax, %r13d
LBB0_11:
	movl	%r14d, %edi
	callq	_F75387_FAN_DUTY_MODE
	btsl	%eax, %r13d
	jmp	LBB0_19
LBB0_9:
	movl	%r14d, %edi
	callq	_F75387_FAN_MANU_MODE
	btsl	%eax, %r13d
	jmp	LBB0_19
LBB0_7:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_19:
	movq	_F75375_REG_FAN_TIMER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r13d, %edx
	callq	_f75375_write8
	movq	8(%rbx), %rax
	movslq	%r14d, %rcx
	movl	%r12d, (%rax,%rcx,4)
	xorl	%ebx, %ebx
	testl	%r12d, %r12d
	jne	LBB0_21
## %bb.20:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_f75375_write_pwm
LBB0_21:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_1, LBB0_1-LJTI0_0
LJTI0_0:
	.long	L0_0_set_14
	.long	L0_0_set_15
	.long	L0_0_set_16
	.long	L0_0_set_19
	.long	L0_0_set_1
.set L0_1_set_17, LBB0_17-LJTI0_1
.set L0_1_set_10, LBB0_10-LJTI0_1
.set L0_1_set_19, LBB0_19-LJTI0_1
.set L0_1_set_9, LBB0_9-LJTI0_1
.set L0_1_set_11, LBB0_11-LJTI0_1
LJTI0_1:
	.long	L0_1_set_17
	.long	L0_1_set_10
	.long	L0_1_set_19
	.long	L0_1_set_9
	.long	L0_1_set_11
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_F75375_REG_FAN_TIMER,4,2       ## @F75375_REG_FAN_TIMER
	.comm	_f75387,8,3                     ## @f75387
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_set_pwm_enable_direct
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_pwm_enable_direct
_set_pwm_enable_direct:                 ; @set_pwm_enable_direct
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
	bl	_i2c_get_clientdata
	cmp	w21, #5
	b.lo	LBB0_3
LBB0_1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_22
LBB0_3:
	mov	x22, x0
Lloh2:
	adrp	x25, _F75375_REG_FAN_TIMER@GOTPAGE
Lloh3:
	ldr	x25, [x25, _F75375_REG_FAN_TIMER@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x20
	bl	_f75375_read8
	mov	x23, x0
	ldr	x8, [x22]
Lloh4:
	adrp	x9, _f75387@GOTPAGE
Lloh5:
	ldr	x9, [x9, _f75387@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.4:
	ldr	x8, [x22, #8]
	ldr	w0, [x8, w19, sxtw #2]
	bl	_duty_mode_enabled
	mov	x24, x0
	mov	x0, x21
	bl	_duty_mode_enabled
	cmp	x24, x0
	b.ne	LBB0_11
; %bb.5:
	mov	x0, x19
	bl	_F75387_FAN_DUTY_MODE
	mov	w24, #1
	lsl	w26, w24, w0
	mov	x0, x19
	bl	_F75387_FAN_MANU_MODE
	lsl	w8, w24, w0
	orr	w8, w8, w26
	bic	w23, w23, w8
	cmp	w21, #4
	b.hi	LBB0_19
; %bb.6:
	mov	w8, w21
Lloh7:
	adrp	x9, lJTI0_1@PAGE
Lloh8:
	add	x9, x9, lJTI0_1@PAGEOFF
	adr	x10, LBB0_7
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_7:
	sxtw	x24, w19
	mov	x0, x19
	bl	_F75387_FAN_MANU_MODE
	mov	w26, #1
	lsl	w8, w26, w0
	orr	w23, w8, w23
	mov	x0, x19
	bl	_F75387_FAN_DUTY_MODE
	lsl	w8, w26, w0
	orr	w23, w23, w8
	ldr	x8, [x22, #16]
	mov	w9, #255
	str	w9, [x8, x24, lsl #2]
	b	LBB0_19
LBB0_8:
	mov	x0, x19
	bl	_FAN_CTRL_MODE
	mov	w8, #3
	lsl	w8, w8, w0
	bic	w23, w23, w8
	cmp	w21, #4
	b.hi	LBB0_19
; %bb.9:
	mov	w8, w21
Lloh9:
	adrp	x9, lJTI0_0@PAGE
Lloh10:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_1
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_10:
	mov	x0, x19
	bl	_FAN_CTRL_MODE
	mov	w8, #3
	lsl	w8, w8, w0
	orr	w23, w8, w23
	ldr	x8, [x22, #16]
	mov	w9, #255
	str	w9, [x8, w19, sxtw #2]
	b	LBB0_19
LBB0_11:
Lloh11:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_2
LBB0_12:
	mov	x0, x19
	bl	_FAN_CTRL_MODE
	mov	w8, #3
	b	LBB0_18
LBB0_13:
	mov	x0, x19
	bl	_FAN_CTRL_MODE
	b	LBB0_17
LBB0_14:
	mov	x0, x19
	bl	_F75387_FAN_MANU_MODE
	mov	w24, #1
	lsl	w8, w24, w0
	orr	w23, w8, w23
	mov	x0, x19
	bl	_F75387_FAN_DUTY_MODE
	lsl	w8, w24, w0
	orr	w23, w23, w8
	b	LBB0_19
LBB0_15:
	mov	x0, x19
	bl	_F75387_FAN_MANU_MODE
	b	LBB0_17
LBB0_16:
	mov	x0, x19
	bl	_F75387_FAN_DUTY_MODE
LBB0_17:
	mov	w8, #1
LBB0_18:
	lsl	w8, w8, w0
	orr	w23, w8, w23
LBB0_19:
	ldr	w1, [x25]
	mov	x0, x20
	mov	x2, x23
	bl	_f75375_write8
	ldr	x8, [x22, #8]
	str	w21, [x8, w19, sxtw #2]
	cbnz	w21, LBB0_21
; %bb.20:
	mov	x0, x20
	mov	x1, x19
	bl	_f75375_write_pwm
LBB0_21:
	mov	w0, #0
LBB0_22:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_10-LBB0_1)>>2
	.byte	(LBB0_12-LBB0_1)>>2
	.byte	(LBB0_13-LBB0_1)>>2
	.byte	(LBB0_19-LBB0_1)>>2
	.byte	(LBB0_1-LBB0_1)>>2
lJTI0_1:
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_14-LBB0_7)>>2
	.byte	(LBB0_19-LBB0_7)>>2
	.byte	(LBB0_15-LBB0_7)>>2
	.byte	(LBB0_16-LBB0_7)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_F75375_REG_FAN_TIMER,4,2       ; @F75375_REG_FAN_TIMER
	.comm	_f75387,8,3                     ; @f75387
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_set_pwm_enable_direct
.subsections_via_symbols
