	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___rec_search                   ## -- Begin function __rec_search
	.p2align	4, 0x90
___rec_search:                          ## @__rec_search
	.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
	movl	%edx, %r12d
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	callq	_BT_CLR
	movq	_P_ROOT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edi
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	xorl	%edx, %edx
	callq	_mpool_get
	testq	%rax, %rax
	je	LBB0_16
## %bb.1:
	movq	%rax, %rbx
	xorl	%r13d, %r13d
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movl	%r12d, -60(%rbp)                ## 4-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	callq	_mpool_put
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	xorl	%edx, %edx
	callq	_mpool_get
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_16
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	_P_RLEAF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_NEXTINDEX
	movq	%rax, %r15
	decq	%r15
	xorl	%ecx, %ecx
	movq	%r13, %rax
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rax, %r13
	movq	%rcx, %r14
	movq	%rbx, %rdi
	movq	%rcx, %rsi
	callq	_GETRINTERNAL
	movq	%rax, %r12
	cmpq	%r14, %r15
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	(%r12), %rax
	addq	%r13, %rax
	leaq	1(%r14), %rcx
	cmpq	-56(%rbp), %rax                 ## 8-byte Folded Reload
	jle	LBB0_5
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	%r14, %rdx
	callq	_BT_PUSH
	movl	8(%r12), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	-60(%rbp), %r12d                ## 4-byte Reload
	cmpl	$128, %r12d
	je	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$129, %r12d
	je	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$130, %r12d
	jne	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_GETRINTERNAL
	decq	(%rax)
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_GETRINTERNAL
	incq	(%rax)
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %edi
	movq	_MPOOL_DIRTY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	jmp	LBB0_14
LBB0_16:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	cmpl	$129, %r12d
	je	LBB0_21
## %bb.17:
	movq	%r15, %rdi
	callq	_BT_POP
	testq	%rax, %rax
	je	LBB0_21
## %bb.18:
	movq	%rax, %r14
	xorl	%eax, %eax
	cmpl	$128, %r12d
	setne	%al
	leaq	(%rax,%rax), %r13
	decq	%r13
	movq	_MPOOL_DIRTY@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	movl	8(%r14), %esi
	xorl	%edx, %edx
	callq	_mpool_get
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	%rax, %rbx
	movq	(%r14), %rsi
	movq	%rax, %rdi
	callq	_GETRINTERNAL
	addq	%r13, (%rax)
	movl	(%r15), %edi
	movl	(%r12), %edx
	movq	%rbx, %rsi
	callq	_mpool_put
	movq	%r15, %rdi
	callq	_BT_POP
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_19
LBB0_21:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
	xorl	%eax, %eax
	jmp	LBB0_22
LBB0_3:
	leaq	8(%r15), %rax
	movq	%rbx, 16(%r15)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	subq	%r13, %rcx
	movq	%rcx, 8(%r15)
LBB0_22:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_P_ROOT,4,2                     ## @P_ROOT
	.comm	_P_RLEAF,4,2                    ## @P_RLEAF
	.comm	_MPOOL_DIRTY,4,2                ## @MPOOL_DIRTY
	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___rec_search                   ; -- Begin function __rec_search
	.p2align	2
___rec_search:                          ; @__rec_search
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_BT_CLR
Lloh0:
	adrp	x8, _P_ROOT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _P_ROOT@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	ldr	w0, [x19]
	mov	x1, x22
	mov	w2, #0
	bl	_mpool_get
	cbz	x0, LBB0_15
; %bb.1:
	mov	x23, x0
	mov	x26, #0
Lloh3:
	adrp	x27, _P_RLEAF@GOTPAGE
Lloh4:
	ldr	x27, [x27, _P_RLEAF@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x19]
	mov	x1, x23
	mov	w2, #0
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	bl	_mpool_put
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x19]
	mov	x1, x22
	mov	w2, #0
	bl	_mpool_get
	mov	x23, x0
	cbz	x0, LBB0_15
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	w8, [x23]
	ldr	w9, [x27]
	tst	w9, w8
	b.ne	LBB0_21
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x23
	bl	_NEXTINDEX
	mov	x8, #0
	sub	x28, x0, #1
	mov	x9, x26
LBB0_7:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x26, x9
	mov	x24, x8
	mov	x0, x23
	mov	x1, x8
	bl	_GETRINTERNAL
	mov	x25, x0
	cmp	x28, x24
	b.eq	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x9, [x25]
	add	x8, x24, #1
	add	x9, x9, x26
	cmp	x9, x21
	b.le	LBB0_7
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x22
	mov	x2, x24
	bl	_BT_PUSH
	ldr	w22, [x25, #8]
	cmp	w20, #128
	b.eq	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	w20, #129
	b.eq	LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	w20, #130
	b.ne	LBB0_4
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x23
	mov	x1, x24
	bl	_GETRINTERNAL
	ldr	x8, [x0]
	sub	x8, x8, #1
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x23
	mov	x1, x24
	bl	_GETRINTERNAL
	ldr	x8, [x0]
	add	x8, x8, #1
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	str	x8, [x0]
	ldr	w0, [x19]
Lloh5:
	adrp	x8, _MPOOL_DIRTY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MPOOL_DIRTY@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x1, x23
	b	LBB0_3
LBB0_15:
Lloh8:
	adrp	x22, _errno@GOTPAGE
Lloh9:
	ldr	x22, [x22, _errno@GOTPAGEOFF]
	ldr	w23, [x22]
	cmp	w20, #129
	b.eq	LBB0_20
; %bb.16:
	mov	x0, x19
	bl	_BT_POP
	cbz	x0, LBB0_20
; %bb.17:
	mov	x21, x0
	cmp	w20, #128
	mov	x8, #-1
	cneg	x24, x8, ne
Lloh10:
	adrp	x25, _MPOOL_DIRTY@GOTPAGE
Lloh11:
	ldr	x25, [x25, _MPOOL_DIRTY@GOTPAGEOFF]
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	ldr	w1, [x21, #8]
	mov	w2, #0
	bl	_mpool_get
	cbz	x0, LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x20, x0
	ldr	x1, [x21]
	bl	_GETRINTERNAL
	ldr	x8, [x0]
	add	x8, x8, x24
	str	x8, [x0]
	ldr	w0, [x19]
	ldr	w2, [x25]
	mov	x1, x20
	bl	_mpool_put
	mov	x0, x19
	bl	_BT_POP
	mov	x21, x0
	cbnz	x0, LBB0_18
LBB0_20:
	mov	x19, #0
	str	w23, [x22]
	b	LBB0_22
LBB0_21:
	sub	x8, x21, x26
	stp	x8, x23, [x19, #8]!
LBB0_22:
	mov	x0, x19
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_P_ROOT,4,2                     ; @P_ROOT
	.comm	_P_RLEAF,4,2                    ; @P_RLEAF
	.comm	_MPOOL_DIRTY,4,2                ; @MPOOL_DIRTY
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
