	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_html_make_id                   ## -- Begin function html_make_id
	.p2align	4, 0x90
_html_make_id:                          ## @html_make_id
	.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	%esi, %r14d
	movq	%rdi, %rsi
	movq	16(%rdi), %rcx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.1:
	movq	_ROFFT_TEXT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdx, (%rcx)
	jne	LBB0_22
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rcx), %rcx
	testq	%rcx, %rcx
	jne	LBB0_2
LBB0_4:
	movq	$0, -48(%rbp)
	leaq	-48(%rbp), %rdi
	callq	_deroff
	movq	-48(%rbp), %rbx
	testq	%rbx, %rbx
	je	LBB0_17
## %bb.5:
	movb	(%rbx), %al
	testb	%al, %al
	je	LBB0_11
## %bb.6:
	leaq	L_.str(%rip), %r15
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_8 Depth=1
	movzbl	1(%rbx), %eax
	incq	%rbx
	testb	%al, %al
	je	LBB0_11
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	%al, %edi
	callq	_isalnum
	testq	%rax, %rax
	jne	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movsbl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_strchr
	testq	%rax, %rax
	jne	LBB0_7
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movb	$95, (%rbx)
	jmp	LBB0_7
LBB0_11:
	testl	%r14d, %r14d
	je	LBB0_21
## %bb.12:
	movq	$0, -56(%rbp)
	movq	-48(%rbp), %rsi
	movq	_id_unique@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_ohash_qlookup
	movl	%eax, %r15d
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_ohash_find
	testq	%rax, %rax
	je	LBB0_18
## %bb.13:
	xorl	%edi, %edi
	callq	_free
	movl	$2, %ebx
	leaq	L_.str.1(%rip), %r14
	leaq	-56(%rbp), %r12
	movq	_id_unique@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rdx
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%ebx, %ecx
	callq	_mandoc_asprintf
	movq	-56(%rbp), %rsi
	movq	%r13, %rdi
	callq	_ohash_qlookup
	movl	%eax, %r15d
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_ohash_find
	testq	%rax, %rax
	je	LBB0_19
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	-56(%rbp), %rdi
	callq	_free
	incl	%ebx
	cmpl	$128, %ebx
	jne	LBB0_14
## %bb.16:
	movq	-48(%rbp), %rdi
	callq	_free
LBB0_17:
	xorl	%eax, %eax
	jmp	LBB0_22
LBB0_18:
	movq	-48(%rbp), %rdx
	jmp	LBB0_20
LBB0_19:
	movq	-48(%rbp), %rdi
	callq	_free
	movq	-56(%rbp), %rdx
	movq	%rdx, -48(%rbp)
LBB0_20:
	movq	_id_unique@GOTPCREL(%rip), %rdi
	movl	%r15d, %esi
	callq	_ohash_insert
LBB0_21:
	movq	-48(%rbp), %rax
LBB0_22:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ROFFT_TEXT,8,3                 ## @ROFFT_TEXT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"!$&'()*+,-./:;=?@_~"

	.comm	_id_unique,4,2                  ## @id_unique
L_.str.1:                               ## @.str.1
	.asciz	"%s_%d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_html_make_id                   ; -- Begin function html_make_id
	.p2align	2
_html_make_id:                          ; @html_make_id
	.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	x19, x1
	mov	x1, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_4
; %bb.1:
Lloh0:
	adrp	x9, _ROFFT_TEXT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ROFFT_TEXT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x8]
	cmp	x10, x9
	b.ne	LBB0_17
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x8, #8]
	cbnz	x8, LBB0_2
LBB0_4:
	str	xzr, [sp, #8]
	add	x0, sp, #8
	bl	_deroff
	ldr	x21, [sp, #8]
	cbz	x21, LBB0_17
; %bb.5:
	ldrb	w8, [x21]
	cbz	w8, LBB0_11
; %bb.6:
Lloh3:
	adrp	x20, l_.str@PAGE
Lloh4:
	add	x20, x20, l_.str@PAGEOFF
	mov	w22, #95
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldrb	w8, [x21, #1]!
	cbz	w8, LBB0_11
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	and	w0, w8, #0xff
	bl	_isalnum
	cbnz	x0, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldrsb	w1, [x21]
	mov	x0, x20
	bl	_strchr
	cbnz	x0, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	strb	w22, [x21]
	b	LBB0_7
LBB0_11:
	cbz	w19, LBB0_21
; %bb.12:
	str	xzr, [sp]
	ldr	x1, [sp, #8]
Lloh5:
	adrp	x19, _id_unique@GOTPAGE
Lloh6:
	ldr	x19, [x19, _id_unique@GOTPAGEOFF]
	mov	x0, x19
	bl	_ohash_qlookup
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_ohash_find
	cbz	x0, LBB0_18
; %bb.13:
	mov	x0, #0
	bl	_free
	mov	w19, #2
Lloh7:
	adrp	x21, l_.str.1@PAGE
Lloh8:
	add	x21, x21, l_.str.1@PAGEOFF
Lloh9:
	adrp	x22, _id_unique@GOTPAGE
Lloh10:
	ldr	x22, [x22, _id_unique@GOTPAGEOFF]
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x2, [sp, #8]
	mov	x0, sp
	mov	x1, x21
	mov	x3, x19
	bl	_mandoc_asprintf
	ldr	x1, [sp]
	mov	x0, x22
	bl	_ohash_qlookup
	mov	x20, x0
	mov	x0, x22
	mov	x1, x20
	bl	_ohash_find
	cbz	x0, LBB0_19
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x0, [sp]
	bl	_free
	add	w19, w19, #1
	cmp	w19, #128
	b.ne	LBB0_14
; %bb.16:
	ldr	x0, [sp, #8]
	bl	_free
LBB0_17:
	mov	x0, #0
	b	LBB0_22
LBB0_18:
	ldr	x2, [sp, #8]
	b	LBB0_20
LBB0_19:
	ldr	x0, [sp, #8]
	bl	_free
	ldr	x2, [sp]
	str	x2, [sp, #8]
LBB0_20:
Lloh11:
	adrp	x0, _id_unique@GOTPAGE
Lloh12:
	ldr	x0, [x0, _id_unique@GOTPAGEOFF]
	mov	x1, x20
	bl	_ohash_insert
LBB0_21:
	ldr	x0, [sp, #8]
LBB0_22:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ROFFT_TEXT,8,3                 ; @ROFFT_TEXT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"!$&'()*+,-./:;=?@_~"

	.comm	_id_unique,4,2                  ; @id_unique
l_.str.1:                               ; @.str.1
	.asciz	"%s_%d"

.subsections_via_symbols
