	.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, %r14
	movq	%rdx, %r13
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_to_sensor_dev_attr
	movslq	(%rax), %r15
	movq	%rbx, %rdi
	callq	_to_i2c_client
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_i2c_get_clientdata
	movq	%rax, %rbx
	leaq	-56(%rbp), %rdx
	movq	%r13, %rdi
	movl	$10, %esi
	callq	_kstrtoul
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	-56(%rbp), %rax
	cmpq	$2, %rax
	jae	LBB0_3
## %bb.4:
	movq	(%rbx), %rcx
	movq	_f75373@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_6
## %bb.5:
	testq	%rax, %rax
	jne	LBB0_6
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_10
LBB0_1:
	movl	%eax, %r14d
	jmp	LBB0_10
LBB0_6:
	movq	_f75387@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_8
## %bb.7:
	movq	_F75375_REG_FAN_TIMER@GOTPCREL(%rip), %rax
	movb	(%rax), %r13b
	movl	%r15d, %edi
	callq	_F75387_FAN_CTRL_LINEAR
	jmp	LBB0_9
LBB0_8:
	movq	_F75375_REG_CONFIG1@GOTPCREL(%rip), %rax
	movb	(%rax), %r13b
	movl	%r15d, %edi
	callq	_F75375_FAN_CTRL_LINEAR
LBB0_9:
                                        ## kill: def $al killed $al def $eax
	movb	%r13b, -44(%rbp)                ## 1-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %r13
	addq	$16, %r13
	movq	%r13, %rdi
	movl	%eax, %r15d
	callq	_mutex_lock
	movsbl	-44(%rbp), %esi                 ## 1-byte Folded Reload
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	callq	_f75375_read8
	movl	%eax, %edx
	btrl	%r15d, %edx
	btsl	%r15d, %eax
	cmpq	$0, -56(%rbp)
	cmovel	%eax, %edx
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_f75375_write8
	movq	-56(%rbp), %rax
	movq	8(%rbx), %rcx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, (%rcx,%rdx,8)
	movq	%r13, %rdi
	callq	_mutex_unlock
LBB0_10:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_f75373,8,3                     ## @f75373
	.comm	_f75387,8,3                     ## @f75387
	.comm	_F75375_REG_FAN_TIMER,1,0       ## @F75375_REG_FAN_TIMER
	.comm	_F75375_REG_CONFIG1,1,0         ## @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:
	sub	sp, sp, #96
	.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
	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	x22, x0
	bl	_i2c_get_clientdata
	mov	x21, x0
	add	x2, sp, #8
	mov	x0, x23
	mov	w1, #10
	bl	_kstrtoul
	tbnz	w0, #31, LBB0_6
; %bb.1:
	ldr	x9, [sp, #8]
	cmp	x9, #2
	b.hs	LBB0_5
; %bb.2:
	ldr	x8, [x21]
Lloh0:
	adrp	x10, _f75373@GOTPAGE
Lloh1:
	ldr	x10, [x10, _f75373@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x8, x10
	ccmp	x9, #0, #0, eq
	b.eq	LBB0_5
; %bb.3:
Lloh3:
	adrp	x9, _f75387@GOTPAGE
Lloh4:
	ldr	x9, [x9, _f75387@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.4:
Lloh6:
	adrp	x8, _F75375_REG_FAN_TIMER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _F75375_REG_FAN_TIMER@GOTPAGEOFF]
	ldrb	w25, [x8]
	mov	x0, x20
	bl	_F75387_FAN_CTRL_LINEAR
	b	LBB0_8
LBB0_5:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_9
LBB0_6:
	mov	x19, x0
	b	LBB0_9
LBB0_7:
Lloh11:
	adrp	x8, _F75375_REG_CONFIG1@GOTPAGE
Lloh12:
	ldr	x8, [x8, _F75375_REG_CONFIG1@GOTPAGEOFF]
	ldrb	w25, [x8]
	mov	x0, x20
	bl	_F75375_FAN_CTRL_LINEAR
LBB0_8:
	mov	x23, x0
	add	x24, x21, #16
	mov	x0, x24
	bl	_mutex_lock
	sxtb	w25, w25
	mov	x0, x22
	mov	x1, x25
	bl	_f75375_read8
	mov	w8, #1
	lsl	w8, w8, w23
	bic	w9, w0, w8
	ldr	x10, [sp, #8]
	orr	w8, w0, w8
	cmp	x10, #0
	csel	w2, w8, w9, eq
	mov	x0, x22
	mov	x1, x25
	bl	_f75375_write8
	ldr	x8, [sp, #8]
	ldr	x9, [x21, #8]
	str	x8, [x9, x20, lsl #3]
	mov	x0, x24
	bl	_mutex_unlock
LBB0_9:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_f75373,8,3                     ; @f75373
	.comm	_f75387,8,3                     ; @f75387
	.comm	_F75375_REG_FAN_TIMER,1,0       ; @F75375_REG_FAN_TIMER
	.comm	_F75375_REG_CONFIG1,1,0         ; @F75375_REG_CONFIG1
	.no_dead_strip	_set_pwm_mode
.subsections_via_symbols
