	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_pwm_mode
_set_pwm_mode:                          ## @set_pwm_mode
	.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
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r14
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_to_sensor_dev_attr
	movslq	(%rax), %r15
	movq	%rbx, %rdi
	callq	_to_i2c_client
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_i2c_get_clientdata
	movq	%rax, %r12
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_simple_strtoul
	cmpl	$2, %eax
	jae	LBB0_1
## %bb.2:
	movl	%eax, %ebx
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	addq	$8, %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	_F75375_REG_CONFIG1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_f75375_read8
	movl	%r15d, %edi
	callq	_FAN_CTRL_LINEAR
	movl	$-2, %r14d
	movl	%eax, %ecx
	roll	%cl, %r14d
	testl	%ebx, %ebx
	jne	LBB0_4
## %bb.3:
	movl	%r15d, %edi
	callq	_FAN_CTRL_LINEAR
	btsl	%eax, %r14d
LBB0_4:
	movq	_F75375_REG_CONFIG1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r14d, %edx
	callq	_f75375_write8
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	%ebx, (%rax,%r15,4)
	movq	%r12, %rdi
	callq	_mutex_unlock
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_5
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subq	(%rcx), %rax
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_F75375_REG_CONFIG1,4,2         ## @F75375_REG_CONFIG1
	.no_dead_strip	_set_pwm_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_pwm_mode
_set_pwm_mode:                          ; @set_pwm_mode
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x3
	mov	x23, x2
	mov	x21, x0
	mov	x0, x1
	bl	_to_sensor_dev_attr
	ldrsw	x20, [x0]
	mov	x0, x21
	bl	_to_i2c_client
	mov	x21, x0
	bl	_i2c_get_clientdata
	mov	x22, x0
	mov	x0, x23
	mov	x1, #0
	mov	w2, #10
	bl	_simple_strtoul
	cmp	w0, #2
	b.hs	LBB0_4
; %bb.1:
	mov	x23, x0
	add	x24, x22, #8
	mov	x0, x24
	bl	_mutex_lock
Lloh0:
	adrp	x26, _F75375_REG_CONFIG1@GOTPAGE
Lloh1:
	ldr	x26, [x26, _F75375_REG_CONFIG1@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	x0, x21
	bl	_f75375_read8
	mov	x0, x20
	bl	_FAN_CTRL_LINEAR
	mov	w27, #1
	lsl	w8, w27, w0
	mvn	w25, w8
	cbnz	w23, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_FAN_CTRL_LINEAR
	lsl	w8, w27, w0
	orr	w25, w8, w25
LBB0_3:
	ldr	w1, [x26]
	mov	x0, x21
	mov	x2, x25
	bl	_f75375_write8
	ldr	x8, [x22]
	str	w23, [x8, x20, lsl #2]
	mov	x0, x24
	bl	_mutex_unlock
	b	LBB0_5
LBB0_4:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	neg	x19, x8
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_F75375_REG_CONFIG1,4,2         ; @F75375_REG_CONFIG1
	.no_dead_strip	_set_pwm_mode
.subsections_via_symbols
