	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function insert_record
_insert_record:                         ## @insert_record
	.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, %r13
	xorl	%eax, %eax
	cmpl	$1, %ecx
	setne	%al
	movq	40(%rdx), %rdx
	movq	(%rdx,%rax,8), %rax
	movslq	%esi, %r11
	movq	-8(%rax,%r11,8), %r14
	movl	(%r14), %r10d
	leal	(%r10,%r10), %eax
	movl	(%r13), %r9d
	cltd
	idivl	%r9d
	movl	%edx, %ebx
	movq	16(%r13), %rax
	movslq	%edx, %r12
	leaq	(%r12,%r12,4), %r8
	movl	(%rax,%r8,8), %edx
	testl	%edx, %edx
	je	LBB0_1
## %bb.8:
	movq	%r11, -56(%rbp)                 ## 8-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%r12,%r12,4), %r12
	cmpl	%r10d, 4(%rax,%r12,8)
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	40(%r13), %rax
	movq	48(%r13), %r8
	movq	(%rax), %rax
	movslq	%edx, %rcx
	movq	-8(%rax,%rcx,8), %rax
	movl	4(%r14), %edi
	movl	8(%r14), %esi
	movl	4(%rax), %edx
	movl	8(%rax), %ecx
	movl	(%r8), %r8d
	callq	_xdl_recmatch
	testl	%eax, %eax
	jne	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	(%r13), %r9d
	movq	16(%r13), %rax
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	incl	%ebx
	cmpl	%r9d, %ebx
	cmovgel	%r15d, %ebx
	movslq	%ebx, %r12
	leaq	(%r12,%r12,4), %rsi
	movl	(%rax,%rsi,8), %edx
	testl	%edx, %edx
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	(%r14), %r10d
	jmp	LBB0_9
LBB0_13:
	leaq	(%rax,%rsi,8), %rdx
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	-56(%rbp), %r11                 ## 8-byte Reload
	cmpl	$2, %ecx
	jne	LBB0_3
	jmp	LBB0_21
LBB0_1:
	leaq	(%rax,%r8,8), %rdx
	cmpl	$2, %ecx
	je	LBB0_21
LBB0_3:
	decq	%r11
	movl	%esi, (%rdx)
	movl	(%r14), %ecx
	leaq	(,%r12,8), %rdx
	leaq	(%rdx,%rdx,4), %rbx
	movl	%ecx, 4(%rax,%rbx)
	movq	40(%r13), %rax
	movq	(%rax), %rax
	movq	(%rax,%r11,8), %rax
	movl	4(%rax), %esi
	callq	_is_anchor
	movq	16(%r13), %rcx
	movl	%eax, 32(%rcx,%rbx)
	cmpq	$0, 32(%r13)
	leaq	(%r12,%r12,4), %rax
	jne	LBB0_5
## %bb.4:
	leaq	(%rcx,%rax,8), %rdx
	movq	%rdx, 32(%r13)
LBB0_5:
	movq	24(%r13), %rdx
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.6:
	leaq	(%rcx,%rax,8), %rsi
	movq	%rsi, 24(%rdx)
	movq	%rdx, 16(%rcx,%rax,8)
LBB0_7:
	leaq	(%rcx,%rax,8), %rax
	movq	%rax, 24(%r13)
	incl	8(%r13)
	jmp	LBB0_21
LBB0_15:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	$2, %ecx
	jne	LBB0_17
## %bb.16:
	movl	$1, 4(%r13)
LBB0_17:
	movq	16(%r13), %rax
	cmpl	$1, %ecx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	je	LBB0_19
## %bb.18:
	cmpl	$0, 8(%rax,%r12,8)
	je	LBB0_20
LBB0_19:
	movq	_NON_UNIQUE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax,%r12,8)
	jmp	LBB0_21
LBB0_20:
	leaq	(%rax,%r12,8), %rax
	addq	$8, %rax
	movl	%ecx, (%rax)
LBB0_21:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NON_UNIQUE,4,2                 ## @NON_UNIQUE
	.no_dead_strip	_insert_record
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function insert_record
_insert_record:                         ; @insert_record
	.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	x20, x1
	mov	x21, x0
	cmp	w3, #1
	cset	w8, ne
	ldr	x9, [x2, #40]
	ldr	x8, [x9, w8, uxtw #3]
	sub	w25, w1, #1
	ldr	x24, [x8, w25, sxtw #3]
	ldr	w11, [x24]
	lsl	w8, w11, #1
	ldr	w9, [x2]
	sdiv	w10, w8, w9
	msub	w27, w10, w9, w8
	ldr	x8, [x2, #16]
	sxtw	x23, w27
	mov	w26, #40
	smaddl	x12, w27, w26, x8
	ldr	w10, [x12]
	cbz	w10, LBB0_7
; %bb.1:
                                        ; kill: def $w27 killed $w27 killed $x27 def $x27
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	madd	x12, x23, x26, x8
	ldr	w12, [x12, #4]
	cmp	w12, w11
	b.ne	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldp	x8, x9, [x19, #40]
	ldr	x8, [x8]
	sub	w10, w10, #1
	ldr	x8, [x8, w10, sxtw #3]
	ldp	w0, w1, [x24, #4]
	ldp	w2, w3, [x8, #4]
	ldr	w4, [x9]
	bl	_xdl_recmatch
	cbnz	w0, LBB0_13
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w9, [x19]
	ldr	x8, [x19, #16]
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	w10, w27, #1
	cmp	w10, w9
	csinc	w27, wzr, w27, ge
	sxtw	x23, w27
	smaddl	x12, w27, w26, x8
	ldr	w10, [x12]
	cbz	w10, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w11, [x24]
	b	LBB0_2
LBB0_7:
	cmp	w22, #2
	b.eq	LBB0_19
; %bb.8:
	sxtw	x9, w25
	str	w20, [x12]
	ldr	w10, [x24]
	add	x11, x23, x23, lsl #2
	lsl	x20, x11, #3
	add	x8, x8, x20
	str	w10, [x8, #4]
	ldr	x8, [x19, #40]
	ldr	x8, [x8]
	ldr	x8, [x8, x9, lsl #3]
	ldr	w1, [x8, #4]
	mov	x0, x21
	bl	_is_anchor
	ldr	x8, [x19, #16]
	add	x9, x8, x20
	str	w0, [x9, #32]
	ldr	x9, [x19, #32]
	cbnz	x9, LBB0_10
; %bb.9:
	mov	w9, #40
	madd	x9, x23, x9, x8
	str	x9, [x19, #32]
LBB0_10:
	ldr	x9, [x19, #24]
	cbz	x9, LBB0_12
; %bb.11:
	mov	w10, #40
	madd	x10, x23, x10, x8
	str	x10, [x9, #24]
	str	x9, [x10, #16]
LBB0_12:
	mov	w9, #40
	madd	x8, x23, x9, x8
	str	x8, [x19, #24]
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
	b	LBB0_19
LBB0_13:
	cmp	w22, #2
	b.ne	LBB0_15
; %bb.14:
	mov	w8, #1
	str	w8, [x19, #4]
LBB0_15:
	ldr	x8, [x19, #16]
	cmp	w22, #1
	b.eq	LBB0_17
; %bb.16:
	mov	w9, #40
	madd	x9, x23, x9, x8
	ldr	w10, [x9, #8]!
	cbz	w10, LBB0_18
LBB0_17:
Lloh0:
	adrp	x9, _NON_UNIQUE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NON_UNIQUE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	mov	w10, #40
	madd	x8, x23, x10, x8
	str	w9, [x8, #8]
	b	LBB0_19
LBB0_18:
	str	w20, [x9]
LBB0_19:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_NON_UNIQUE,4,2                 ; @NON_UNIQUE
	.no_dead_strip	_insert_record
.subsections_via_symbols
