	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xdl_cleanup_records
_xdl_cleanup_records:                   ## @xdl_cleanup_records
	.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
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r13
	movl	(%rsi), %eax
	movl	(%rdx), %ecx
	leal	(%rax,%rcx), %edi
	addl	$2, %edi
	callq	_xdl_malloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rdi
	movl	(%r14), %eax
	movl	(%r15), %ecx
	leal	(%rax,%rcx), %edx
	addl	$2, %edx
	xorl	%esi, %esi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_memset
	movslq	(%r14), %r12
	movl	%r12d, %edi
	callq	_xdl_bogosqrt
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	_XDL_MAX_EQLIMIT@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r8
	cmpq	%r8, %rax
	cmovlq	%rax, %r8
	movq	8(%r14), %rax
	cmpq	16(%r14), %rax
	jle	LBB0_3
LBB0_9:
	addq	%rcx, %r12
	incq	%r12
	movl	(%r15), %edi
	callq	_xdl_bogosqrt
	movq	_XDL_MAX_EQLIMIT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	cmpq	%rdx, %rax
	cmovlq	%rax, %rdx
	movq	8(%r15), %rax
	movq	16(%r15), %rcx
	cmpq	%rcx, %rax
	jle	LBB0_10
LBB0_16:
	movq	8(%r14), %rbx
	movq	16(%r14), %rax
	cmpq	%rax, %rbx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jle	LBB0_18
## %bb.17:
	xorl	%r13d, %r13d
	jmp	LBB0_26
LBB0_1:
	movl	$-1, %eax
	jmp	LBB0_36
LBB0_3:
	movq	56(%r14), %rdx
	decq	%rax
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	xorl	%esi, %esi
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movb	%sil, 1(%rcx,%rax)
	incq	%rax
	cmpq	16(%r14), %rax
	jge	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rsi
	movq	8(%rdx,%rax,8), %rdi
	movq	(%rdi), %rdi
	movq	(%rsi,%rdi,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rsi), %rsi
	cmpq	%r8, %rsi
	setl	%bl
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movb	$2, %sil
	subb	%bl, %sil
	jmp	LBB0_8
LBB0_10:
	movq	56(%r15), %rsi
	decq	%rax
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	xorl	%ecx, %ecx
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	movb	%cl, 1(%r12,%rax)
	movq	16(%r15), %rcx
	incq	%rax
	cmpq	%rcx, %rax
	jge	LBB0_16
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rcx
	movq	8(%rsi,%rax,8), %rdi
	movq	(%rdi), %rdi
	movq	(%rcx,%rdi,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	8(%rcx), %rcx
	cmpq	%rdx, %rcx
	setl	%bl
	testq	%rcx, %rcx
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movb	$2, %cl
	subb	%bl, %cl
	jmp	LBB0_15
LBB0_18:
	movq	56(%r14), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_19 Depth=1
	movq	40(%r14), %rax
	movl	$1, (%rax,%rbx,4)
LBB0_24:                                ##   in Loop: Header=BB0_19 Depth=1
	leaq	1(%rbx), %rcx
	movq	16(%r14), %rax
	cmpq	%rax, %rbx
	movq	%rcx, %rbx
	jge	LBB0_25
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rdi,%rbx), %ecx
	cmpb	$1, %cl
	je	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	cmpb	$2, %cl
	jne	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	8(%r14), %rdx
	movq	%rbx, %rsi
	movq	%rax, %rcx
	callq	_xdl_clean_mmatch
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	testl	%eax, %eax
	jne	LBB0_23
LBB0_22:                                ##   in Loop: Header=BB0_19 Depth=1
	movq	24(%r14), %rax
	movq	%rbx, (%rax,%r13,8)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%rbx,8), %rax
	movq	(%rax), %rax
	movq	32(%r14), %rcx
	movq	%rax, (%rcx,%r13,8)
	incq	%r13
	jmp	LBB0_24
LBB0_25:
	movq	16(%r15), %rcx
LBB0_26:
	movq	%r13, 48(%r14)
	movq	8(%r15), %rbx
	cmpq	%rcx, %rbx
	jle	LBB0_28
## %bb.27:
	xorl	%r14d, %r14d
LBB0_35:
	movq	%r14, 48(%r15)
	callq	_xdl_free
	xorl	%eax, %eax
LBB0_36:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_28:
	movq	56(%r15), %r13
	xorl	%r14d, %r14d
	jmp	LBB0_29
	.p2align	4, 0x90
LBB0_33:                                ##   in Loop: Header=BB0_29 Depth=1
	movq	40(%r15), %rax
	movl	$1, (%rax,%rbx,4)
LBB0_34:                                ##   in Loop: Header=BB0_29 Depth=1
	leaq	1(%rbx), %rax
	movq	16(%r15), %rcx
	cmpq	%rcx, %rbx
	movq	%rax, %rbx
	jge	LBB0_35
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%r12,%rbx), %eax
	cmpb	$1, %al
	je	LBB0_32
## %bb.30:                              ##   in Loop: Header=BB0_29 Depth=1
	cmpb	$2, %al
	jne	LBB0_33
## %bb.31:                              ##   in Loop: Header=BB0_29 Depth=1
	movq	8(%r15), %rdx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_xdl_clean_mmatch
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	testl	%eax, %eax
	jne	LBB0_33
LBB0_32:                                ##   in Loop: Header=BB0_29 Depth=1
	movq	24(%r15), %rax
	movq	%rbx, (%rax,%r14,8)
	movq	(%r13,%rbx,8), %rax
	movq	(%rax), %rax
	movq	32(%r15), %rcx
	movq	%rax, (%rcx,%r14,8)
	incq	%r14
	jmp	LBB0_34
	.cfi_endproc
                                        ## -- End function
	.comm	_XDL_MAX_EQLIMIT,8,3            ## @XDL_MAX_EQLIMIT
	.no_dead_strip	_xdl_cleanup_records
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xdl_cleanup_records
_xdl_cleanup_records:                   ; @xdl_cleanup_records
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x23, x0
	ldr	w8, [x1]
	ldr	w9, [x2]
	add	w8, w8, w9
	add	w0, w8, #2
	bl	_xdl_malloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	ldr	w8, [x21]
	ldr	w9, [x19]
	add	w8, w8, w9
	add	w2, w8, #2
	mov	w1, #0
	bl	_memset
	ldrsw	x0, [x21]
	add	x22, x20, x0
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_xdl_bogosqrt
Lloh0:
	adrp	x24, _XDL_MAX_EQLIMIT@GOTPAGE
Lloh1:
	ldr	x24, [x24, _XDL_MAX_EQLIMIT@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x0, x8
	csel	x8, x0, x8, lt
	ldp	x9, x10, [x21, #8]
	cmp	x9, x10
	b.le	LBB0_6
LBB0_2:
	add	x22, x22, #1
	ldr	w0, [x19]
	bl	_xdl_bogosqrt
	ldr	x8, [x24]
	cmp	x0, x8
	csel	x8, x0, x8, lt
	ldp	x9, x3, [x19, #8]
	cmp	x9, x3
	b.le	LBB0_11
LBB0_3:
	ldp	x23, x8, [x21, #8]
	cmp	x23, x8
	b.le	LBB0_16
; %bb.4:
	mov	x24, #0
	b	LBB0_24
LBB0_5:
	mov	w0, #-1
	b	LBB0_27
LBB0_6:
	ldr	x10, [x21, #56]
	mov	w11, #1
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	w12, #0
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	strb	w12, [x20, x9]
	add	x12, x9, #1
	ldr	x13, [x21, #16]
	cmp	x9, x13
	mov	x9, x12
	b.ge	LBB0_2
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x23]
	ldr	x13, [x10, x9, lsl #3]
	ldr	x13, [x13]
	ldr	x12, [x12, x13, lsl #3]
	cbz	x12, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x13, [x12]
	cmp	x13, x8
	cinc	w12, w11, ge
	cbnz	x13, LBB0_8
	b	LBB0_7
LBB0_11:
	ldr	x10, [x19, #56]
	mov	w11, #1
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	w12, #0
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	strb	w12, [x22, x9]
	add	x12, x9, #1
	ldr	x3, [x19, #16]
	cmp	x9, x3
	mov	x9, x12
	b.ge	LBB0_3
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x23]
	ldr	x13, [x10, x9, lsl #3]
	ldr	x13, [x13]
	ldr	x12, [x12, x13, lsl #3]
	cbz	x12, LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x13, [x12, #8]
	cmp	x13, x8
	cinc	w12, w11, ge
	cbnz	x13, LBB0_13
	b	LBB0_12
LBB0_16:
	mov	x24, #0
	ldr	x25, [x21, #56]
	mov	w26, #1
	b	LBB0_19
LBB0_17:                                ;   in Loop: Header=BB0_19 Depth=1
	ldr	x8, [x21, #40]
	str	w26, [x8, x23, lsl #2]
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	add	x9, x23, #1
	ldr	x8, [x21, #16]
	cmp	x23, x8
	mov	x23, x9
	b.ge	LBB0_23
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w9, [x20, x23]
	cmp	w9, #1
	b.eq	LBB0_22
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	cmp	w9, #2
	b.ne	LBB0_17
; %bb.21:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	x2, [x21, #8]
	mov	x0, x20
	mov	x1, x23
	mov	x3, x8
	bl	_xdl_clean_mmatch
	cbnz	w0, LBB0_17
LBB0_22:                                ;   in Loop: Header=BB0_19 Depth=1
	lsl	x8, x24, #3
	ldp	x9, x10, [x21, #24]
	str	x23, [x9, x8]
	ldr	x9, [x25, x23, lsl #3]
	ldr	x9, [x9]
	str	x9, [x10, x8]
	add	x24, x24, #1
	b	LBB0_18
LBB0_23:
	ldr	x3, [x19, #16]
LBB0_24:
	str	x24, [x21, #48]
	ldr	x21, [x19, #8]
	cmp	x21, x3
	b.le	LBB0_28
; %bb.25:
	mov	x23, #0
LBB0_26:
	str	x23, [x19, #48]
	mov	x0, x20
	bl	_xdl_free
	mov	w0, #0
LBB0_27:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_28:
	mov	x23, #0
	ldr	x24, [x19, #56]
	mov	w25, #1
	b	LBB0_31
LBB0_29:                                ;   in Loop: Header=BB0_31 Depth=1
	ldr	x8, [x19, #40]
	str	w25, [x8, x21, lsl #2]
LBB0_30:                                ;   in Loop: Header=BB0_31 Depth=1
	add	x8, x21, #1
	ldr	x3, [x19, #16]
	cmp	x21, x3
	mov	x21, x8
	b.ge	LBB0_26
LBB0_31:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x22, x21]
	cmp	w8, #1
	b.eq	LBB0_34
; %bb.32:                               ;   in Loop: Header=BB0_31 Depth=1
	cmp	w8, #2
	b.ne	LBB0_29
; %bb.33:                               ;   in Loop: Header=BB0_31 Depth=1
	ldr	x2, [x19, #8]
	mov	x0, x22
	mov	x1, x21
	bl	_xdl_clean_mmatch
	cbnz	w0, LBB0_29
LBB0_34:                                ;   in Loop: Header=BB0_31 Depth=1
	lsl	x8, x23, #3
	ldp	x9, x10, [x19, #24]
	str	x21, [x9, x8]
	ldr	x9, [x24, x21, lsl #3]
	ldr	x9, [x9]
	str	x9, [x10, x8]
	add	x23, x23, #1
	b	LBB0_30
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_XDL_MAX_EQLIMIT,8,3            ; @XDL_MAX_EQLIMIT
	.no_dead_strip	_xdl_cleanup_records
.subsections_via_symbols
