	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpu_hw_intr_get_interrupt_statuses
_dpu_hw_intr_get_interrupt_statuses:    ## @dpu_hw_intr_get_interrupt_statuses
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.1:
	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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	addq	$8, %rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	movq	_dpu_intr_set@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_6
## %bb.2:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	12(%rax), %rbx
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	andl	%ecx, %ebx
	movl	%ebx, (%rax,%r13,4)
	incq	%r13
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$12, %r14
	cmpq	%rax, %r13
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jge	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movl	8(%rax,%r14), %esi
	movq	%rbx, %rdi
	callq	_DPU_REG_READ
	movq	(%r12), %rcx
	movl	%eax, (%rcx,%r13,4)
	movq	(%r15), %rax
	movl	4(%rax,%r14), %esi
	movq	%rbx, %rdi
	callq	_DPU_REG_READ
	movq	%rax, %rbx
	movq	(%r12), %rax
	movl	(%rax,%r13,4), %edx
	movl	$0, %ecx
	testl	%edx, %edx
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r15), %rax
	movl	(%rax,%r14), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_DPU_REG_WRITE
	movq	(%r12), %rax
	movl	(%rax,%r13,4), %ecx
	jmp	LBB0_5
LBB0_6:
	xorl	%eax, %eax
	callq	_wmb
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
LBB0_7:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dpu_intr_set,8,3               ## @dpu_intr_set
	.no_dead_strip	_dpu_hw_intr_get_interrupt_statuses
.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_get_interrupt_statuses
_dpu_hw_intr_get_interrupt_statuses:    ; @dpu_hw_intr_get_interrupt_statuses
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_8
; %bb.1:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x0
	add	x19, x0, #8
	mov	x0, x19
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x23, _dpu_intr_set@GOTPAGE
Lloh1:
	ldr	x23, [x23, _dpu_intr_set@GOTPAGEOFF]
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.2:
	mov	x24, #0
	mov	x25, #0
	add	x21, x20, #12
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x23]
	ldr	w1, [x8, x24]
	mov	x0, x21
	bl	_DPU_REG_WRITE
	ldr	x8, [x20]
	ldr	w9, [x8, x25, lsl #2]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	and	w9, w9, w22
	str	w9, [x8, x25, lsl #2]
	add	x25, x25, #1
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	add	x24, x24, #12
	cmp	x25, w0, sxtw
	b.ge	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	add	x8, x8, x24
	ldr	w1, [x8, #8]
	mov	x0, x21
	bl	_DPU_REG_READ
	ldr	x8, [x20]
	lsl	x26, x25, #2
	str	w0, [x8, x26]
	ldr	x8, [x23]
	add	x8, x8, x24
	ldr	w1, [x8, #4]
	mov	x0, x21
	bl	_DPU_REG_READ
	mov	x22, x0
	ldr	x8, [x20]
	ldr	w2, [x8, x26]
	cbnz	w2, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w9, #0
	b	LBB0_4
LBB0_7:
	bl	_wmb
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
LBB0_8:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	.cfi_same_value w23
	.cfi_same_value w24
	.cfi_same_value w25
	.cfi_same_value w26
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_dpu_intr_set,8,3               ; @dpu_intr_set
	.no_dead_strip	_dpu_hw_intr_get_interrupt_statuses
.subsections_via_symbols
