	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_con_mark                       ## -- Begin function con_mark
	.p2align	4, 0x90
_con_mark:                              ## @con_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	xorl	%edi, %edi
	testq	%r15, %r15
	setne	%dil
	callq	_assert
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_DLOG
	xorl	%edi, %edi
	movq	%r14, %rsi
	callq	_con_unmark
	movq	_MM_REPLACE@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_4
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_DLOG
	leaq	4(%r15), %rbx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_TAILQ_EMPTY
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_TAILQ_FIRST
	movq	(%rax), %rsi
	movq	%r15, %rdi
	callq	_con_unmark
	jmp	LBB0_3
LBB0_4:
	movl	$1, %edi
	movl	$8, %esi
	callq	_scalloc
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_sstrdup
	movq	%rax, (%rbx)
	leaq	4(%r15), %rdi
	movq	_marks@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_TAILQ_INSERT_TAIL
	leaq	L_.str.2(%rip), %rdi
	movq	%r15, %rsi
	callq	_ipc_send_window_event
	movl	$1, (%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Setting mark \"%s\" on con = %p.\n"

	.comm	_MM_REPLACE,8,3                 ## @MM_REPLACE
L_.str.1:                               ## @.str.1
	.asciz	"Removing all existing marks on con = %p.\n"

	.comm	_marks,4,2                      ## @marks
L_.str.2:                               ## @.str.2
	.asciz	"mark"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_con_mark                       ; -- Begin function con_mark
	.p2align	2
_con_mark:                              ; @con_mark
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x2
	mov	x20, x1
	mov	x19, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	stp	x20, x19, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DLOG
	mov	x0, #0
	mov	x1, x20
	bl	_con_unmark
Lloh2:
	adrp	x8, _MM_REPLACE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MM_REPLACE@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x8, x21
	b.ne	LBB0_4
; %bb.1:
	str	x19, [sp]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DLOG
	add	x21, x19, #4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_TAILQ_EMPTY
	cbnz	w0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	bl	_TAILQ_FIRST
	ldr	x1, [x0]
	mov	x0, x19
	bl	_con_unmark
	b	LBB0_2
LBB0_4:
	mov	w22, #1
	mov	w0, #1
	mov	w1, #8
	bl	_scalloc
	mov	x21, x0
	mov	x0, x20
	bl	_sstrdup
	str	x0, [x21]
	add	x0, x19, #4
Lloh7:
	adrp	x8, _marks@GOTPAGE
Lloh8:
	ldr	x8, [x8, _marks@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x1, x21
	bl	_TAILQ_INSERT_TAIL
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_ipc_send_window_event
	str	w22, [x19]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Setting mark \"%s\" on con = %p.\n"

	.comm	_MM_REPLACE,8,3                 ; @MM_REPLACE
l_.str.1:                               ; @.str.1
	.asciz	"Removing all existing marks on con = %p.\n"

	.comm	_marks,4,2                      ; @marks
l_.str.2:                               ; @.str.2
	.asciz	"mark"

.subsections_via_symbols
