	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipc_handler
_ipc_handler:                           ## @ipc_handler
	.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
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_ipc_base@GOTPCREL(%rip), %r15
	movq	(%r15), %rbx
	movl	$1, %edi
	callq	_IPCMMIS
	addq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_readl_relaxed
	movl	%eax, %r14d
	movq	_IPC_TX_MBOX@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_MBOX_MASK
	testl	%r14d, %eax
	je	LBB0_2
## %bb.1:
	movq	(%r15), %rbx
	movl	(%r12), %edi
	callq	_IPCMxSEND
	addq	%rax, %rbx
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	_writel_relaxed
	movq	_ipc_completion@GOTPCREL(%rip), %rdi
	callq	_complete
LBB0_2:
	movq	_IPC_RX_MBOX@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_MBOX_MASK
	testl	%r14d, %eax
	je	LBB0_4
## %bb.3:
	movl	(%r12), %edi
	leaq	-80(%rbp), %rsi
	callq	___ipc_rcv
	movl	-80(%rbp), %esi
	leaq	-76(%rbp), %rdx
	movq	_ipc_notifier@GOTPCREL(%rip), %rdi
	callq	_atomic_notifier_call_chain
	movq	(%r15), %rbx
	movl	(%r12), %edi
	callq	_IPCMxSEND
	addq	%rax, %rbx
	movl	$2, %edi
	movq	%rbx, %rsi
	callq	_writel_relaxed
LBB0_4:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_6
## %bb.5:
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ipc_base,8,3                   ## @ipc_base
	.comm	_IPC_TX_MBOX,4,2                ## @IPC_TX_MBOX
	.comm	_ipc_completion,4,2             ## @ipc_completion
	.comm	_IPC_RX_MBOX,4,2                ## @IPC_RX_MBOX
	.comm	_ipc_notifier,4,2               ## @ipc_notifier
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_ipc_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipc_handler
_ipc_handler:                           ; @ipc_handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
Lloh3:
	adrp	x20, _ipc_base@GOTPAGE
Lloh4:
	ldr	x20, [x20, _ipc_base@GOTPAGEOFF]
	ldr	x19, [x20]
	mov	w0, #1
	bl	_IPCMMIS
	add	x0, x0, x19
	bl	_readl_relaxed
	mov	x19, x0
Lloh5:
	adrp	x21, _IPC_TX_MBOX@GOTPAGE
Lloh6:
	ldr	x21, [x21, _IPC_TX_MBOX@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_MBOX_MASK
	tst	w0, w19
	b.eq	LBB0_2
; %bb.1:
	ldr	x22, [x20]
	ldr	w0, [x21]
	bl	_IPCMxSEND
	add	x1, x0, x22
	mov	w0, #0
	bl	_writel_relaxed
Lloh7:
	adrp	x0, _ipc_completion@GOTPAGE
Lloh8:
	ldr	x0, [x0, _ipc_completion@GOTPAGEOFF]
	bl	_complete
LBB0_2:
Lloh9:
	adrp	x21, _IPC_RX_MBOX@GOTPAGE
Lloh10:
	ldr	x21, [x21, _IPC_RX_MBOX@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_MBOX_MASK
	tst	w0, w19
	b.eq	LBB0_4
; %bb.3:
	ldr	w0, [x21]
	add	x19, sp, #12
	add	x1, sp, #12
	bl	___ipc_rcv
	ldr	w1, [sp, #12]
	add	x2, x19, #4
Lloh11:
	adrp	x0, _ipc_notifier@GOTPAGE
Lloh12:
	ldr	x0, [x0, _ipc_notifier@GOTPAGEOFF]
	bl	_atomic_notifier_call_chain
	ldr	x19, [x20]
	ldr	w0, [x21]
	bl	_IPCMxSEND
	add	x1, x0, x19
	mov	w0, #2
	bl	_writel_relaxed
LBB0_4:
Lloh13:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	ldr	x8, [sp, #40]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ipc_base,8,3                   ; @ipc_base
	.comm	_IPC_TX_MBOX,4,2                ; @IPC_TX_MBOX
	.comm	_ipc_completion,4,2             ; @ipc_completion
	.comm	_IPC_RX_MBOX,4,2                ; @IPC_RX_MBOX
	.comm	_ipc_notifier,4,2               ; @ipc_notifier
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_ipc_handler
.subsections_via_symbols
