	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtdoops_console_sync
_mtdoops_console_sync:                  ## @mtdoops_console_sync
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_oops_cxt@GOTPCREL(%rip), %rbx
	cmpq	$0, 16(%rbx)
	je	LBB0_7
## %bb.1:
	movq	24(%rbx), %r15
	testq	%r15, %r15
	je	LBB0_7
## %bb.2:
	cmpq	$0, (%rbx)
	je	LBB0_7
## %bb.3:
	leaq	12(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	cmpq	$0, 16(%rbx)
	je	LBB0_8
## %bb.4:
	movq	$0, 16(%rbx)
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	cmpq	$0, (%r15)
	je	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	callq	_in_interrupt
	testq	%rax, %rax
	je	LBB0_6
## %bb.9:
	movq	_oops_cxt@GOTPCREL(%rip), %rdi
	movl	$1, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mtdoops_write                  ## TAILCALL
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
LBB0_6:
	addq	$8, %rbx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_schedule_work                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_oops_cxt,32,3                  ## @oops_cxt
	.no_dead_strip	_mtdoops_console_sync
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtdoops_console_sync
_mtdoops_console_sync:                  ; @mtdoops_console_sync
	.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
Lloh0:
	adrp	x20, _oops_cxt@GOTPAGE
Lloh1:
	ldr	x20, [x20, _oops_cxt@GOTPAGEOFF]
	ldp	x8, x21, [x20, #16]
	ldr	x9, [x20]
	cmp	x8, #0
	ccmp	x21, #0, #4, ne
	ccmp	x9, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
	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_2:
	add	x19, x20, #12
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_6
; %bb.3:
	str	xzr, [x20, #16]
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	ldr	x8, [x21]
	cbz	x8, LBB0_7
; %bb.4:
	bl	_in_interrupt
	cbz	x0, LBB0_7
; %bb.5:
Lloh2:
	adrp	x0, _oops_cxt@GOTPAGE
Lloh3:
	ldr	x0, [x0, _oops_cxt@GOTPAGEOFF]
	mov	w1, #1
	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
	b	_mtdoops_write
LBB0_6:
	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
	b	_spin_unlock_irqrestore
LBB0_7:
	add	x0, x20, #8
	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
	b	_schedule_work
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_oops_cxt,32,3                  ; @oops_cxt
	.no_dead_strip	_mtdoops_console_sync
.subsections_via_symbols
