	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpu_hw_intr_disable_irq_nolock
_dpu_hw_intr_disable_irq_nolock:        ## @dpu_hw_intr_disable_irq_nolock
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movl	%esi, %ebx
	testl	%esi, %esi
	js	LBB0_4
## %bb.3:
	movq	%rdi, %r15
	movq	_dpu_irq_map@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	cmpl	%ebx, %eax
	jle	LBB0_4
## %bb.5:
	movq	(%r14), %r12
	movl	%ebx, %ebx
	movslq	(%r12,%rbx,8), %r13
	movq	(%r15), %rax
	movl	(%rax,%r13,4), %r14d
	movl	4(%r12,%rbx,8), %edx
	testl	%r14d, %edx
	je	LBB0_6
## %bb.7:
	movq	_dpu_intr_set@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	notl	%edx
	andl	%edx, %r14d
	leaq	8(%r15), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	4(%rax,%r13,8), %esi
	movl	%r14d, %edx
	callq	_DPU_REG_WRITE
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r13,8), %esi
	movl	4(%r12,%rbx,8), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_DPU_REG_WRITE
	xorl	%eax, %eax
	callq	_wmb
	movq	(%r15), %rax
	movl	%r14d, (%rax,%r13,4)
	movl	4(%r12,%rbx,8), %edx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_8
LBB0_4:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_pr_err
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
LBB0_8:
	leaq	L_.str.3(%rip), %rdi
	movl	%r14d, %ecx
	callq	_pr_debug
	xorl	%eax, %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.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
L_.str.1:                               ## @.str.1
	.asciz	"DPU IRQ is already cleared:"

L_.str.2:                               ## @.str.2
	.asciz	"DPU IRQ mask disable:"

L_.str.3:                               ## @.str.3
	.asciz	"%s MASK:0x%.8x, CACHE-MASK:0x%.8x\n"

	.no_dead_strip	_dpu_hw_intr_disable_irq_nolock
.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_disable_irq_nolock
_dpu_hw_intr_disable_irq_nolock:        ; @dpu_hw_intr_disable_irq_nolock
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x1
	tbnz	w1, #31, LBB0_5
; %bb.2:
	mov	x20, x0
Lloh0:
	adrp	x21, _dpu_irq_map@GOTPAGE
Lloh1:
	ldr	x21, [x21, _dpu_irq_map@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	w0, w19
	b.le	LBB0_5
; %bb.3:
	ldr	x8, [x21]
	mov	w9, w19
	lsl	x9, x9, #3
	add	x22, x8, x9
	ldrsw	x23, [x8, x9]
	ldr	x8, [x20]
	ldr	w19, [x8, x23, lsl #2]
	ldr	w2, [x22, #4]!
	tst	w2, w19
	b.eq	LBB0_8
; %bb.4:
Lloh2:
	adrp	x8, _dpu_intr_set@GOTPAGE
Lloh3:
	ldr	x8, [x8, _dpu_intr_set@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	bic	w19, w19, w2
	add	x21, x20, #8
	add	x24, x8, x23, lsl #3
	ldr	w1, [x24, #4]
	mov	x0, x21
	mov	x2, x19
	bl	_DPU_REG_WRITE
	ldr	w1, [x24]
	ldr	w2, [x22]
	mov	x0, x21
	bl	_DPU_REG_WRITE
	bl	_wmb
	ldr	x8, [x20]
	str	w19, [x8, x23, lsl #2]
	ldr	w2, [x22]
Lloh5:
	adrp	x1, l_.str.2@PAGE
Lloh6:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_5:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_pr_err
LBB0_6:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_9:
Lloh14:
	adrp	x0, l_.str.3@PAGE
Lloh15:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x3, x19
	bl	_pr_debug
	mov	w0, #0
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.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
l_.str.1:                               ; @.str.1
	.asciz	"DPU IRQ is already cleared:"

l_.str.2:                               ; @.str.2
	.asciz	"DPU IRQ mask disable:"

l_.str.3:                               ; @.str.3
	.asciz	"%s MASK:0x%.8x, CACHE-MASK:0x%.8x\n"

	.no_dead_strip	_dpu_hw_intr_disable_irq_nolock
.subsections_via_symbols
