	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mdoc_elem_alloc                ## -- Begin function mdoc_elem_alloc
	.p2align	4, 0x90
_mdoc_elem_alloc:                       ## @mdoc_elem_alloc
	.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	%r8, %rbx
	movl	%ecx, %r15d
	movq	%rdi, %r14
	movq	_ROFFT_ELEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r15d, %r8d
	callq	_roff_node_alloc
	movq	%rax, %r12
	movq	%rbx, 8(%rax)
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	incl	(%rbx)
LBB0_2:
	cmpl	$128, %r15d
	jne	LBB0_4
## %bb.3:
	movl	$1, %edi
	movl	$4, %esi
	callq	_mandoc_calloc
	movl	%eax, (%r12)
LBB0_4:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_roff_node_append
	movq	_ROFF_NEXT_CHILD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ROFFT_ELEM,4,2                 ## @ROFFT_ELEM
	.comm	_ROFF_NEXT_CHILD,4,2            ## @ROFF_NEXT_CHILD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mdoc_elem_alloc                ; -- Begin function mdoc_elem_alloc
	.p2align	2
_mdoc_elem_alloc:                       ; @mdoc_elem_alloc
	.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	x22, x4
	mov	x21, x3
	mov	x19, x0
Lloh0:
	adrp	x8, _ROFFT_ELEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ROFFT_ELEM@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x4, x21
	bl	_roff_node_alloc
	mov	x20, x0
	str	x22, [x0, #8]
	cbz	x22, LBB0_2
; %bb.1:
	ldr	w8, [x22]
	add	w8, w8, #1
	str	w8, [x22]
LBB0_2:
	cmp	w21, #128
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #1
	mov	w1, #4
	bl	_mandoc_calloc
	str	w0, [x20]
LBB0_4:
	mov	x0, x19
	mov	x1, x20
	bl	_roff_node_append
Lloh3:
	adrp	x8, _ROFF_NEXT_CHILD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ROFF_NEXT_CHILD@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ROFFT_ELEM,4,2                 ; @ROFFT_ELEM
	.comm	_ROFF_NEXT_CHILD,4,2            ; @ROFF_NEXT_CHILD
.subsections_via_symbols
