	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_temp_err
_handle_temp_err:                       ## @handle_temp_err
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	leaq	L_.str(%rip), %rsi
	callq	_dd_dev_emerg
	movq	_HFI1_FORCED_FREEZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
	movq	_FREEZE_SELF@GOTPCREL(%rip), %rax
	movq	_FREEZE_ABORT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r14, %rdi
	callq	_start_freeze_handling
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r14)
	movq	_OPA_LINKDOWN_REASON_SMA_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shll	$8, %esi
	movq	_PLS_OFFLINE@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_set_physical_link_state
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_dc_shutdown                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Critical temperature reached! Forcing device into freeze mode!\n"

	.comm	_HFI1_FORCED_FREEZE,4,2         ## @HFI1_FORCED_FREEZE
	.comm	_FREEZE_SELF,4,2                ## @FREEZE_SELF
	.comm	_FREEZE_ABORT,4,2               ## @FREEZE_ABORT
	.comm	_OPA_LINKDOWN_REASON_SMA_DISABLED,4,2 ## @OPA_LINKDOWN_REASON_SMA_DISABLED
	.comm	_PLS_OFFLINE,4,2                ## @PLS_OFFLINE
	.no_dead_strip	_handle_temp_err
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_temp_err
_handle_temp_err:                       ; @handle_temp_err
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x20, [x0, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dd_dev_emerg
Lloh2:
	adrp	x8, _HFI1_FORCED_FREEZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HFI1_FORCED_FREEZE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
Lloh5:
	adrp	x9, _FREEZE_SELF@GOTPAGE
Lloh6:
	ldr	x9, [x9, _FREEZE_SELF@GOTPAGEOFF]
	str	w8, [x19]
Lloh7:
	ldr	w8, [x9]
Lloh8:
	adrp	x9, _FREEZE_ABORT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _FREEZE_ABORT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x20
	bl	_start_freeze_handling
Lloh11:
	adrp	x8, _OPA_LINKDOWN_REASON_SMA_DISABLED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _OPA_LINKDOWN_REASON_SMA_DISABLED@GOTPAGEOFF]
	stp	xzr, xzr, [x20]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _PLS_OFFLINE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _PLS_OFFLINE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w1, w9, w8, lsl #8
	mov	x0, x19
	bl	_set_physical_link_state
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dc_shutdown
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Critical temperature reached! Forcing device into freeze mode!\n"

	.comm	_HFI1_FORCED_FREEZE,4,2         ; @HFI1_FORCED_FREEZE
	.comm	_FREEZE_SELF,4,2                ; @FREEZE_SELF
	.comm	_FREEZE_ABORT,4,2               ; @FREEZE_ABORT
	.comm	_OPA_LINKDOWN_REASON_SMA_DISABLED,4,2 ; @OPA_LINKDOWN_REASON_SMA_DISABLED
	.comm	_PLS_OFFLINE,4,2                ; @PLS_OFFLINE
	.no_dead_strip	_handle_temp_err
.subsections_via_symbols
