	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hsearch_r                      ## -- Begin function hsearch_r
	.p2align	4, 0x90
_hsearch_r:                             ## @hsearch_r
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	(%rcx), %rbx
	movl	12(%rbx), %edi
	movq	%r15, %rsi
	callq	_hsearch_hash
	movq	(%rbx), %r12
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	16(%rbx), %r14
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	andq	%r12, %rax
	leaq	(%r14,%rax,8), %r13
	movq	(%r14,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movl	$1, %r15d
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	addq	%r15, %rbx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r12
	movq	16(%rax), %r14
	movq	%r12, %rax
	andq	%rbx, %rax
	leaq	(%r14,%rax,8), %r13
	movq	(%r14,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_strcmp
	incq	%r15
	testq	%rax, %rax
	jne	LBB0_4
LBB0_6:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%r13, (%rax)
	jmp	LBB0_21
LBB0_1:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_8
LBB0_7:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	-56(%rbp), %r15                 ## 8-byte Reload
LBB0_8:
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	_FIND@GOTPCREL(%rip), %rax
	cmpq	%rcx, (%rax)
	jne	LBB0_10
## %bb.9:
	movq	_ESRCH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	jmp	LBB0_22
LBB0_10:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movslq	8(%rax), %rax
	addq	%rax, %rax
	cmpq	%rax, %r12
	jbe	LBB0_12
## %bb.11:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_20
LBB0_12:
	leaq	(%r12,%r12), %r13
	addq	$2, %r13
	movq	%r13, %rdi
	movl	$8, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	incq	%r12
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 16(%rcx)
	decq	%r13
	movq	%r13, (%rcx)
	testq	%r12, %r12
	je	LBB0_19
## %bb.15:
	movq	%rcx, %r13
	xorl	%ebx, %ebx
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=1
	incq	%rbx
	cmpq	%rbx, %r12
	je	LBB0_19
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14,%rbx,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	12(%r13), %edi
	callq	_hsearch_hash
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_hsearch_lookup_free
	movq	(%r14,%rbx,8), %rcx
	movq	%rcx, (%rax)
	jmp	LBB0_18
LBB0_19:
	movq	%r14, %rdi
	callq	_free
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r14
	movq	%r14, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_hsearch_lookup_free
	movq	%rax, %r13
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_20:
	movq	%r15, (%r13)
	incl	8(%r14)
	movq	%r13, (%rbx)
LBB0_21:
	movl	$1, %eax
LBB0_22:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	xorl	%eax, %eax
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_FIND,8,3                       ## @FIND
	.comm	_ESRCH,4,2                      ## @ESRCH
	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hsearch_r                      ; -- Begin function hsearch_r
	.p2align	2
_hsearch_r:                             ; @hsearch_r
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x3
	mov	x19, x2
	mov	x25, x1
	mov	x20, x0
	ldr	x21, [x3]
	ldr	w0, [x21, #12]
	mov	x1, x20
	bl	_hsearch_hash
	mov	x23, x0
	ldr	x24, [x21, #16]
	ldr	x8, [x21]
	and	x9, x8, x0
	add	x26, x24, x9, lsl #3
	ldr	x0, [x26]
	cbz	x0, LBB0_5
; %bb.1:
	mov	x1, x20
	bl	_strcmp
	cbz	x0, LBB0_16
; %bb.2:
	mov	w27, #1
	mov	x28, x23
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x24, [x21, #16]
	ldr	x8, [x21]
	add	x28, x27, x28
	and	x9, x8, x28
	add	x26, x24, x9, lsl #3
	ldr	x0, [x26]
	cbz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x1, x20
	bl	_strcmp
	add	x27, x27, #1
	cbnz	x0, LBB0_3
	b	LBB0_16
LBB0_5:
Lloh0:
	adrp	x9, _FIND@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FIND@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x9, x25
	b.ne	LBB0_7
; %bb.6:
	mov	w0, #0
Lloh3:
	adrp	x8, _ESRCH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ESRCH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _errno@GOTPAGE
Lloh7:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh8:
	str	w8, [x9]
	b	LBB0_17
LBB0_7:
	ldrsw	x9, [x21, #8]
	cmp	x8, x9, lsl #1
	b.hi	LBB0_15
; %bb.8:
	add	x26, x8, #1
	lsl	x25, x26, #1
	mov	x0, x25
	mov	w1, #8
	bl	_calloc
	cbz	x0, LBB0_17
; %bb.9:
	str	x0, [x21, #16]
	sub	x8, x25, #1
	str	x8, [x21]
	cbz	x26, LBB0_14
; %bb.10:
	mov	x25, x24
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x25, x25, #8
	subs	x26, x26, #1
	b.eq	LBB0_14
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x25]
	cbz	x1, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w0, [x21, #12]
	bl	_hsearch_hash
	mov	x1, x0
	mov	x0, x21
	bl	_hsearch_lookup_free
	ldr	x8, [x25]
	str	x8, [x0]
	b	LBB0_11
LBB0_14:
	mov	x0, x24
	bl	_free
	ldr	x21, [x22]
	mov	x0, x21
	mov	x1, x23
	bl	_hsearch_lookup_free
	mov	x26, x0
LBB0_15:
	str	x20, [x26]
	ldr	w8, [x21, #8]
	add	w8, w8, #1
	str	w8, [x21, #8]
LBB0_16:
	str	x26, [x19]
	mov	w0, #1
LBB0_17:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_FIND,8,3                       ; @FIND
	.comm	_ESRCH,4,2                      ; @ESRCH
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
