	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mconsole_interrupt
_mconsole_interrupt:                    ## @mconsole_interrupt
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	leaq	_mconsole_interrupt.req(%rip), %rsi
	movq	%r14, %rdi
	callq	_mconsole_get_request
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	_MCONSOLE_INTR@GOTPCREL(%rip), %r15
	leaq	_mconsole_interrupt.req(%rip), %r13
	movq	_GFP_NOWAIT@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	*8(%rax)
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_mconsole_get_request
	testq	%rax, %rax
	je	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_mconsole_interrupt.req+8(%rip), %rax
	movq	(%rax), %rcx
	cmpq	(%r15), %rcx
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %esi
	movl	$24, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rbx
	movups	_mconsole_interrupt.req(%rip), %xmm0
	movups	%xmm0, 8(%rax)
	xorl	%eax, %eax
	callq	_get_irq_regs
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	%rbx, %rdi
	movq	_mc_requests@GOTPCREL(%rip), %rsi
	callq	_list_add
	jmp	LBB0_7
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	leaq	L_.str(%rip), %rsi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_mconsole_reply
	jmp	LBB0_7
LBB0_8:
	movq	_mc_requests@GOTPCREL(%rip), %rdi
	callq	_list_empty
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	movq	_mconsole_work@GOTPCREL(%rip), %rdi
	callq	_schedule_work
LBB0_10:
	movq	_MCONSOLE_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_reactivate_fd
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_mconsole_interrupt.req,16,3 ## @mconsole_interrupt.req
	.comm	_MCONSOLE_INTR,8,3              ## @MCONSOLE_INTR
	.comm	_GFP_NOWAIT,4,2                 ## @GFP_NOWAIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Out of memory"

	.comm	_mc_requests,4,2                ## @mc_requests
	.comm	_mconsole_work,4,2              ## @mconsole_work
	.comm	_MCONSOLE_IRQ,4,2               ## @MCONSOLE_IRQ
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_mconsole_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mconsole_interrupt
_mconsole_interrupt:                    ; @mconsole_interrupt
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
Lloh0:
	adrp	x20, _mconsole_interrupt.req@PAGE
Lloh1:
	add	x20, x20, _mconsole_interrupt.req@PAGEOFF
	mov	x0, x1
	mov	x1, x20
	bl	_mconsole_get_request
	cbz	x0, LBB0_8
; %bb.1:
	adrp	x24, _mconsole_interrupt.req@PAGE+8
Lloh2:
	adrp	x25, _MCONSOLE_INTR@GOTPAGE
Lloh3:
	ldr	x25, [x25, _MCONSOLE_INTR@GOTPAGEOFF]
Lloh4:
	adrp	x26, _GFP_NOWAIT@GOTPAGE
Lloh5:
	ldr	x26, [x26, _GFP_NOWAIT@GOTPAGEOFF]
Lloh6:
	adrp	x21, l_.str@PAGE
Lloh7:
	add	x21, x21, l_.str@PAGEOFF
Lloh8:
	adrp	x22, _mc_requests@GOTPAGE
Lloh9:
	ldr	x22, [x22, _mc_requests@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x8, #8]
	mov	x0, x20
	blr	x8
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_mconsole_get_request
	cbz	x0, LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24, _mconsole_interrupt.req@PAGEOFF+8]
	ldr	x9, [x8]
	ldr	x10, [x25]
	cmp	x9, x10
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x26]
	mov	w0, #24
	bl	_kmalloc
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x23, x0
	ldr	q0, [x20]
	stur	q0, [x0, #8]
	bl	_get_irq_regs
	ldr	w8, [x0]
	str	w8, [x23, #8]
	mov	x0, x23
	mov	x1, x22
	bl	_list_add
	b	LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x21
	mov	w2, #1
	mov	w3, #0
	bl	_mconsole_reply
	b	LBB0_3
LBB0_8:
Lloh10:
	adrp	x0, _mc_requests@GOTPAGE
Lloh11:
	ldr	x0, [x0, _mc_requests@GOTPAGEOFF]
	bl	_list_empty
	cbnz	w0, LBB0_10
; %bb.9:
Lloh12:
	adrp	x0, _mconsole_work@GOTPAGE
Lloh13:
	ldr	x0, [x0, _mconsole_work@GOTPAGEOFF]
	bl	_schedule_work
LBB0_10:
Lloh14:
	adrp	x8, _MCONSOLE_IRQ@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MCONSOLE_IRQ@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_reactivate_fd
Lloh17:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_mconsole_interrupt.req,16,3 ; @mconsole_interrupt.req
	.comm	_MCONSOLE_INTR,8,3              ; @MCONSOLE_INTR
	.comm	_GFP_NOWAIT,4,2                 ; @GFP_NOWAIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Out of memory"

	.comm	_mc_requests,4,2                ; @mc_requests
	.comm	_mconsole_work,4,2              ; @mconsole_work
	.comm	_MCONSOLE_IRQ,4,2               ; @MCONSOLE_IRQ
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_mconsole_interrupt
.subsections_via_symbols
