	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function remove_invalid_refs
_remove_invalid_refs:                   ## @remove_invalid_refs
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_HASH_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	LBB0_9
## %bb.1:
	movl	%edi, %r14d
	leal	1(%r14), %r15d
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_HASH_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	movl	%eax, %ecx
	cmpq	%rcx, %r12
	jae	LBB0_9
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movq	_table@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%r12,8), %r13
	testq	%r13, %r13
	jne	LBB0_3
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=2
	testq	%r13, %r13
	je	LBB0_7
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r13, %rbx
	movq	8(%r13), %r13
	movl	(%rbx), %edi
	callq	_REG_P
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	movl	(%rbx), %edx
	movl	%r14d, %edi
	movl	%r15d, %esi
	xorl	%ecx, %ecx
	callq	_refers_to_regno_p
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_remove_from_table
	jmp	LBB0_6
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HASH_SIZE,4,2                  ## @HASH_SIZE
	.comm	_table,8,3                      ## @table
	.no_dead_strip	_remove_invalid_refs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function remove_invalid_refs
_remove_invalid_refs:                   ; @remove_invalid_refs
	.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
Lloh0:
	adrp	x23, _HASH_SIZE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _HASH_SIZE@GOTPAGEOFF]
	ldr	w8, [x23]
	cbz	w8, LBB0_9
; %bb.1:
	mov	x19, x0
	mov	x20, #0
	add	w21, w0, #1
Lloh2:
	adrp	x24, _table@GOTPAGE
Lloh3:
	ldr	x24, [x24, _table@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x23]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x20, #1
	cmp	x20, w8, uxtw
	b.hs	LBB0_9
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	x9, [x24]
	ldr	x25, [x9, x20, lsl #3]
	cbnz	x25, LBB0_6
	b	LBB0_3
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	cbz	x25, LBB0_2
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x22, x25
	ldr	x25, [x25, #8]
	ldr	w0, [x22]
	bl	_REG_P
	cbnz	w0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	w2, [x22]
	mov	x0, x19
	mov	x1, x21
	mov	x3, #0
	bl	_refers_to_regno_p
	cbz	x0, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x22
	mov	x1, x20
	bl	_remove_from_table
	b	LBB0_5
LBB0_9:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_HASH_SIZE,4,2                  ; @HASH_SIZE
	.comm	_table,8,3                      ; @table
	.no_dead_strip	_remove_invalid_refs
.subsections_via_symbols
