	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mark
_mark:                                  ## @mark
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r14
	testl	%edx, %edx
	je	LBB0_2
## %bb.1:
	movl	48(%r15), %esi
	movq	_M_BERR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_mark_get
	movl	$1, %r12d
	testq	%rax, %rax
	jne	LBB0_33
LBB0_2:
	cmpl	$128, %ebx
	je	LBB0_9
## %bb.3:
	cmpl	$129, %ebx
	jne	LBB0_23
## %bb.4:
	movq	(%r15), %rsi
	movq	_DBG_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %r8
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_db_get
	movl	$1, %r12d
	testq	%rax, %rax
	jne	LBB0_33
## %bb.5:
	movq	8(%r15), %r13
	movq	-48(%rbp), %rbx
	movq	%r15, %rdi
	callq	_ISMOTION
	cmpq	%rbx, %r13
	jb	LBB0_24
## %bb.6:
	orq	%r13, %rbx
	je	LBB0_24
## %bb.7:
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_VM_LMODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_F_SET
LBB0_9:
	leaq	8(%r15), %rdx
	movq	$0, 8(%r15)
	movq	(%r15), %rsi
	movq	%r14, %rdi
	callq	_nonblank
	movl	$1, %r12d
	testq	%rax, %rax
	jne	LBB0_33
## %bb.10:
	movq	%r15, %rdi
	callq	_ISMOTION
	testq	%rax, %rax
	je	LBB0_25
## %bb.11:
	movq	(%r15), %rdx
	movq	16(%r15), %rsi
	movb	$1, %al
LBB0_12:
	leaq	16(%r15), %rcx
	cmpq	%rdx, %rsi
	jg	LBB0_15
## %bb.13:
	je	LBB0_14
	jmp	LBB0_16
LBB0_24:
	testq	%rax, %rax
	je	LBB0_25
## %bb.26:
	movq	(%r15), %rdx
	movq	16(%r15), %rsi
	cmpq	%rsi, %rdx
	jne	LBB0_27
## %bb.28:
	movq	8(%r15), %rax
	cmpq	24(%r15), %rax
	jne	LBB0_29
## %bb.30:
	movq	%r14, %rdi
	callq	_v_nomove
	jmp	LBB0_33
LBB0_25:
	movups	(%r15), %xmm0
	movups	%xmm0, 32(%r15)
	jmp	LBB0_32
LBB0_27:
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_29:
	leaq	16(%r15), %rcx
	xorl	%eax, %eax
LBB0_14:
	movq	24(%r15), %rdx
	cmpq	8(%r15), %rdx
	jbe	LBB0_16
LBB0_15:
	movups	(%rcx), %xmm0
	movaps	%xmm0, -64(%rbp)
	movups	(%r15), %xmm0
	movups	%xmm0, (%rcx)
	movaps	-64(%rbp), %xmm0
	movups	%xmm0, (%r15)
LBB0_16:
	movups	(%rcx), %xmm0
	movups	%xmm0, 32(%r15)
	xorl	%r12d, %r12d
	testb	%al, %al
	jne	LBB0_33
## %bb.17:
	movq	(%r15), %rsi
	movq	8(%r15), %rax
	cmpq	%rsi, 16(%r15)
	jge	LBB0_31
## %bb.18:
	testq	%rax, %rax
	jne	LBB0_31
## %bb.19:
	decq	%rsi
	movq	%rsi, (%r15)
	movq	_DBG_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %r8
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_db_get
	movl	$1, %r12d
	testq	%rax, %rax
	jne	LBB0_33
## %bb.20:
	movq	-48(%rbp), %rax
	xorl	%ecx, %ecx
	subq	$1, %rax
	cmovaeq	%rax, %rcx
	movq	%rcx, 8(%r15)
	movq	$0, -48(%rbp)
	movq	16(%r15), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	callq	_nonblank
	testq	%rax, %rax
	jne	LBB0_33
## %bb.21:
	movq	24(%r15), %rax
	cmpq	-48(%rbp), %rax
	ja	LBB0_32
## %bb.22:
	movq	_VM_LMODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_F_SET
	jmp	LBB0_32
LBB0_31:
	decq	%rax
	movq	%rax, 8(%r15)
LBB0_32:
	xorl	%r12d, %r12d
LBB0_33:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	xorl	%eax, %eax
	callq	_abort
	.cfi_endproc
                                        ## -- End function
	.comm	_M_BERR,4,2                     ## @M_BERR
	.comm	_DBG_FATAL,4,2                  ## @DBG_FATAL
	.comm	_VM_LMODE,4,2                   ## @VM_LMODE
	.comm	_BACKWARD,4,2                   ## @BACKWARD
	.comm	_FORWARD,4,2                    ## @FORWARD
	.no_dead_strip	_mark
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mark
_mark:                                  ; @mark
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x21, x3
	mov	x19, x1
	mov	x20, x0
	cbz	w2, LBB0_2
; %bb.1:
	ldr	w1, [x19, #48]
Lloh0:
	adrp	x8, _M_BERR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _M_BERR@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x2, x19
	bl	_mark_get
	cbnz	x0, LBB0_10
LBB0_2:
	cmp	w21, #128
	b.eq	LBB0_9
; %bb.3:
	cmp	w21, #129
	b.ne	LBB0_34
; %bb.4:
	ldr	x1, [x19]
Lloh3:
	adrp	x8, _DBG_FATAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DBG_FATAL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x4, sp, #8
	mov	x0, x20
	mov	x3, #0
	bl	_db_get
	cbnz	x0, LBB0_10
; %bb.5:
	ldr	x21, [x19, #8]
	ldr	x22, [sp, #8]
	mov	x0, x19
	bl	_ISMOTION
	cmp	x21, x22
	b.lo	LBB0_16
; %bb.6:
	orr	x8, x22, x21
	cbz	x8, LBB0_16
; %bb.7:
	cbz	x0, LBB0_9
; %bb.8:
Lloh6:
	adrp	x8, _VM_LMODE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VM_LMODE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_F_SET
LBB0_9:
	mov	x2, x19
	str	xzr, [x2, #8]!
	ldr	x1, [x19]
	mov	x0, x20
	bl	_nonblank
	cbz	x0, LBB0_12
LBB0_10:
	mov	w0, #1
LBB0_11:
	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
	add	sp, sp, #80
	ret
LBB0_12:
	mov	x0, x19
	bl	_ISMOTION
	cbz	x0, LBB0_20
; %bb.13:
	ldr	x10, [x19, #16]
	ldr	x11, [x19]
	mov	w8, #1
LBB0_14:
	add	x9, x19, #16
	cmp	x10, x11
	b.gt	LBB0_24
; %bb.15:
	b.eq	LBB0_23
	b	LBB0_25
LBB0_16:
	cbz	x0, LBB0_20
; %bb.17:
	ldr	x11, [x19]
	ldr	x10, [x19, #16]
	cmp	x11, x10
	b.ne	LBB0_21
; %bb.18:
	ldr	x8, [x19, #8]
	ldr	x9, [x19, #24]
	cmp	x8, x9
	b.ne	LBB0_22
; %bb.19:
	mov	x0, x20
	bl	_v_nomove
	mov	w0, #1
	b	LBB0_11
LBB0_20:
	mov	w0, #0
	ldr	q0, [x19]
	str	q0, [x19, #32]
	b	LBB0_11
LBB0_21:
	mov	w8, #0
	b	LBB0_14
LBB0_22:
	mov	w8, #0
	add	x9, x19, #16
LBB0_23:
	ldr	x10, [x19, #24]
	ldr	x11, [x19, #8]
	cmp	x10, x11
	b.ls	LBB0_25
LBB0_24:
	ldr	q0, [x9]
	str	q0, [sp, #16]
	ldr	q0, [x19]
	str	q0, [x9]
	ldr	q0, [sp, #16]
	str	q0, [x19]
LBB0_25:
	ldr	q0, [x9]
	str	q0, [x19, #32]
	tbz	w8, #0, LBB0_27
LBB0_26:
	mov	w0, #0
	b	LBB0_11
LBB0_27:
	ldp	x9, x10, [x19, #8]
	ldr	x8, [x19]
	cmp	x10, x8
	b.ge	LBB0_33
; %bb.28:
	cbnz	x9, LBB0_33
; %bb.29:
	sub	x1, x8, #1
	str	x1, [x19]
Lloh9:
	adrp	x8, _DBG_FATAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DBG_FATAL@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	add	x4, sp, #8
	mov	x0, x20
	mov	x3, #0
	bl	_db_get
	cbnz	x0, LBB0_10
; %bb.30:
	ldr	x8, [sp, #8]
	sub	x9, x8, #1
	cmp	x8, #0
	csel	x8, xzr, x9, eq
	str	x8, [x19, #8]
	str	xzr, [sp, #8]
	ldr	x1, [x19, #16]
	add	x2, sp, #8
	mov	x0, x20
	bl	_nonblank
	cbnz	x0, LBB0_10
; %bb.31:
	ldr	x8, [x19, #24]
	ldr	x9, [sp, #8]
	cmp	x8, x9
	b.hi	LBB0_26
; %bb.32:
Lloh12:
	adrp	x8, _VM_LMODE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VM_LMODE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_F_SET
	mov	w0, #0
	b	LBB0_11
LBB0_33:
	mov	w0, #0
	sub	x8, x9, #1
	str	x8, [x19, #8]
	b	LBB0_11
LBB0_34:
	bl	_abort
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_M_BERR,4,2                     ; @M_BERR
	.comm	_DBG_FATAL,4,2                  ; @DBG_FATAL
	.comm	_VM_LMODE,4,2                   ; @VM_LMODE
	.comm	_BACKWARD,4,2                   ; @BACKWARD
	.comm	_FORWARD,4,2                    ; @FORWARD
	.no_dead_strip	_mark
.subsections_via_symbols
