	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_pwm_freq
_set_pwm_freq:                          ## @set_pwm_freq
	.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
	movq	%rcx, %r14
	movq	%rdx, %r12
	callq	_dev_get_drvdata
	movq	%rax, %r15
	xorl	%r13d, %r13d
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_simple_strtoul
	movq	_pwm_freq@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	4(%rcx), %edx
	movl	(%rcx), %esi
	addl	%edx, %esi
	movl	%esi, %edi
	shrl	$31, %edi
	addl	%esi, %edi
	sarl	%edi
	movslq	%edi, %rsi
	cmpq	%rsi, %rax
	ja	LBB0_7
## %bb.1:
	movl	8(%rcx), %esi
	addl	%esi, %edx
	movl	%edx, %edi
	shrl	$31, %edi
	addl	%edx, %edi
	sarl	%edi
	movslq	%edi, %rdx
	movl	$16, %r13d
	cmpq	%rdx, %rax
	ja	LBB0_7
## %bb.2:
	movl	12(%rcx), %edx
	addl	%edx, %esi
	movl	%esi, %edi
	shrl	$31, %edi
	addl	%esi, %edi
	sarl	%edi
	movslq	%edi, %rsi
	movl	$32, %r13d
	cmpq	%rsi, %rax
	ja	LBB0_7
## %bb.3:
	movl	16(%rcx), %esi
	addl	%esi, %edx
	movl	%edx, %edi
	shrl	$31, %edi
	addl	%edx, %edi
	sarl	%edi
	movslq	%edi, %rdx
	movl	$48, %r13d
	cmpq	%rdx, %rax
	ja	LBB0_7
## %bb.4:
	movl	20(%rcx), %edx
	addl	%edx, %esi
	movl	%esi, %edi
	shrl	$31, %edi
	addl	%esi, %edi
	sarl	%edi
	movslq	%edi, %rsi
	movl	$64, %r13d
	cmpq	%rsi, %rax
	ja	LBB0_7
## %bb.5:
	movl	24(%rcx), %esi
	addl	%esi, %edx
	movl	%edx, %edi
	shrl	$31, %edi
	addl	%edx, %edi
	sarl	%edi
	movslq	%edi, %rdx
	movl	$80, %r13d
	cmpq	%rdx, %rax
	ja	LBB0_7
## %bb.6:
	addl	28(%rcx), %esi
	movl	%esi, %ecx
	shrl	$31, %ecx
	addl	%esi, %ecx
	sarl	%ecx
	movslq	%ecx, %rcx
	xorl	%r13d, %r13d
	cmpq	%rcx, %rax
	setbe	%r13b
	shll	$4, %r13d
	orl	$96, %r13d
LBB0_7:
	movq	%r15, %rbx
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	_IT87_REG_FAN_CTL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_it87_read_value
	andl	$143, %eax
	orl	%eax, %r13d
	movl	%r13d, (%r15)
	movl	(%r12), %esi
	movq	%r15, %rdi
	movl	%r13d, %edx
	callq	_it87_write_value
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pwm_freq,8,3                   ## @pwm_freq
	.comm	_IT87_REG_FAN_CTL,4,2           ## @IT87_REG_FAN_CTL
	.no_dead_strip	_set_pwm_freq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_pwm_freq
_set_pwm_freq:                          ; @set_pwm_freq
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x3
	mov	x21, x2
	bl	_dev_get_drvdata
	mov	x20, x0
	mov	x0, x21
	mov	x1, #0
	mov	w2, #10
	bl	_simple_strtoul
Lloh0:
	adrp	x8, _pwm_freq@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pwm_freq@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldp	w10, w9, [x8]
	add	w10, w9, w10
	cmp	w10, #0
	cinc	w10, w10, lt
	asr	w10, w10, #1
	cmp	x0, w10, sxtw
	b.ls	LBB0_2
; %bb.1:
	mov	w22, #0
	b	LBB0_13
LBB0_2:
	ldr	w10, [x8, #8]
	add	w9, w10, w9
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w9, w9, #1
	cmp	x0, w9, sxtw
	b.ls	LBB0_4
; %bb.3:
	mov	w22, #16
	b	LBB0_13
LBB0_4:
	ldr	w9, [x8, #12]
	add	w10, w9, w10
	cmp	w10, #0
	cinc	w10, w10, lt
	asr	w10, w10, #1
	cmp	x0, w10, sxtw
	b.ls	LBB0_6
; %bb.5:
	mov	w22, #32
	b	LBB0_13
LBB0_6:
	ldr	w10, [x8, #16]
	add	w9, w10, w9
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w9, w9, #1
	cmp	x0, w9, sxtw
	b.ls	LBB0_8
; %bb.7:
	mov	w22, #48
	b	LBB0_13
LBB0_8:
	ldr	w9, [x8, #20]
	add	w10, w9, w10
	cmp	w10, #0
	cinc	w10, w10, lt
	asr	w10, w10, #1
	cmp	x0, w10, sxtw
	b.ls	LBB0_10
; %bb.9:
	mov	w22, #64
	b	LBB0_13
LBB0_10:
	ldr	w10, [x8, #24]
	add	w9, w10, w9
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w9, w9, #1
	cmp	x0, w9, sxtw
	b.ls	LBB0_12
; %bb.11:
	mov	w22, #80
	b	LBB0_13
LBB0_12:
	ldr	w8, [x8, #28]
	add	w8, w8, w10
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	cmp	x0, w8, sxtw
	mov	w8, #112
	mov	w9, #96
	csel	w22, w9, w8, hi
LBB0_13:
	add	x21, x20, #4
	mov	x0, x21
	bl	_mutex_lock
Lloh3:
	adrp	x23, _IT87_REG_FAN_CTL@GOTPAGE
Lloh4:
	ldr	x23, [x23, _IT87_REG_FAN_CTL@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x20
	bl	_it87_read_value
	mov	w8, #143
	and	w8, w0, w8
	orr	w2, w8, w22
	str	w2, [x20]
	ldr	w1, [x23]
	mov	x0, x20
	bl	_it87_write_value
	mov	x0, x21
	bl	_mutex_unlock
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_pwm_freq,8,3                   ; @pwm_freq
	.comm	_IT87_REG_FAN_CTL,4,2           ; @IT87_REG_FAN_CTL
	.no_dead_strip	_set_pwm_freq
.subsections_via_symbols
