	.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_status
_dpu_hw_intr_get_interrupt_status:      ## @dpu_hw_intr_get_interrupt_status
	.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
	xorl	%r12d, %r12d
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.1:
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_dpu_irq_map@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	testl	%ebx, %ebx
	js	LBB0_3
## %bb.2:
	cmpl	%ebx, %eax
	jle	LBB0_3
## %bb.4:
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	(%r13), %rax
	movl	%ebx, %r13d
	movslq	(%rax,%r13,8), %rbx
	leaq	4(%r14), %rdi
	movq	_dpu_intr_set@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	4(%rax,%rbx,8), %esi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_DPU_REG_READ
	movl	%eax, %r12d
	movq	_dpu_irq_map@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	andl	4(%rax,%r13,8), %r12d
	testl	%r15d, %r15d
	je	LBB0_7
## %bb.5:
	testl	%r12d, %r12d
	je	LBB0_7
## %bb.6:
	movq	_dpu_intr_set@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,8), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %edx
	callq	_DPU_REG_WRITE
LBB0_7:
	xorl	%eax, %eax
	callq	_wmb
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	jmp	LBB0_8
LBB0_3:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_pr_err
LBB0_8:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dpu_irq_map,8,3                ## @dpu_irq_map
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid IRQ index: [%d]\n"

	.comm	_dpu_intr_set,8,3               ## @dpu_intr_set
	.no_dead_strip	_dpu_hw_intr_get_interrupt_status
.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_status
_dpu_hw_intr_get_interrupt_status:      ; @dpu_hw_intr_get_interrupt_status
	.cfi_startproc
; %bb.0:
	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
	cbz	x0, LBB0_8
; %bb.1:
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x23, _dpu_irq_map@GOTPAGE
Lloh1:
	ldr	x23, [x23, _dpu_irq_map@GOTPAGEOFF]
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	tbnz	w21, #31, LBB0_7
; %bb.2:
	cmp	w0, w21
	b.le	LBB0_7
; %bb.3:
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x23]
	mov	w9, w21
	lsl	x21, x9, #3
	ldrsw	x24, [x8, x21]
	add	x22, x19, #4
Lloh2:
	adrp	x25, _dpu_intr_set@GOTPAGE
Lloh3:
	ldr	x25, [x25, _dpu_intr_set@GOTPAGEOFF]
	ldr	x8, [x25]
	add	x8, x8, x24, lsl #3
	ldr	w1, [x8, #4]
	mov	x0, x22
	bl	_DPU_REG_READ
	ldr	x8, [x23]
	add	x8, x8, x21
	ldr	w8, [x8, #4]
	and	w21, w8, w0
	cbz	w20, LBB0_6
; %bb.4:
	cbz	w21, LBB0_6
; %bb.5:
	ldr	x8, [x25]
	lsl	x9, x24, #3
	ldr	w1, [x8, x9]
	mov	x0, x22
	mov	x2, x21
	bl	_DPU_REG_WRITE
LBB0_6:
	bl	_wmb
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	b	LBB0_9
LBB0_7:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_pr_err
LBB0_8:
	mov	w21, #0
LBB0_9:
	mov	x0, x21
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_dpu_irq_map,8,3                ; @dpu_irq_map
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid IRQ index: [%d]\n"

	.comm	_dpu_intr_set,8,3               ; @dpu_intr_set
	.no_dead_strip	_dpu_hw_intr_get_interrupt_status
.subsections_via_symbols
