	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfx_v8_0_late_init
_gfx_v8_0_late_init:                    ## @gfx_v8_0_late_init
	.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
	movq	%rdi, %r14
	leaq	12(%rdi), %rsi
	xorl	%edx, %edx
	callq	_amdgpu_irq_get
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	leaq	8(%r14), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_amdgpu_irq_get
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.2:
	movq	%r14, %rdi
	callq	_gfx_v8_0_do_edc_gpr_workarounds
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	leaq	4(%r14), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_amdgpu_irq_get
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_DRM_ERROR
	movl	%r15d, %ebx
	jmp	LBB0_7
LBB0_5:
	movq	%r14, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_amdgpu_irq_get
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r14d
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_DRM_ERROR
	movl	%r14d, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"amdgpu_irq_get() failed to get IRQ for EDC, r: %d.\n"

L_.str.1:                               ## @.str.1
	.asciz	"amdgpu_irq_get() failed to get IRQ for SQ, r: %d.\n"

	.no_dead_strip	_gfx_v8_0_late_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gfx_v8_0_late_init
_gfx_v8_0_late_init:                    ; @gfx_v8_0_late_init
	.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
	add	x1, x0, #12
	mov	w2, #0
	bl	_amdgpu_irq_get
	mov	x20, x0
	cbnz	w0, LBB0_8
; %bb.1:
	add	x1, x19, #8
	mov	x0, x19
	mov	w2, #0
	bl	_amdgpu_irq_get
	mov	x20, x0
	cbnz	w0, LBB0_8
; %bb.2:
	mov	x0, x19
	bl	_gfx_v8_0_do_edc_gpr_workarounds
	mov	x20, x0
	cbnz	w0, LBB0_8
; %bb.3:
	add	x1, x19, #4
	mov	x0, x19
	mov	w2, #0
	bl	_amdgpu_irq_get
	cbz	w0, LBB0_5
; %bb.4:
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_7
LBB0_5:
	mov	x0, x19
	mov	x1, x19
	mov	w2, #0
	bl	_amdgpu_irq_get
	mov	x20, x0
	cbz	w0, LBB0_8
; %bb.6:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_7:
	mov	x1, x20
	bl	_DRM_ERROR
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"amdgpu_irq_get() failed to get IRQ for EDC, r: %d.\n"

l_.str.1:                               ; @.str.1
	.asciz	"amdgpu_irq_get() failed to get IRQ for SQ, r: %d.\n"

	.no_dead_strip	_gfx_v8_0_late_init
.subsections_via_symbols
