	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv50_fan_pwm_clock             ## -- Begin function nv50_fan_pwm_clock
	.p2align	4, 0x90
_nv50_fan_pwm_clock:                    ## @nv50_fan_pwm_clock
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	callq	_nv_device
	movl	(%rax), %ebx
	movq	%r12, %rdi
	callq	_nv_device
	movl	4(%rax), %r15d
	addl	$-81, %ebx
	cmpl	$66, %ebx
	ja	LBB0_4
## %bb.1:
	movq	%r12, %rdi
	movl	$16652, %esi                    ## imm = 0x410C
	callq	_nv_rd32
	movl	%eax, %r14d
	movq	%r12, %rdi
	movl	$49216, %esi                    ## imm = 0xC040
	callq	_nv_rd32
	testl	$8388608, %eax                  ## imm = 0x800000
	jne	LBB0_2
## %bb.3:
	imull	$1000, %r15d, %eax              ## imm = 0x3E8
	movl	%r14d, %ecx
	sarl	%cl, %eax
	cltq
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$35, %rax
	addl	%ecx, %eax
	jmp	LBB0_5
LBB0_4:
	imull	$50, %r15d, %eax
	jmp	LBB0_5
LBB0_2:
	movl	$100000000, %eax                ## imm = 0x5F5E100
	movl	%r14d, %ecx
	shrl	%cl, %eax
	addl	%eax, %eax
	leal	(%rax,%rax,4), %ecx
	movl	$2863311531, %eax               ## imm = 0xAAAAAAAB
	imulq	%rcx, %rax
	shrq	$36, %rax
LBB0_5:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv50_fan_pwm_clock             ; -- Begin function nv50_fan_pwm_clock
	.p2align	2
_nv50_fan_pwm_clock:                    ; @nv50_fan_pwm_clock
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	bl	_nv_device
	ldr	w20, [x0]
	mov	x0, x19
	bl	_nv_device
	ldr	w21, [x0, #4]
	sub	w8, w20, #81
	cmp	w8, #66
	b.hi	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #16652
	bl	_nv_rd32
	mov	x20, x0
	mov	x0, x19
	mov	w1, #49216
	bl	_nv_rd32
	mov	w8, #1000
	mul	w8, w21, w8
	asr	w8, w8, w20
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #35
	add	w8, w8, w9
	mov	w9, #57600
	movk	w9, #1525, lsl #16
	lsr	w9, w9, w20
	add	w9, w9, w9, lsl #2
	lsl	w9, w9, #1
	mov	w10, #43691
	movk	w10, #43690, lsl #16
	umull	x9, w9, w10
	lsr	x9, x9, #36
	tst	w0, #0x800000
	csel	w0, w8, w9, eq
	b	LBB0_3
LBB0_2:
	mov	w8, #50
	mul	w0, w21, w8
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
