	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _dpu_core_irq_disable
__dpu_core_irq_disable:                 ## @_dpu_core_irq_disable
	.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	%rdi, %r15
	movq	(%rdi), %rcx
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.2:
	movq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movl	%esi, %r14d
	testl	%esi, %esi
	js	LBB0_7
## %bb.6:
	cmpl	%r14d, (%rcx)
	jle	LBB0_7
## %bb.8:
	movl	%r14d, %ebx
	leaq	(%rax,%rbx,4), %rdi
	shlq	$2, %rbx
	callq	_atomic_read
	movl	%eax, %r12d
	leaq	L_.str.2(%rip), %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_DRM_DEBUG_KMS
	movl	%r14d, %edi
	movl	%r12d, %esi
	callq	_trace_dpu_core_irq_disable_idx
	addq	8(%r15), %rbx
	movq	%rbx, %rdi
	callq	_atomic_dec_return
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_12
## %bb.9:
	movq	(%r15), %rdi
	movl	%r14d, %esi
	callq	*8(%rdi)
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	leaq	L_.str.3(%rip), %rdi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_DPU_ERROR
LBB0_11:
	leaq	L_.str.4(%rip), %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_DPU_DEBUG
	jmp	LBB0_12
LBB0_3:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DPU_ERROR
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_DPU_ERROR
	jmp	LBB0_4
	.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	"invalid IRQ index: [%d]\n"

L_.str.2:                               ## @.str.2
	.asciz	"irq_idx=%d enable_count=%d\n"

L_.str.3:                               ## @.str.3
	.asciz	"Fail to disable IRQ for irq_idx:%d\n"

L_.str.4:                               ## @.str.4
	.asciz	"irq_idx=%d ret=%d\n"

	.no_dead_strip	__dpu_core_irq_disable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _dpu_core_irq_disable
__dpu_core_irq_disable:                 ; @_dpu_core_irq_disable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	cbz	x0, LBB0_7
; %bb.1:
	mov	x20, x0
	ldr	x9, [x0]
	cbz	x9, LBB0_7
; %bb.2:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_7
; %bb.3:
	mov	x19, x1
	tbnz	w1, #31, LBB0_10
; %bb.4:
	ldr	w9, [x9]
	cmp	w9, w19
	b.le	LBB0_10
; %bb.5:
	mov	w9, w19
	lsl	x22, x9, #2
	add	x0, x8, x22
	bl	_atomic_read
	mov	x21, x0
Lloh0:
	adrp	x0, l_.str.2@PAGE
Lloh1:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	mov	x2, x21
	bl	_DRM_DEBUG_KMS
	mov	x0, x19
	mov	x1, x21
	bl	_trace_dpu_core_irq_disable_idx
	ldr	x8, [x20, #8]
	add	x0, x8, x22
	bl	_atomic_dec_return
	cbz	x0, LBB0_11
; %bb.6:
	mov	w20, #0
	b	LBB0_9
LBB0_7:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
LBB0_8:
	bl	_DPU_ERROR
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_9:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
LBB0_10:
	str	x19, [sp]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_11:
	ldr	x0, [x20]
	ldr	x8, [x0, #8]
	mov	x1, x19
	blr	x8
	mov	x20, x0
	cbz	w0, LBB0_13
; %bb.12:
	mov	x8, x19
	str	x8, [sp]
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DPU_ERROR
LBB0_13:
Lloh11:
	adrp	x0, l_.str.4@PAGE
Lloh12:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x19
	mov	x2, x20
	bl	_DPU_DEBUG
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.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	"invalid IRQ index: [%d]\n"

l_.str.2:                               ; @.str.2
	.asciz	"irq_idx=%d enable_count=%d\n"

l_.str.3:                               ; @.str.3
	.asciz	"Fail to disable IRQ for irq_idx:%d\n"

l_.str.4:                               ; @.str.4
	.asciz	"irq_idx=%d ret=%d\n"

	.no_dead_strip	__dpu_core_irq_disable
.subsections_via_symbols
