	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fill_protrefs
_fill_protrefs:                         ## @fill_protrefs
	.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	%rdi, %r15
	movq	16(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.1:
	callq	_fill_protrefs
	movq	16(%r15), %rax
	cmpl	$0, (%rax)
	jle	LBB0_9
## %bb.2:
	movq	8(%rax), %r13
	leaq	-48(%rbp), %r14
	movq	%r13, %r12
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	8(%r12), %esi
	movq	16(%r15), %rax
	movq	%r13, %rdx
	subq	8(%rax), %rdx
	shrq	$5, %rdx
	movq	%r15, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_alloc_protref
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_11
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	$32, %r12
	movq	16(%r15), %rax
	movslq	(%rax), %rcx
	shlq	$5, %rcx
	addq	8(%rax), %rcx
	addq	$32, %r13
	cmpq	%rcx, %r12
	jae	LBB0_9
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r12), %edx
	testl	%edx, %edx
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	24(%r12), %esi
	movq	%r15, %rdi
	movq	%r14, %rcx
	callq	_find_prop_name
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rax), %rcx
	movq	_PROP_DELETED@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_PROP_PROTREF@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rax)
	movq	$0, 16(%rax)
	movq	16(%r15), %rcx
	movq	%r13, %rdx
	subq	8(%rcx), %rdx
	shrq	$5, %rdx
	movl	%edx, 12(%rax)
	jmp	LBB0_8
LBB0_9:
	movq	_S_OK@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_S_OK,4,2                       ## @S_OK
	.comm	_PROP_DELETED,8,3               ## @PROP_DELETED
	.comm	_PROP_PROTREF,8,3               ## @PROP_PROTREF
	.comm	_E_OUTOFMEMORY,4,2              ## @E_OUTOFMEMORY
	.no_dead_strip	_fill_protrefs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fill_protrefs
_fill_protrefs:                         ; @fill_protrefs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
	ldr	x0, [x0, #16]
	cbz	x0, LBB0_10
; %bb.1:
	bl	_fill_protrefs
	ldr	x8, [x19, #16]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_10
; %bb.2:
	ldr	x21, [x8, #8]
Lloh0:
	adrp	x22, _PROP_DELETED@GOTPAGE
Lloh1:
	ldr	x22, [x22, _PROP_DELETED@GOTPAGEOFF]
Lloh2:
	adrp	x23, _PROP_PROTREF@GOTPAGE
Lloh3:
	ldr	x23, [x23, _PROP_PROTREF@GOTPAGEOFF]
	mov	x24, x21
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x24, #8]
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #8]
	sub	x8, x21, x8
	lsr	x2, x8, #5
	mov	x0, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_alloc_protref
	str	x0, [sp, #8]
	cbz	x0, LBB0_13
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x24, x24, #32
	ldr	x8, [x19, #16]
	ldr	x9, [x8, #8]
	ldrsw	x8, [x8]
	add	x8, x9, x8, lsl #5
	add	x21, x21, #32
	cmp	x24, x8
	b.hs	LBB0_10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x24, #8]
	cbz	w2, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x24, #24]
	add	x3, sp, #8
	mov	x0, x19
	bl	_find_prop_name
	mov	x20, x0
	bl	_FAILED
	cbnz	x0, LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x8]
	ldr	x10, [x22]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x23]
	str	x9, [x8]
	str	xzr, [x8, #16]
	ldr	x9, [x19, #16]
	ldr	x9, [x9, #8]
	sub	x9, x21, x9
	lsr	x9, x9, #5
	str	w9, [x8, #12]
	b	LBB0_4
LBB0_10:
Lloh4:
	adrp	x8, _S_OK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
LBB0_11:
	ldr	w20, [x8]
LBB0_12:
	mov	x0, x20
	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
	add	sp, sp, #80
	ret
LBB0_13:
Lloh6:
	adrp	x8, _E_OUTOFMEMORY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _E_OUTOFMEMORY@GOTPAGEOFF]
	b	LBB0_11
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_S_OK,4,2                       ; @S_OK
	.comm	_PROP_DELETED,8,3               ; @PROP_DELETED
	.comm	_PROP_PROTREF,8,3               ; @PROP_PROTREF
	.comm	_E_OUTOFMEMORY,4,2              ; @E_OUTOFMEMORY
	.no_dead_strip	_fill_protrefs
.subsections_via_symbols
