	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_irq_add_domain          ## -- Begin function amdgpu_irq_add_domain
	.p2align	4, 0x90
_amdgpu_irq_add_domain:                 ## @amdgpu_irq_add_domain
	.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	_AMDGPU_MAX_IRQ_SRC_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_amdgpu_hw_irqdomain_ops@GOTPCREL(%rip), %rdx
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	movq	%rbx, %rcx
	callq	_irq_domain_add_linear
	movl	%eax, (%rbx)
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_2:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AMDGPU_MAX_IRQ_SRC_ID,4,2      ## @AMDGPU_MAX_IRQ_SRC_ID
	.comm	_amdgpu_hw_irqdomain_ops,4,2    ## @amdgpu_hw_irqdomain_ops
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GPU irq add domain failed\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_irq_add_domain          ; -- Begin function amdgpu_irq_add_domain
	.p2align	2
_amdgpu_irq_add_domain:                 ; @amdgpu_irq_add_domain
	.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
Lloh0:
	adrp	x8, _AMDGPU_MAX_IRQ_SRC_ID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AMDGPU_MAX_IRQ_SRC_ID@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, _amdgpu_hw_irqdomain_ops@GOTPAGE
Lloh4:
	ldr	x2, [x2, _amdgpu_hw_irqdomain_ops@GOTPAGEOFF]
	mov	x0, #0
	mov	x3, x19
	bl	_irq_domain_add_linear
	str	w0, [x19]
	cbz	w0, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
Lloh7:
	adrp	x8, _ENODEV@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_AMDGPU_MAX_IRQ_SRC_ID,4,2      ; @AMDGPU_MAX_IRQ_SRC_ID
	.comm	_amdgpu_hw_irqdomain_ops,4,2    ; @amdgpu_hw_irqdomain_ops
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GPU irq add domain failed\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
.subsections_via_symbols
