	.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
	pushq	%rax
	.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, %r13d
	movq	%rdi, %r14
	callq	_i2c_get_clientdata
	cmpl	$5, %r12d
	jb	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_10
LBB0_2:
	movq	%rax, %r15
	movq	_F75375_REG_FAN_TIMER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_f75375_read8
	movl	%r13d, %edi
	callq	_FAN_CTRL_MODE
	movl	$3, %ebx
	movl	%eax, %ecx
	shll	%cl, %ebx
	notl	%ebx
	movslq	%r13d, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	cmpl	$2, %r12d
	je	LBB0_7
## %bb.3:
	cmpl	$1, %r12d
	je	LBB0_6
## %bb.4:
	testl	%r12d, %r12d
	jne	LBB0_9
## %bb.5:
	movl	%r13d, %edi
	callq	_FAN_CTRL_MODE
	movl	$3, %edx
	movl	%eax, %ecx
	shll	%cl, %edx
	orl	%edx, %ebx
	movq	(%r15), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	$255, (%rax,%rcx,4)
	movl	%r13d, %edi
	callq	_F75375_REG_FAN_PWM_DUTY
	movq	(%r15), %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rcx,%rdx,4), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_f75375_write8
	jmp	LBB0_9
LBB0_7:
	movl	%r13d, %edi
	callq	_FAN_CTRL_MODE
	movl	$2, %edx
	jmp	LBB0_8
LBB0_6:
	movl	%r13d, %edi
	callq	_FAN_CTRL_MODE
	movl	$3, %edx
LBB0_8:
	movl	%eax, %ecx
	shll	%cl, %edx
	orl	%edx, %ebx
LBB0_9:
	movq	_F75375_REG_FAN_TIMER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_f75375_write8
	movq	8(%r15), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%r12d, (%rax,%rcx,4)
	xorl	%eax, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_F75375_REG_FAN_TIMER,4,2       ## @F75375_REG_FAN_TIMER
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_i2c_get_clientdata
	cmp	w19, #5
	b.lo	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_2:
	mov	x22, x0
Lloh3:
	adrp	x24, _F75375_REG_FAN_TIMER@GOTPAGE
Lloh4:
	ldr	x24, [x24, _F75375_REG_FAN_TIMER@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x21
	bl	_f75375_read8
	mov	x0, x20
	bl	_FAN_CTRL_MODE
	mov	w8, #3
	lsl	w8, w8, w0
	mvn	w23, w8
	cmp	w19, #2
	b.eq	LBB0_6
; %bb.3:
	cmp	w19, #1
	b.eq	LBB0_7
; %bb.4:
	cbnz	w19, LBB0_9
; %bb.5:
	mov	x0, x20
	bl	_FAN_CTRL_MODE
	mov	w8, #3
	lsl	w8, w8, w0
	orr	w23, w8, w23
	ldr	x8, [x22]
	sbfiz	x25, x20, #2, #32
	mov	w9, #255
	str	w9, [x8, x25]
	mov	x0, x20
	bl	_F75375_REG_FAN_PWM_DUTY
	mov	x1, x0
	ldr	x8, [x22]
	ldr	w2, [x8, x25]
	mov	x0, x21
	bl	_f75375_write8
	b	LBB0_9
LBB0_6:
	mov	x0, x20
	bl	_FAN_CTRL_MODE
	mov	w8, #2
	b	LBB0_8
LBB0_7:
	mov	x0, x20
	bl	_FAN_CTRL_MODE
	mov	w8, #3
LBB0_8:
	lsl	w8, w8, w0
	orr	w23, w8, w23
LBB0_9:
	ldr	w1, [x24]
	mov	x0, x21
	mov	x2, x23
	bl	_f75375_write8
	mov	w0, #0
	ldr	x8, [x22, #8]
	str	w19, [x8, w20, sxtw #2]
LBB0_10:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_F75375_REG_FAN_TIMER,4,2       ; @F75375_REG_FAN_TIMER
	.no_dead_strip	_set_pwm_enable_direct
.subsections_via_symbols
