	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nouveau_therm_threshold_hyst_polling
_nouveau_therm_threshold_hyst_polling:  ## @nouveau_therm_threshold_hyst_polling
	.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
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	*(%rdi)
	movl	%eax, %r12d
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_nouveau_therm_sensor_get_threshold_state
	movl	(%r15), %edx
	movq	_NOUVEAU_THERM_THRS_LOWER@GOTPCREL(%rip), %rcx
	cmpl	%edx, %r12d
	jl	LBB0_3
## %bb.1:
	cmpl	(%rcx), %eax
	jne	LBB0_3
## %bb.2:
	movq	_NOUVEAU_THERM_THRS_RISING@GOTPCREL(%rip), %rax
	movq	_NOUVEAU_THERM_THRS_HIGHER@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_3:
	subl	4(%r15), %edx
	cmpl	%edx, %r12d
	jg	LBB0_7
## %bb.4:
	movq	_NOUVEAU_THERM_THRS_HIGHER@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jne	LBB0_7
## %bb.5:
	movq	_NOUVEAU_THERM_THRS_FALLING@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %r15d
	movl	(%rcx), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_nouveau_therm_sensor_set_threshold_state
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nouveau_therm_sensor_event     ## TAILCALL
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NOUVEAU_THERM_THRS_LOWER,4,2   ## @NOUVEAU_THERM_THRS_LOWER
	.comm	_NOUVEAU_THERM_THRS_RISING,4,2  ## @NOUVEAU_THERM_THRS_RISING
	.comm	_NOUVEAU_THERM_THRS_HIGHER,4,2  ## @NOUVEAU_THERM_THRS_HIGHER
	.comm	_NOUVEAU_THERM_THRS_FALLING,4,2 ## @NOUVEAU_THERM_THRS_FALLING
	.no_dead_strip	_nouveau_therm_threshold_hyst_polling
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nouveau_therm_threshold_hyst_polling
_nouveau_therm_threshold_hyst_polling:  ; @nouveau_therm_threshold_hyst_polling
	.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, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x8, [x0]
	blr	x8
	mov	x22, x0
	mov	x0, x20
	mov	x1, x19
	bl	_nouveau_therm_sensor_get_threshold_state
Lloh0:
	adrp	x8, _NOUVEAU_THERM_THRS_LOWER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NOUVEAU_THERM_THRS_LOWER@GOTPAGEOFF]
	ldr	w9, [x21]
Lloh2:
	ldr	w10, [x8]
Lloh3:
	adrp	x8, _NOUVEAU_THERM_THRS_HIGHER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NOUVEAU_THERM_THRS_HIGHER@GOTPAGEOFF]
	cmp	w22, w9
	ccmp	w0, w10, #0, ge
	b.eq	LBB0_3
; %bb.1:
	ldr	w10, [x21, #4]
	ldr	w8, [x8]
	sub	w9, w9, w10
	cmp	w22, w9
	ccmp	w0, w8, #0, le
	b.eq	LBB0_4
; %bb.2:
	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
LBB0_3:
Lloh5:
	adrp	x9, _NOUVEAU_THERM_THRS_RISING@GOTPAGE
Lloh6:
	ldr	x9, [x9, _NOUVEAU_THERM_THRS_RISING@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh7:
	adrp	x9, _NOUVEAU_THERM_THRS_FALLING@GOTPAGE
Lloh8:
	ldr	x9, [x9, _NOUVEAU_THERM_THRS_FALLING@GOTPAGEOFF]
Lloh9:
	adrp	x8, _NOUVEAU_THERM_THRS_LOWER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NOUVEAU_THERM_THRS_LOWER@GOTPAGEOFF]
LBB0_5:
	ldr	w21, [x9]
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_nouveau_therm_sensor_set_threshold_state
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	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
	b	_nouveau_therm_sensor_event
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_NOUVEAU_THERM_THRS_LOWER,4,2   ; @NOUVEAU_THERM_THRS_LOWER
	.comm	_NOUVEAU_THERM_THRS_RISING,4,2  ; @NOUVEAU_THERM_THRS_RISING
	.comm	_NOUVEAU_THERM_THRS_HIGHER,4,2  ; @NOUVEAU_THERM_THRS_HIGHER
	.comm	_NOUVEAU_THERM_THRS_FALLING,4,2 ; @NOUVEAU_THERM_THRS_FALLING
	.no_dead_strip	_nouveau_therm_threshold_hyst_polling
.subsections_via_symbols
