	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function goldfish_pipe_interrupt
_goldfish_pipe_interrupt:               ## @goldfish_pipe_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	24(%rsi), %rax
	movq	_IRQ_NONE@GOTPCREL(%rip), %r15
	cmpq	_goldfish_pipe_device_deinit@GOTPCREL(%rip), %rax
	jne	LBB0_7
## %bb.1:
	movq	%rsi, %r12
	leaq	4(%rsi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_PIPE_REG_GET_SIGNALLED@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%r12), %rdi
	callq	_readl
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	_MAX_SIGNALLED_PIPES@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r15
	cmpq	%r15, %rax
	cmovlq	%rax, %r15
	testq	%r15, %r15
	jle	LBB0_6
## %bb.4:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,8), %edx
	movl	4(%rax,%rbx,8), %esi
	movq	%r12, %rdi
	callq	_signalled_pipes_add_locked
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_5
LBB0_6:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r12, %rdi
	callq	_tasklet_schedule
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %r15
	jmp	LBB0_7
LBB0_2:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
LBB0_7:
	movl	(%r15), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_goldfish_pipe_device_deinit,4,2 ## @goldfish_pipe_device_deinit
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_PIPE_REG_GET_SIGNALLED,8,3     ## @PIPE_REG_GET_SIGNALLED
	.comm	_MAX_SIGNALLED_PIPES,8,3        ## @MAX_SIGNALLED_PIPES
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_goldfish_pipe_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function goldfish_pipe_interrupt
_goldfish_pipe_interrupt:               ; @goldfish_pipe_interrupt
	.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, [x1, #24]
Lloh0:
	adrp	x9, _goldfish_pipe_device_deinit@GOTPAGE
Lloh1:
	ldr	x9, [x9, _goldfish_pipe_device_deinit@GOTPAGEOFF]
	cmp	x8, x9
	b.eq	LBB0_2
LBB0_1:
Lloh2:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_7
LBB0_2:
	mov	x19, x1
	add	x20, x1, #4
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #16]
Lloh4:
	adrp	x9, _PIPE_REG_GET_SIGNALLED@GOTPAGE
Lloh5:
	ldr	x9, [x9, _PIPE_REG_GET_SIGNALLED@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	cbz	x0, LBB0_8
; %bb.3:
Lloh7:
	adrp	x8, _MAX_SIGNALLED_PIPES@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MAX_SIGNALLED_PIPES@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x0, x8
	csel	x21, x0, x8, lt
	cmp	x21, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x22, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	add	x8, x8, x22
	ldp	w2, w1, [x8]
	mov	x0, x19
	bl	_signalled_pipes_add_locked
	add	x22, x22, #8
	subs	x21, x21, #1
	b.ne	LBB0_5
LBB0_6:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	bl	_tasklet_schedule
Lloh10:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	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_8:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	b	LBB0_1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_goldfish_pipe_device_deinit,4,2 ; @goldfish_pipe_device_deinit
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_PIPE_REG_GET_SIGNALLED,8,3     ; @PIPE_REG_GET_SIGNALLED
	.comm	_MAX_SIGNALLED_PIPES,8,3        ; @MAX_SIGNALLED_PIPES
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_goldfish_pipe_interrupt
.subsections_via_symbols
