	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dpu_core_irq_enable            ## -- Begin function dpu_core_irq_enable
	.p2align	4, 0x90
_dpu_core_irq_enable:                   ## @dpu_core_irq_enable
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	%rsi, %r12
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.2:
	movl	%edx, %r15d
	testl	%edx, %edx
	je	LBB0_3
## %bb.4:
	movq	%rdi, %r14
	movslq	(%r12), %rdi
	shlq	$2, %rdi
	addq	(%r14), %rdi
	callq	_atomic_read
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	(%r12), %esi
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %edx
	callq	_DRM_ERROR
LBB0_6:
	testl	%r15d, %r15d
	jle	LBB0_7
## %bb.8:
	movl	%r15d, %r15d
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	-4(%r12,%rbx,4), %esi
	movq	%r14, %rdi
	callq	__dpu_core_irq_enable
	cmpq	%r15, %rbx
	jae	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	incq	%rbx
	testl	%eax, %eax
	je	LBB0_9
	jmp	LBB0_11
LBB0_3:
	leaq	L_.str(%rip), %rdi
	callq	_DPU_ERROR
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_11
LBB0_7:
	xorl	%eax, %eax
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid params\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"irq_idx=%d enable_count=%d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dpu_core_irq_enable            ; -- Begin function dpu_core_irq_enable
	.p2align	2
_dpu_core_irq_enable:                   ; @dpu_core_irq_enable
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cbz	x0, LBB0_9
; %bb.1:
	mov	x19, x1
	cbz	x1, LBB0_9
; %bb.2:
	mov	x21, x2
	cbz	w2, LBB0_9
; %bb.3:
	mov	x20, x0
	ldr	x8, [x0]
	ldrsw	x9, [x19]
	add	x0, x8, x9, lsl #2
	bl	_atomic_read
	cbz	w0, LBB0_5
; %bb.4:
	mov	x2, x0
	ldr	w1, [x19]
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_ERROR
LBB0_5:
	cmp	w21, #1
	b.lt	LBB0_10
; %bb.6:
	mov	x22, #0
	mov	w21, w21
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x19, x22, lsl #2]
	mov	x0, x20
	bl	__dpu_core_irq_enable
	add	x22, x22, #1
	cmp	x22, x21
	b.hs	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	cbz	w0, LBB0_7
	b	LBB0_11
LBB0_9:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DPU_ERROR
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_10:
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid params\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"irq_idx=%d enable_count=%d\n"

.subsections_via_symbols
