	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_phm_irq_process                ## -- Begin function phm_irq_process
	.p2align	4, 0x90
_phm_irq_process:                       ## @phm_irq_process
	.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	(%rdx), %rax
	movq	8(%rdx), %rbx
	movq	_AMDGPU_IRQ_CLIENTID_LEGACY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.1:
	movq	_VISLANDS30_IV_SRCID_CG_TSS_THERMAL_LOW_TO_HIGH@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_3
## %bb.2:
	movq	(%r12), %rax
	movl	(%rax), %edi
	callq	_PCI_BUS_NUM
	movl	%eax, %r14d
	movq	(%r12), %rax
	movl	(%rax), %edi
	callq	_PCI_SLOT
	movl	%eax, %r15d
	movq	(%r12), %rax
	movl	(%rax), %edi
	callq	_PCI_FUNC
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_12
LBB0_7:
	movq	_SOC15_IH_CLIENTID_THM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.8:
	movq	(%r12), %rax
	movl	(%rax), %edi
	callq	_PCI_BUS_NUM
	movl	%eax, %r14d
	movq	(%r12), %rax
	movl	(%rax), %edi
	callq	_PCI_SLOT
	movl	%eax, %r15d
	movq	(%r12), %rax
	movl	(%rax), %edi
	callq	_PCI_FUNC
	testq	%rbx, %rbx
	jne	LBB0_5
## %bb.9:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_12
LBB0_3:
	movq	_VISLANDS30_IV_SRCID_CG_TSS_THERMAL_HIGH_TO_LOW@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_6
## %bb.4:
	movq	(%r12), %rax
	movl	(%rax), %edi
	callq	_PCI_BUS_NUM
	movl	%eax, %r14d
	movq	(%r12), %rax
	movl	(%rax), %edi
	callq	_PCI_SLOT
	movl	%eax, %r15d
	movq	(%r12), %rax
	movl	(%rax), %edi
	callq	_PCI_FUNC
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_12
LBB0_10:
	movq	_SOC15_IH_CLIENTID_ROM_SMUIO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_11
	jmp	LBB0_13
LBB0_6:
	movq	_VISLANDS30_IV_SRCID_GPIO_19@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_13
LBB0_11:
	movq	(%r12), %rax
	movl	(%rax), %edi
	callq	_PCI_BUS_NUM
	movl	%eax, %r14d
	movq	(%r12), %rax
	movl	(%rax), %edi
	callq	_PCI_SLOT
	movl	%eax, %r15d
	movq	(%r12), %rax
	movl	(%rax), %edi
	callq	_PCI_FUNC
	leaq	L_.str.2(%rip), %rdi
LBB0_12:
	movl	%r14d, %esi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_pr_warn
LBB0_13:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AMDGPU_IRQ_CLIENTID_LEGACY,8,3 ## @AMDGPU_IRQ_CLIENTID_LEGACY
	.comm	_VISLANDS30_IV_SRCID_CG_TSS_THERMAL_LOW_TO_HIGH,8,3 ## @VISLANDS30_IV_SRCID_CG_TSS_THERMAL_LOW_TO_HIGH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GPU over temperature range detected on PCIe %d:%d.%d!\n"

	.comm	_VISLANDS30_IV_SRCID_CG_TSS_THERMAL_HIGH_TO_LOW,8,3 ## @VISLANDS30_IV_SRCID_CG_TSS_THERMAL_HIGH_TO_LOW
L_.str.1:                               ## @.str.1
	.asciz	"GPU under temperature range detected on PCIe %d:%d.%d!\n"

	.comm	_VISLANDS30_IV_SRCID_GPIO_19,8,3 ## @VISLANDS30_IV_SRCID_GPIO_19
L_.str.2:                               ## @.str.2
	.asciz	"GPU Critical Temperature Fault detected on PCIe %d:%d.%d!\n"

	.comm	_SOC15_IH_CLIENTID_THM,8,3      ## @SOC15_IH_CLIENTID_THM
	.comm	_SOC15_IH_CLIENTID_ROM_SMUIO,8,3 ## @SOC15_IH_CLIENTID_ROM_SMUIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_phm_irq_process                ; -- Begin function phm_irq_process
	.p2align	2
_phm_irq_process:                       ; @phm_irq_process
	.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	x8, x22, [x2]
Lloh0:
	adrp	x9, _AMDGPU_IRQ_CLIENTID_LEGACY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AMDGPU_IRQ_CLIENTID_LEGACY@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _VISLANDS30_IV_SRCID_CG_TSS_THERMAL_LOW_TO_HIGH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VISLANDS30_IV_SRCID_CG_TSS_THERMAL_LOW_TO_HIGH@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x22, x8
	b.ne	LBB0_6
; %bb.2:
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_PCI_BUS_NUM
	mov	x20, x0
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_PCI_SLOT
	mov	x21, x0
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_PCI_FUNC
	mov	x3, x0
	b	LBB0_5
LBB0_3:
Lloh6:
	adrp	x9, _SOC15_IH_CLIENTID_THM@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SOC15_IH_CLIENTID_THM@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.4:
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_PCI_BUS_NUM
	mov	x20, x0
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_PCI_SLOT
	mov	x21, x0
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_PCI_FUNC
	mov	x3, x0
	cbnz	x22, LBB0_8
LBB0_5:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_12
LBB0_6:
Lloh11:
	adrp	x8, _VISLANDS30_IV_SRCID_CG_TSS_THERMAL_HIGH_TO_LOW@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VISLANDS30_IV_SRCID_CG_TSS_THERMAL_HIGH_TO_LOW@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x22, x8
	b.ne	LBB0_10
; %bb.7:
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_PCI_BUS_NUM
	mov	x20, x0
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_PCI_SLOT
	mov	x21, x0
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_PCI_FUNC
	mov	x3, x0
LBB0_8:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_9:
Lloh16:
	adrp	x9, _SOC15_IH_CLIENTID_ROM_SMUIO@GOTPAGE
Lloh17:
	ldr	x9, [x9, _SOC15_IH_CLIENTID_ROM_SMUIO@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_11
	b	LBB0_13
LBB0_10:
Lloh19:
	adrp	x8, _VISLANDS30_IV_SRCID_GPIO_19@GOTPAGE
Lloh20:
	ldr	x8, [x8, _VISLANDS30_IV_SRCID_GPIO_19@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	cmp	x22, x8
	b.ne	LBB0_13
LBB0_11:
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_PCI_BUS_NUM
	mov	x20, x0
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_PCI_SLOT
	mov	x21, x0
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_PCI_FUNC
	mov	x3, x0
Lloh22:
	adrp	x0, l_.str.2@PAGE
Lloh23:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_12:
	mov	x1, x20
	mov	x2, x21
	bl	_pr_warn
LBB0_13:
	mov	w0, #0
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_AMDGPU_IRQ_CLIENTID_LEGACY,8,3 ; @AMDGPU_IRQ_CLIENTID_LEGACY
	.comm	_VISLANDS30_IV_SRCID_CG_TSS_THERMAL_LOW_TO_HIGH,8,3 ; @VISLANDS30_IV_SRCID_CG_TSS_THERMAL_LOW_TO_HIGH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GPU over temperature range detected on PCIe %d:%d.%d!\n"

	.comm	_VISLANDS30_IV_SRCID_CG_TSS_THERMAL_HIGH_TO_LOW,8,3 ; @VISLANDS30_IV_SRCID_CG_TSS_THERMAL_HIGH_TO_LOW
l_.str.1:                               ; @.str.1
	.asciz	"GPU under temperature range detected on PCIe %d:%d.%d!\n"

	.comm	_VISLANDS30_IV_SRCID_GPIO_19,8,3 ; @VISLANDS30_IV_SRCID_GPIO_19
l_.str.2:                               ; @.str.2
	.asciz	"GPU Critical Temperature Fault detected on PCIe %d:%d.%d!\n"

	.comm	_SOC15_IH_CLIENTID_THM,8,3      ; @SOC15_IH_CLIENTID_THM
	.comm	_SOC15_IH_CLIENTID_ROM_SMUIO,8,3 ; @SOC15_IH_CLIENTID_ROM_SMUIO
.subsections_via_symbols
