	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_df_reorganize_refs             ## -- Begin function df_reorganize_refs
	.p2align	4, 0x90
_df_reorganize_refs:                    ## @df_reorganize_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, 4(%rdi)
	jne	LBB0_12
## %bb.1:
	movq	%rdi, %r15
	movl	(%rdi), %r14d
	movl	12(%rdi), %eax
	cmpl	%eax, 8(%rdi)
	jge	LBB0_3
## %bb.2:
	leal	3(%rax), %esi
	testl	%eax, %eax
	cmovnsl	%eax, %esi
	sarl	$2, %esi
	addl	%eax, %esi
	movq	%r15, %rdi
	callq	_df_grow_ref_info
LBB0_3:
	testq	%r14, %r14
	je	LBB0_11
## %bb.4:
	movq	32(%r15), %rax
	xorl	%ecx, %ecx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%rcx
	cmpq	%rcx, %r14
	je	LBB0_11
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%rcx,8), %rdx
	testq	%rdx, %rdx
	je	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%rdx), %r12
	movl	$0, (%rdx)
	testq	%r12, %r12
	jne	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$0, 4(%rdx)
	jmp	LBB0_10
LBB0_11:
	movabsq	$4294967296, %rax               ## imm = 0x100000000
	movq	%rax, 12(%r15)
	movl	$1, 4(%r15)
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %rax
	movl	%edi, %ecx
	movq	%r12, (%rax,%rcx,8)
	leal	1(%rdi), %ebx
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_DF_REF_NEXT_REG
	movl	%ebx, %edi
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function df_reorganize_refs
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_df_reorganize_refs
	.p2align	2
_df_reorganize_refs:                    ; @df_reorganize_refs
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	w8, [x0, #4]
	cbnz	w8, LBB0_10
; %bb.1:
	mov	x19, x0
	ldr	w20, [x0]
	ldp	w9, w8, [x0, #8]
	cmp	w9, w8
	b.ge	LBB0_3
; %bb.2:
	add	w9, w8, #3
	cmp	w8, #0
	csel	w9, w9, w8, lt
	add	w1, w8, w9, asr #2
	mov	x0, x19
	bl	_df_grow_ref_info
LBB0_3:
	cbz	w20, LBB0_9
; %bb.4:
	ldr	x8, [x19, #32]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x8, x8, #8
	subs	x20, x20, #1
	b.eq	LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x8]
	cbz	x9, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x21, [x9, #8]
	str	wzr, [x9]
	cbnz	x21, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	str	wzr, [x9, #4]
	b	LBB0_5
LBB0_9:
	mov	w8, #1
	str	w8, [x19, #4]
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [x19, #12]
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_11:
	mov	w0, #0
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	str	x21, [x8, w0, uxtw #3]
	add	w20, w0, #1
	bl	_DF_REF_NEXT_REG
	mov	x0, x20
	b	LBB0_12
	.loh AdrpLdr	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
