	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smu_v11_0_register_irq_handler
_smu_v11_0_register_irq_handler:        ## @smu_v11_0_register_irq_handler
	.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
	xorl	%eax, %eax
	cmpq	$0, (%rdi)
	je	LBB0_1
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r15
	movq	%rax, (%rbx)
	movq	_smu_v11_0_irq_funcs@GOTPCREL(%rip), %rax
	movq	%rax, (%r15)
	movq	_SOC15_IH_CLIENTID_THM@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_THM_11_0__SRCID__THM_DIG_THERM_L2H@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r15, %rcx
	callq	_amdgpu_irq_add_id
	testl	%eax, %eax
	jne	LBB0_4
## %bb.5:
	movl	(%rbx), %esi
	movq	_THM_11_0__SRCID__THM_DIG_THERM_H2L@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r15, %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_amdgpu_irq_add_id              ## TAILCALL
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_smu_v11_0_irq_funcs,4,2        ## @smu_v11_0_irq_funcs
	.comm	_SOC15_IH_CLIENTID_THM,4,2      ## @SOC15_IH_CLIENTID_THM
	.comm	_THM_11_0__SRCID__THM_DIG_THERM_L2H,4,2 ## @THM_11_0__SRCID__THM_DIG_THERM_L2H
	.comm	_THM_11_0__SRCID__THM_DIG_THERM_H2L,4,2 ## @THM_11_0__SRCID__THM_DIG_THERM_H2L
	.no_dead_strip	_smu_v11_0_register_irq_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smu_v11_0_register_irq_handler
_smu_v11_0_register_irq_handler:        ; @smu_v11_0_register_irq_handler
	.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
	ldr	x8, [x0]
	cbz	x8, LBB0_3
; %bb.1:
	mov	w0, #0
LBB0_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:
	mov	x21, x0
	ldr	x19, [x0, #8]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #8
	bl	_kzalloc
	cbz	x0, LBB0_6
; %bb.4:
	mov	x20, x0
	str	x0, [x21]
Lloh3:
	adrp	x8, _smu_v11_0_irq_funcs@GOTPAGE
Lloh4:
	ldr	x8, [x8, _smu_v11_0_irq_funcs@GOTPAGEOFF]
	str	x8, [x0]
Lloh5:
	adrp	x21, _SOC15_IH_CLIENTID_THM@GOTPAGE
Lloh6:
	ldr	x21, [x21, _SOC15_IH_CLIENTID_THM@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh7:
	adrp	x8, _THM_11_0__SRCID__THM_DIG_THERM_L2H@GOTPAGE
Lloh8:
	ldr	x8, [x8, _THM_11_0__SRCID__THM_DIG_THERM_L2H@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x20
	bl	_amdgpu_irq_add_id
	cbnz	w0, LBB0_2
; %bb.5:
Lloh10:
	adrp	x8, _THM_11_0__SRCID__THM_DIG_THERM_H2L@GOTPAGE
Lloh11:
	ldr	x8, [x8, _THM_11_0__SRCID__THM_DIG_THERM_H2L@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh12:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x20
	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	_amdgpu_irq_add_id
LBB0_6:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_smu_v11_0_irq_funcs,4,2        ; @smu_v11_0_irq_funcs
	.comm	_SOC15_IH_CLIENTID_THM,4,2      ; @SOC15_IH_CLIENTID_THM
	.comm	_THM_11_0__SRCID__THM_DIG_THERM_L2H,4,2 ; @THM_11_0__SRCID__THM_DIG_THERM_L2H
	.comm	_THM_11_0__SRCID__THM_DIG_THERM_H2L,4,2 ; @THM_11_0__SRCID__THM_DIG_THERM_H2L
	.no_dead_strip	_smu_v11_0_register_irq_handler
.subsections_via_symbols
