	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kfd_interrupt_init             ## -- Begin function kfd_interrupt_init
	.p2align	4, 0x90
_kfd_interrupt_init:                    ## @kfd_interrupt_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	addq	$24, %rdi
	movq	_KFD_IH_NUM_ENTRIES@GOTPCREL(%rip), %rax
	movq	16(%rbx), %rcx
	movl	(%rcx), %esi
	imull	(%rax), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_kfifo_alloc
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_kfd_chardev
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_dev_err
	jmp	LBB0_3
LBB0_2:
	movq	_WQ_HIGHPRI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	movl	$1, %edx
	callq	_alloc_workqueue
	movl	%eax, 12(%rbx)
	leaq	8(%rbx), %rdi
	callq	_spin_lock_init
	leaq	4(%rbx), %rdi
	movq	_interrupt_wq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movl	$1, (%rbx)
	xorl	%eax, %eax
	callq	_smp_wmb
LBB0_3:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KFD_IH_NUM_ENTRIES,4,2         ## @KFD_IH_NUM_ENTRIES
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to allocate IH fifo\n"

L_.str.1:                               ## @.str.1
	.asciz	"KFD IH"

	.comm	_WQ_HIGHPRI,4,2                 ## @WQ_HIGHPRI
	.comm	_interrupt_wq,4,2               ## @interrupt_wq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kfd_interrupt_init             ; -- Begin function kfd_interrupt_init
	.p2align	2
_kfd_interrupt_init:                    ; @kfd_interrupt_init
	.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
	mov	x20, x0
	add	x0, x0, #24
Lloh0:
	adrp	x8, _KFD_IH_NUM_ENTRIES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KFD_IH_NUM_ENTRIES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x9, [x20, #16]
	ldr	w9, [x9]
	mul	w1, w9, w8
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_kfifo_alloc
	mov	x19, x0
	cbz	w0, LBB0_2
; %bb.1:
	bl	_kfd_chardev
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_3
LBB0_2:
Lloh8:
	adrp	x8, _WQ_HIGHPRI@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WQ_HIGHPRI@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	w21, #1
	mov	w2, #1
	bl	_alloc_workqueue
	str	w0, [x20, #12]
	add	x0, x20, #8
	bl	_spin_lock_init
	add	x0, x20, #4
Lloh13:
	adrp	x8, _interrupt_wq@GOTPAGE
Lloh14:
	ldr	x8, [x8, _interrupt_wq@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	bl	_INIT_WORK
	str	w21, [x20]
	bl	_smp_wmb
LBB0_3:
	mov	x0, x19
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_KFD_IH_NUM_ENTRIES,4,2         ; @KFD_IH_NUM_ENTRIES
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate IH fifo\n"

l_.str.1:                               ; @.str.1
	.asciz	"KFD IH"

	.comm	_WQ_HIGHPRI,4,2                 ; @WQ_HIGHPRI
	.comm	_interrupt_wq,4,2               ; @interrupt_wq
.subsections_via_symbols
