	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvkm_therm_update_trip
_nvkm_therm_update_trip:                ## @nvkm_therm_update_trip
	.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
	movq	(%rdi), %r14
	movq	8(%rdi), %rax
	movq	8(%rax), %r15
	movq	16(%rdi), %rax
	callq	*(%rax)
	movq	8(%r12), %rcx
	movq	(%rcx), %r8
	testq	%r8, %r8
	je	LBB0_1
## %bb.2:
	leaq	-1(%r8), %rdx
	movl	%r8d, %r9d
	andl	$3, %r9d
	cmpq	$3, %rdx
	jae	LBB0_4
## %bb.3:
	xorl	%edi, %edi
	xorl	%edx, %edx
	jmp	LBB0_6
LBB0_1:
	xorl	%edx, %edx
	jmp	LBB0_9
LBB0_4:
	andq	$-4, %r8
	leaq	48(%r15), %rbx
	xorl	%edi, %edi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	leaq	-48(%rbx), %rsi
	cmpq	-48(%rbx), %rax
	cmovlq	%rdx, %rsi
	leaq	-24(%rbx), %rcx
	cmpq	-24(%rbx), %rax
	cmovlq	%rsi, %rcx
	cmpq	(%rbx), %rax
	cmovgeq	%rbx, %rcx
	leaq	24(%rbx), %rdx
	cmpq	24(%rbx), %rax
	cmovlq	%rcx, %rdx
	addq	$4, %rdi
	addq	$96, %rbx
	cmpq	%rdi, %r8
	jne	LBB0_5
LBB0_6:
	testq	%r9, %r9
	je	LBB0_9
## %bb.7:
	leaq	(%rdi,%rdi,2), %rcx
	leaq	(%r15,%rcx,8), %rsi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	(%rsi), %rax
	cmovgeq	%rsi, %rdx
	addq	$24, %rsi
	decq	%r9
	jne	LBB0_8
LBB0_9:
	testq	%r14, %r14
	je	LBB0_12
## %bb.10:
	movq	(%r14), %rcx
	cmpq	%rcx, %rax
	jg	LBB0_12
## %bb.11:
	subq	8(%r14), %rcx
	cmpq	%rcx, %rax
	jg	LBB0_14
LBB0_12:
	movq	%rdx, %r14
	testq	%rdx, %rdx
	je	LBB0_13
LBB0_14:
	movl	16(%r14), %eax
	jmp	LBB0_15
LBB0_13:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
LBB0_15:
	movq	%r14, (%r12)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_nvkm_therm_update_trip
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvkm_therm_update_trip
_nvkm_therm_update_trip:                ; @nvkm_therm_update_trip
	.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
	ldp	x20, x8, [x0]
	ldr	x21, [x8, #8]
	ldr	x8, [x0, #16]
	ldr	x8, [x8]
	blr	x8
	ldr	x8, [x19, #8]
	ldr	x9, [x8]
	cbz	x9, LBB0_4
; %bb.1:
	mov	x8, #0
	mov	x10, x21
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10], #24
	cmp	x0, x11
	csel	x8, x8, x21, lt
	mov	x21, x10
	subs	x9, x9, #1
	b.ne	LBB0_2
; %bb.3:
	cbnz	x20, LBB0_5
	b	LBB0_7
LBB0_4:
	mov	x8, #0
	cbz	x20, LBB0_7
LBB0_5:
	ldr	x9, [x20]
	cmp	x0, x9
	b.gt	LBB0_7
; %bb.6:
	ldr	x10, [x20, #8]
	sub	x9, x9, x10
	cmp	x0, x9
	b.gt	LBB0_8
LBB0_7:
	mov	x20, x8
	cbz	x8, LBB0_9
LBB0_8:
	ldr	w0, [x20, #16]
	b	LBB0_10
LBB0_9:
	mov	w0, #0
LBB0_10:
	str	x20, [x19]
	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	_nvkm_therm_update_trip
.subsections_via_symbols
