	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_irq_disable_all         ## -- Begin function amdgpu_irq_disable_all
	.p2align	4, 0x90
_amdgpu_irq_disable_all:                ## @amdgpu_irq_disable_all
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_spin_lock_irqsave
	movq	_AMDGPU_IRQ_CLIENTID_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	je	LBB0_17
## %bb.1:
	movq	_AMDGPU_MAX_IRQ_SRC_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%esi, %esi
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_AMDGPU_IRQ_CLIENTID_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rsi
	movl	%ecx, %edx
	cmpq	%rdx, %rsi
	jae	LBB0_17
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
                                        ##       Child Loop BB0_9 Depth 3
	movq	8(%r15), %rdx
	movq	(%rdx,%rsi,8), %rdx
	testq	%rdx, %rdx
	je	LBB0_16
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%eax, %eax
	je	LBB0_16
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r14d, %r14d
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_9 Depth 3
	movq	(%rdx,%r14,8), %r12
	testq	%r12, %r12
	je	LBB0_13
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	8(%r12), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	cmpl	$0, (%r12)
	je	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=2
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=3
	incq	%rbx
	movl	(%r12), %eax
	addq	$4, %r13
	cmpq	%rax, %rbx
	jae	LBB0_12
LBB0_9:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_5 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	16(%r12), %rdi
	addq	%r13, %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movq	8(%r12), %rax
	movq	_AMDGPU_IRQ_STATE_DISABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=3
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_DRM_ERROR
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=2
	movq	_AMDGPU_MAX_IRQ_SRC_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=2
	incq	%r14
	movl	%eax, %ecx
	cmpq	%rcx, %r14
	jae	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=2
	movq	8(%r15), %rcx
	movq	(%rcx,%rsi,8), %rdx
	jmp	LBB0_5
LBB0_17:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AMDGPU_IRQ_CLIENTID_MAX,4,2    ## @AMDGPU_IRQ_CLIENTID_MAX
	.comm	_AMDGPU_MAX_IRQ_SRC_ID,4,2      ## @AMDGPU_MAX_IRQ_SRC_ID
	.comm	_AMDGPU_IRQ_STATE_DISABLE,4,2   ## @AMDGPU_IRQ_STATE_DISABLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error disabling interrupt (%d)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_irq_disable_all         ; -- Begin function amdgpu_irq_disable_all
	.p2align	2
_amdgpu_irq_disable_all:                ; @amdgpu_irq_disable_all
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x23, _AMDGPU_IRQ_CLIENTID_MAX@GOTPAGE
Lloh1:
	ldr	x23, [x23, _AMDGPU_IRQ_CLIENTID_MAX@GOTPAGEOFF]
	ldr	w9, [x23]
	cbz	w9, LBB0_15
; %bb.1:
	mov	x24, #0
Lloh2:
	adrp	x25, _AMDGPU_MAX_IRQ_SRC_ID@GOTPAGE
Lloh3:
	ldr	x25, [x25, _AMDGPU_MAX_IRQ_SRC_ID@GOTPAGEOFF]
	ldr	w8, [x25]
Lloh4:
	adrp	x26, _AMDGPU_IRQ_STATE_DISABLE@GOTPAGE
Lloh5:
	ldr	x26, [x26, _AMDGPU_IRQ_STATE_DISABLE@GOTPAGEOFF]
Lloh6:
	adrp	x20, l_.str@PAGE
Lloh7:
	add	x20, x20, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x23]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x24, x24, #1
	cmp	x24, w9, uxtw
	b.hs	LBB0_15
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
                                        ;     Child Loop BB0_10 Depth 2
	ldr	x10, [x19, #8]
	ldr	x10, [x10, x24, lsl #3]
	cmp	x10, #0
	ccmp	w8, #0, #4, ne
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x27, #0
	ldr	x21, [x10, x27, lsl #3]
	cbz	x21, LBB0_13
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x21, #8]
	ldr	x9, [x9]
	cbz	x9, LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x21]
	cbz	w9, LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x28, #0
	mov	x22, #0
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	add	x22, x22, #1
	ldr	w8, [x21]
	add	x28, x28, #4
	cmp	x22, x8
	b.hs	LBB0_12
LBB0_10:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x21, #16]
	add	x0, x8, x28
	mov	w1, #0
	bl	_atomic_set
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	ldr	w3, [x26]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	blr	x8
	cbz	w0, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	mov	x1, x0
	mov	x0, x20
	bl	_DRM_ERROR
	b	LBB0_9
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x25]
LBB0_13:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x27, x27, #1
	cmp	x27, w8, uxtw
	b.hs	LBB0_2
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=2
	ldr	x9, [x19, #8]
	ldr	x10, [x9, x24, lsl #3]
	ldr	x21, [x10, x27, lsl #3]
	cbnz	x21, LBB0_6
	b	LBB0_13
LBB0_15:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_AMDGPU_IRQ_CLIENTID_MAX,4,2    ; @AMDGPU_IRQ_CLIENTID_MAX
	.comm	_AMDGPU_MAX_IRQ_SRC_ID,4,2      ; @AMDGPU_MAX_IRQ_SRC_ID
	.comm	_AMDGPU_IRQ_STATE_DISABLE,4,2   ; @AMDGPU_IRQ_STATE_DISABLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error disabling interrupt (%d)\n"

.subsections_via_symbols
