	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mbcs_completion_intr_handler
_mbcs_completion_intr_handler:          ## @mbcs_completion_intr_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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	24(%rsi), %r15
	movq	_MBCS_CM_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_MBCS_MMR_GET
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_MBCS_CM_CONTROL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_MBCS_MMR_GET
	movabsq	$-4294967296, %rbx              ## imm = 0xFFFFFFFF00000000
	andq	%rbx, %rax
	leaq	1(%rax), %rdx
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_MBCS_MMR_SET
	leaq	20(%r14), %rdi
	movl	$1, %esi
	callq	_atomic_set
	leaq	16(%r14), %rdi
	callq	_wake_up
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_MBCS_MMR_GET
	andq	%rbx, %rax
	leaq	1(%rax), %rdx
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_MBCS_MMR_SET
	leaq	12(%r14), %rdi
	movl	$1, %esi
	callq	_atomic_set
	leaq	8(%r14), %rdi
	callq	_wake_up
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_MBCS_MMR_GET
	andq	%rax, %rbx
	orq	$1, %rbx
	movl	(%r12), %esi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_MBCS_MMR_SET
	leaq	4(%r14), %rdi
	movl	$1, %esi
	callq	_atomic_set
	movq	%r14, %rdi
	callq	_wake_up
LBB0_2:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MBCS_CM_STATUS,4,2             ## @MBCS_CM_STATUS
	.comm	_MBCS_CM_CONTROL,4,2            ## @MBCS_CM_CONTROL
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_mbcs_completion_intr_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mbcs_completion_intr_handler
_mbcs_completion_intr_handler:          ; @mbcs_completion_intr_handler
	.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	x19, x1
	ldr	x20, [x1, #24]
Lloh0:
	adrp	x8, _MBCS_CM_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MBCS_CM_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_MBCS_MMR_GET
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x21, _MBCS_CM_CONTROL@GOTPAGE
Lloh4:
	ldr	x21, [x21, _MBCS_CM_CONTROL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_MBCS_MMR_GET
	and	x8, x0, #0xffffffff00000000
	orr	x2, x8, #0x1
	ldr	w1, [x21]
	mov	x0, x20
	bl	_MBCS_MMR_SET
	add	x0, x19, #20
	mov	w1, #1
	bl	_atomic_set
	add	x0, x19, #16
	bl	_wake_up
	ldr	w1, [x21]
	mov	x0, x20
	bl	_MBCS_MMR_GET
	and	x8, x0, #0xffffffff00000000
	orr	x2, x8, #0x1
	ldr	w1, [x21]
	mov	x0, x20
	bl	_MBCS_MMR_SET
	add	x0, x19, #12
	mov	w1, #1
	bl	_atomic_set
	add	x0, x19, #8
	bl	_wake_up
	ldr	w1, [x21]
	mov	x0, x20
	bl	_MBCS_MMR_GET
	and	x8, x0, #0xffffffff00000000
	orr	x2, x8, #0x1
	ldr	w1, [x21]
	mov	x0, x20
	bl	_MBCS_MMR_SET
	add	x0, x19, #4
	mov	w1, #1
	bl	_atomic_set
	mov	x0, x19
	bl	_wake_up
LBB0_2:
Lloh5:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh7:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MBCS_CM_STATUS,4,2             ; @MBCS_CM_STATUS
	.comm	_MBCS_CM_CONTROL,4,2            ; @MBCS_CM_CONTROL
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_mbcs_completion_intr_handler
.subsections_via_symbols
