	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function md_stack
_md_stack:                              ## @md_stack
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	cmpl	$-1, %edi
	je	LBB0_3
## %bb.1:
	movl	%edi, %ebx
	testl	%edi, %edi
	jne	LBB0_4
## %bb.2:
	movq	_md_stack.stack(%rip), %rax
	jmp	LBB0_8
LBB0_3:
	movq	_md_stack.cur(%rip), %rdi
	callq	_assert
	movq	_md_stack.stack(%rip), %rax
	movq	_md_stack.cur(%rip), %rcx
	leaq	-1(%rcx), %rdx
	movq	%rdx, _md_stack.cur(%rip)
	movb	$0, -1(%rax,%rcx)
	jmp	LBB0_8
LBB0_4:
	movq	_md_stack.cur(%rip), %rdx
	leaq	1(%rdx), %rcx
	movq	_md_stack.sz(%rip), %rsi
	cmpq	%rsi, %rcx
	jae	LBB0_6
## %bb.5:
	movq	_md_stack.stack(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	addq	$8, %rsi
	movq	%rsi, _md_stack.sz(%rip)
	movq	_md_stack.stack(%rip), %rdi
	callq	_mandoc_realloc
	movq	%rax, _md_stack.stack(%rip)
	movq	_md_stack.cur(%rip), %rdx
	leaq	1(%rdx), %rcx
LBB0_7:
	movb	%bl, (%rax,%rdx)
	movq	%rcx, _md_stack.cur(%rip)
	movb	$0, (%rax,%rcx)
LBB0_8:
	testq	%rax, %rax
	leaq	L_.str(%rip), %rcx
	cmovneq	%rax, %rcx
	movq	%rcx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_md_stack.stack,8,3 ## @md_stack.stack
.zerofill __DATA,__bss,_md_stack.sz,8,3 ## @md_stack.sz
.zerofill __DATA,__bss,_md_stack.cur,8,3 ## @md_stack.cur
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.no_dead_strip	_md_stack
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function md_stack
_md_stack:                              ; @md_stack
	.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
	cmn	w0, #1
	b.eq	LBB0_3
; %bb.1:
	mov	x19, x0
	cbnz	w0, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _md_stack.stack@PAGE
Lloh1:
	ldr	x0, [x8, _md_stack.stack@PAGEOFF]
	b	LBB0_9
LBB0_3:
	adrp	x19, _md_stack.cur@PAGE
	ldr	x0, [x19, _md_stack.cur@PAGEOFF]
	bl	_assert
Lloh2:
	adrp	x8, _md_stack.stack@PAGE
Lloh3:
	ldr	x0, [x8, _md_stack.stack@PAGEOFF]
	ldr	x8, [x19, _md_stack.cur@PAGEOFF]
	sub	x8, x8, #1
	str	x8, [x19, _md_stack.cur@PAGEOFF]
	b	LBB0_8
LBB0_4:
	adrp	x20, _md_stack.cur@PAGE
	ldr	x9, [x20, _md_stack.cur@PAGEOFF]
	add	x8, x9, #1
	adrp	x10, _md_stack.sz@PAGE
	ldr	x11, [x10, _md_stack.sz@PAGEOFF]
	cmp	x8, x11
	b.hs	LBB0_6
; %bb.5:
Lloh4:
	adrp	x10, _md_stack.stack@PAGE
Lloh5:
	ldr	x0, [x10, _md_stack.stack@PAGEOFF]
	b	LBB0_7
LBB0_6:
	add	x1, x11, #8
	str	x1, [x10, _md_stack.sz@PAGEOFF]
	adrp	x21, _md_stack.stack@PAGE
	ldr	x0, [x21, _md_stack.stack@PAGEOFF]
	bl	_mandoc_realloc
	str	x0, [x21, _md_stack.stack@PAGEOFF]
	ldr	x9, [x20, _md_stack.cur@PAGEOFF]
	add	x8, x9, #1
LBB0_7:
	strb	w19, [x0, x9]
	str	x8, [x20, _md_stack.cur@PAGEOFF]
LBB0_8:
	strb	wzr, [x0, x8]
LBB0_9:
Lloh6:
	adrp	x8, l_.str@PAGE
Lloh7:
	add	x8, x8, l_.str@PAGEOFF
	cmp	x0, #0
	csel	x0, x8, x0, eq
	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 AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpLdr	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_md_stack.stack,8,3 ; @md_stack.stack
.zerofill __DATA,__bss,_md_stack.sz,8,3 ; @md_stack.sz
.zerofill __DATA,__bss,_md_stack.cur,8,3 ; @md_stack.cur
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.no_dead_strip	_md_stack
.subsections_via_symbols
