	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nouveau_therm_update_linear
_nouveau_therm_update_linear:           ## @nouveau_therm_update_linear
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	(%rax), %r15
	movq	8(%rax), %r14
	callq	*%rax
	movq	%rax, %rcx
	subq	%r15, %rax
	jge	LBB0_2
## %bb.1:
	movq	(%rbx), %rax
	movl	16(%rax), %eax
	jmp	LBB0_8
LBB0_2:
	cmpq	%r14, %rcx
	jle	LBB0_4
## %bb.3:
	movq	(%rbx), %rax
	movl	20(%rax), %eax
	jmp	LBB0_8
LBB0_4:
	movq	(%rbx), %rcx
	movslq	20(%rcx), %rdx
	movslq	16(%rcx), %rcx
	subq	%rcx, %rdx
	imulq	%rdx, %rax
	subq	%r15, %r14
	movq	%rax, %rdx
	orq	%r14, %rdx
	shrq	$32, %rdx
	je	LBB0_5
## %bb.6:
	cqto
	idivq	%r14
	jmp	LBB0_7
LBB0_5:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%r14d
                                        ## kill: def $eax killed $eax def $rax
LBB0_7:
	addl	%ecx, %eax
LBB0_8:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_nouveau_therm_update_linear
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nouveau_therm_update_linear
_nouveau_therm_update_linear:           ; @nouveau_therm_update_linear
	.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
	ldr	x8, [x0]
	ldp	x20, x21, [x8]
	blr	x8
	subs	x8, x0, x20
	b.ge	LBB0_2
; %bb.1:
	ldr	x8, [x19]
	ldr	w0, [x8, #16]
	b	LBB0_5
LBB0_2:
	cmp	x0, x21
	b.le	LBB0_4
; %bb.3:
	ldr	x8, [x19]
	ldr	w0, [x8, #20]
	b	LBB0_5
LBB0_4:
	ldr	x9, [x19]
	ldpsw	x9, x10, [x9, #16]
	sub	x10, x10, x9
	mul	x8, x8, x10
	sub	x10, x21, x20
	sdiv	x8, x8, x10
	add	w0, w9, w8
LBB0_5:
	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
	.no_dead_strip	_nouveau_therm_update_linear
.subsections_via_symbols
