	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dpu_core_irq_preinstall        ## -- Begin function dpu_core_irq_preinstall
	.p2align	4, 0x90
_dpu_core_irq_preinstall:               ## @dpu_core_irq_preinstall
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	56(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.5:
	movq	%rdi, %r14
	movq	48(%rdi), %rdi
	callq	_pm_runtime_get_sync
	movq	%r14, %rdi
	callq	_dpu_clear_all_irqs
	movq	%r14, %rdi
	callq	_dpu_disable_all_irqs
	movq	48(%r14), %rdi
	callq	_pm_runtime_put_sync
	leaq	32(%r14), %rdi
	callq	_spin_lock_init
	movq	40(%r14), %rax
	movl	(%rax), %edi
	movl	%edi, (%r14)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, 24(%r14)
	movl	(%r14), %edi
	movl	(%rbx), %edx
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, 16(%r14)
	movl	(%r14), %edi
	movl	(%rbx), %edx
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, 8(%r14)
	cmpl	$0, (%r14)
	jle	LBB0_8
## %bb.6:
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r14), %rdi
	addq	%rbx, %rdi
	callq	_INIT_LIST_HEAD
	movq	16(%r14), %rdi
	addq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movq	8(%r14), %rdi
	addq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	incq	%r15
	movslq	(%r14), %rax
	addq	$4, %rbx
	cmpq	%rax, %r15
	jl	LBB0_7
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DPU_ERROR                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid drm device\n"

L_.str.1:                               ## @.str.1
	.asciz	"invalid device private\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dpu_core_irq_preinstall        ; -- Begin function dpu_core_irq_preinstall
	.p2align	2
_dpu_core_irq_preinstall:               ; @dpu_core_irq_preinstall
	.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
	ldr	x8, [x0, #56]
	cbz	x8, LBB0_6
; %bb.1:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.2:
	mov	x19, x0
	ldr	x0, [x0, #48]
	bl	_pm_runtime_get_sync
	mov	x0, x19
	bl	_dpu_clear_all_irqs
	mov	x0, x19
	bl	_dpu_disable_all_irqs
	ldr	x0, [x19, #48]
	bl	_pm_runtime_put_sync
	add	x0, x19, #32
	bl	_spin_lock_init
	ldr	x8, [x19, #40]
	ldr	w0, [x8]
	str	w0, [x19]
Lloh0:
	adrp	x20, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	w1, #4
	bl	_kcalloc
	str	x0, [x19, #24]
	ldr	w0, [x19]
	ldr	w2, [x20]
	mov	w1, #4
	bl	_kcalloc
	str	x0, [x19, #16]
	ldr	w0, [x19]
	ldr	w2, [x20]
	mov	w1, #4
	bl	_kcalloc
	str	x0, [x19, #8]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x20, #0
	mov	x21, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	add	x0, x8, x20
	bl	_INIT_LIST_HEAD
	ldr	x8, [x19, #16]
	add	x0, x8, x20
	mov	w1, #0
	bl	_atomic_set
	ldr	x8, [x19, #8]
	add	x0, x8, x20
	mov	w1, #0
	bl	_atomic_set
	add	x21, x21, #1
	ldrsw	x8, [x19]
	add	x20, x20, #4
	cmp	x21, x8
	b.lt	LBB0_4
LBB0_5:
	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
LBB0_6:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_8:
	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
	b	_DPU_ERROR
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid drm device\n"

l_.str.1:                               ; @.str.1
	.asciz	"invalid device private\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
.subsections_via_symbols
