	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpu_hw_intr_dispatch_irq
_dpu_hw_intr_dispatch_irq:              ## @dpu_hw_intr_dispatch_irq
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.1:
	movq	%rdi, %rbx
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	addq	$8, %rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	movq	_dpu_intr_set@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_16
## %bb.2:
	xorl	%r12d, %r12d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r12
	movq	_dpu_intr_set@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_ARRAY_SIZE
	cltq
	addl	$32, -44(%rbp)                  ## 4-byte Folded Spill
	cmpq	%rax, %r12
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jge	LBB0_16
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movq	(%rbx), %rax
	movl	(%rax,%r12,4), %r15d
	movl	%r12d, %ebx
	shll	$5, %ebx
	movq	_dpu_irq_map@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %ebx
	jge	LBB0_15
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	addl	$32, %ebx
	movq	_dpu_irq_map@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %ebx
	jg	LBB0_15
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%r15d, %r15d
	je	LBB0_15
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, %r13d
	incq	%r13
	movl	%ebx, %r14d
	movq	_dpu_irq_map@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ecx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testl	%r15d, -8(%rax,%r13,8)
	je	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movl	-4(%rax,%r13,8), %ecx
	cmpq	%rcx, %r12
	jne	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=2
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=2
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	callq	*%rax
	jmp	LBB0_12
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=2
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	callq	*16(%rdi)
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=2
	movq	_dpu_irq_map@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	-8(%rax,%r13,8), %ecx
	notl	%ecx
	andl	%ecx, %r15d
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=2
	cmpq	%r14, %r13
	jae	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_7 Depth=2
	incl	%ebx
	incq	%r13
	testl	%r15d, %r15d
	jne	LBB0_7
	jmp	LBB0_15
LBB0_16:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
LBB0_17:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dpu_intr_set,8,3               ## @dpu_intr_set
	.comm	_dpu_irq_map,8,3                ## @dpu_irq_map
	.no_dead_strip	_dpu_hw_intr_dispatch_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dpu_hw_intr_dispatch_irq
_dpu_hw_intr_dispatch_irq:              ; @dpu_hw_intr_dispatch_irq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	str	x2, [sp, #8]                    ; 8-byte Folded Spill
	cbz	x0, LBB0_16
; %bb.1:
	mov	x20, x1
	mov	x21, x0
	add	x0, x0, #8
	str	x0, [sp]                        ; 8-byte Folded Spill
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x8, _dpu_intr_set@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dpu_intr_set@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_15
; %bb.2:
	mov	x25, #0
	mov	w26, #0
Lloh3:
	adrp	x27, _dpu_irq_map@GOTPAGE
Lloh4:
	ldr	x27, [x27, _dpu_irq_map@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x25, #1
Lloh5:
	adrp	x8, _dpu_intr_set@GOTPAGE
Lloh6:
	ldr	x8, [x8, _dpu_intr_set@GOTPAGEOFF]
Lloh7:
	ldr	x0, [x8]
	bl	_ARRAY_SIZE
	add	w26, w26, #32
	cmp	x25, w0, sxtw
	b.ge	LBB0_15
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	x8, [x21]
	ldr	w28, [x8, x25, lsl #2]
	lsl	w19, w25, #5
	ldr	x0, [x27]
	bl	_ARRAY_SIZE
	cmp	w19, w0
	b.ge	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w22, w19, #32
	ldr	x0, [x27]
	bl	_ARRAY_SIZE
	cmp	w22, w0
	ccmp	w28, #0, #4, le
	b.eq	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, w26
	lsl	x24, x8, #3
	add	x19, x8, #1
	ldr	x8, [x27]
	mov	x23, x26
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w9, [x8, x24]
	tst	w9, w28
	b.eq	LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	add	x9, x8, x24
	ldr	w9, [x9, #4]
	cmp	x25, x9
	b.ne	LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	cbz	x20, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x1, x23
	blr	x20
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [x21, #16]
	mov	x0, x21
	mov	x1, x23
	blr	x8
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [x27]
	ldr	w9, [x8, x24]
	bic	w28, w28, w9
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=2
	cmp	x19, x22
	b.hs	LBB0_3
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=2
	add	w23, w23, #1
	add	x24, x24, #8
	add	x19, x19, #1
	cbnz	w28, LBB0_7
	b	LBB0_3
LBB0_15:
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_spin_unlock_irqrestore
LBB0_16:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_dpu_intr_set,8,3               ; @dpu_intr_set
	.comm	_dpu_irq_map,8,3                ; @dpu_irq_map
	.no_dead_strip	_dpu_hw_intr_dispatch_irq
.subsections_via_symbols
