	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function putkeys
_putkeys:                               ## @putkeys
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -56(%rbp)
	movq	%rdx, -48(%rbp)
	testq	%rdx, %rdx
	je	LBB0_19
## %bb.1:
	movl	%ecx, %ebx
	movq	%rdi, %r14
	leaq	-56(%rbp), %rdi
	leaq	-48(%rbp), %rsi
	callq	_render_string
	movq	_TYPE_Nm@GOTPCREL(%rip), %rcx
	testl	%ebx, (%rcx)
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	je	LBB0_6
## %bb.2:
	movq	_name_mask@GOTPCREL(%rip), %rsi
	movl	(%rsi), %ecx
	andl	%ecx, %ebx
	movq	_NAME_FIRST@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, %ebx
	je	LBB0_4
## %bb.3:
	notl	%edx
	andl	%edx, %ecx
	movl	%ecx, (%rsi)
LBB0_4:
	movq	_debug@GOTPCREL(%rip), %rcx
	movq	_names@GOTPCREL(%rip), %r12
	cmpl	$2, (%rcx)
	jl	LBB0_13
## %bb.5:
	movq	(%r14), %rax
	movl	(%rax), %edi
	movl	-48(%rbp), %edx
	movq	-56(%rbp), %rcx
	movslq	%ebx, %r8
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_say
	jmp	LBB0_13
LBB0_6:
	movq	_debug@GOTPCREL(%rip), %rcx
	cmpl	$2, (%rcx)
	movq	_strings@GOTPCREL(%rip), %r12
	jl	LBB0_13
## %bb.7:
	movq	_KEY_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testl	%edx, %edx
	jle	LBB0_13
## %bb.8:
	movq	_mansearch_keynames@GOTPCREL(%rip), %r12
	leaq	L_.str.1(%rip), %r13
	xorl	%r15d, %r15d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%r15
	movslq	%edx, %rcx
	cmpq	%rcx, %r15
	jge	LBB0_12
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	btl	%r15d, %ebx
	jae	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	(%r14), %rax
	movl	(%rax), %edi
	movq	(%r12), %rax
	movl	(%rax,%r15,4), %edx
	movl	-48(%rbp), %ecx
	movq	-56(%rbp), %r8
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_say
	movq	_KEY_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	jmp	LBB0_11
LBB0_12:
	movq	_strings@GOTPCREL(%rip), %r12
LBB0_13:
	movq	-56(%rbp), %rsi
	movq	-48(%rbp), %rax
	addq	%rsi, %rax
	movq	%rax, -72(%rbp)
	leaq	-72(%rbp), %rdx
	movq	%r12, %rdi
	callq	_ohash_qlookupi
	movl	%eax, %r13d
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_ohash_find
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:
	movq	%rax, %r15
	cmpq	%r14, 8(%rax)
	jne	LBB0_17
## %bb.15:
	orl	%ebx, (%r15)
	jmp	LBB0_19
LBB0_16:
	movl	-48(%rbp), %esi
	addl	$25, %esi
	movl	$1, %edi
	callq	_mandoc_calloc
	movq	%rax, %r15
	movl	16(%rax), %edi
	movq	-56(%rbp), %rsi
	movq	-48(%rbp), %rdx
	callq	_memcpy
	movq	%r12, %rdi
	movl	%r13d, %esi
	movq	%r15, %rdx
	callq	_ohash_insert
LBB0_17:
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	movq	%r14, 8(%r15)
	movl	%ebx, (%r15)
	testl	%eax, %eax
	je	LBB0_19
## %bb.18:
	movq	-56(%rbp), %rdi
	callq	_free
LBB0_19:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TYPE_Nm,4,2                    ## @TYPE_Nm
	.comm	_names,4,2                      ## @names
	.comm	_name_mask,4,2                  ## @name_mask
	.comm	_NAME_FIRST,4,2                 ## @NAME_FIRST
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Adding name %*s, bits=0x%llx"

	.comm	_strings,4,2                    ## @strings
	.comm	_KEY_MAX,4,2                    ## @KEY_MAX
L_.str.1:                               ## @.str.1
	.asciz	"Adding key %s=%*s"

	.comm	_mansearch_keynames,8,3         ## @mansearch_keynames
	.no_dead_strip	_putkeys
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function putkeys
_putkeys:                               ; @putkeys
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	stp	x2, x1, [sp, #32]
	cbz	x2, LBB0_15
; %bb.1:
	mov	x19, x3
	mov	x20, x0
	add	x0, sp, #40
	add	x1, sp, #32
	bl	_render_string
	mov	x21, x0
Lloh0:
	adrp	x8, _TYPE_Nm@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TYPE_Nm@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_7
; %bb.2:
Lloh3:
	adrp	x8, _name_mask@GOTPAGE
Lloh4:
	ldr	x8, [x8, _name_mask@GOTPAGEOFF]
	ldr	w9, [x8]
	and	w19, w9, w19
Lloh5:
	adrp	x10, _NAME_FIRST@GOTPAGE
Lloh6:
	ldr	x10, [x10, _NAME_FIRST@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	tst	w19, w10
	b.eq	LBB0_4
; %bb.3:
	bic	w9, w9, w10
	str	w9, [x8]
LBB0_4:
Lloh8:
	adrp	x8, _debug@GOTPAGE
Lloh9:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_6
; %bb.5:
	ldr	x8, [x20]
	ldr	w0, [x8]
	ldr	w2, [sp, #32]
	ldr	x8, [sp, #40]
	sxtw	x9, w19
	stp	x8, x9, [sp]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_say
LBB0_6:
Lloh13:
	adrp	x22, _names@GOTPAGE
Lloh14:
	ldr	x22, [x22, _names@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
Lloh15:
	adrp	x8, _debug@GOTPAGE
Lloh16:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x8]
Lloh18:
	adrp	x24, _KEY_MAX@GOTPAGE
Lloh19:
	ldr	x24, [x24, _KEY_MAX@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w9, #2
	ccmp	w8, #1, #8, ge
	b.ge	LBB0_16
; %bb.8:
Lloh20:
	adrp	x22, _strings@GOTPAGE
Lloh21:
	ldr	x22, [x22, _strings@GOTPAGEOFF]
LBB0_9:
	ldp	x8, x1, [sp, #32]
	add	x8, x1, x8
	str	x8, [sp, #24]
	add	x2, sp, #24
	mov	x0, x22
	bl	_ohash_qlookupi
	mov	x24, x0
	mov	x0, x22
	mov	x1, x24
	bl	_ohash_find
	cbz	x0, LBB0_12
; %bb.10:
	mov	x23, x0
	ldr	x8, [x0, #8]
	cmp	x8, x20
	b.ne	LBB0_13
; %bb.11:
	ldr	w8, [x23]
	orr	w8, w8, w19
	str	w8, [x23]
	b	LBB0_15
LBB0_12:
	ldr	w8, [sp, #32]
	add	w1, w8, #25
	mov	w0, #1
	bl	_mandoc_calloc
	mov	x23, x0
	ldr	w0, [x0, #16]
	ldp	x2, x1, [sp, #32]
	bl	_memcpy
	mov	x0, x22
	mov	x1, x24
	mov	x2, x23
	bl	_ohash_insert
LBB0_13:
	str	x20, [x23, #8]
	str	w19, [x23]
	cbz	w21, LBB0_15
; %bb.14:
	ldr	x0, [sp, #40]
	bl	_free
LBB0_15:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_16:
	mov	x25, #0
Lloh22:
	adrp	x22, _strings@GOTPAGE
Lloh23:
	ldr	x22, [x22, _strings@GOTPAGEOFF]
Lloh24:
	adrp	x26, _mansearch_keynames@GOTPAGE
Lloh25:
	ldr	x26, [x26, _mansearch_keynames@GOTPAGEOFF]
Lloh26:
	adrp	x23, l_.str.1@PAGE
Lloh27:
	add	x23, x23, l_.str.1@PAGEOFF
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	add	x25, x25, #1
	cmp	x25, w8, sxtw
	b.ge	LBB0_9
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	lsr	w9, w19, w25
	tbz	w9, #0, LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x8, [x20]
	ldr	w0, [x8]
	ldr	x8, [x26]
	ldr	w2, [x8, x25, lsl #2]
	ldp	x8, x9, [sp, #32]
	stp	x8, x9, [sp]
	mov	x1, x23
	bl	_say
	ldr	w8, [x24]
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_TYPE_Nm,4,2                    ; @TYPE_Nm
	.comm	_names,4,2                      ; @names
	.comm	_name_mask,4,2                  ; @name_mask
	.comm	_NAME_FIRST,4,2                 ; @NAME_FIRST
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Adding name %*s, bits=0x%llx"

	.comm	_strings,4,2                    ; @strings
	.comm	_KEY_MAX,4,2                    ; @KEY_MAX
l_.str.1:                               ; @.str.1
	.asciz	"Adding key %s=%*s"

	.comm	_mansearch_keynames,8,3         ; @mansearch_keynames
	.no_dead_strip	_putkeys
.subsections_via_symbols
