	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_refs_from_bundle
_get_refs_from_bundle:                  ## @get_refs_from_bundle
	.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
	testl	%esi, %esi
	je	LBB0_2
LBB0_9:
	xorl	%r14d, %r14d
	jmp	LBB0_10
LBB0_2:
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	movl	$1, (%r15)
	movq	8(%r15), %rdi
	testq	%rdi, %rdi
	jle	LBB0_4
## %bb.3:
	callq	_close
LBB0_4:
	movl	(%rbx), %edi
	leaq	16(%r15), %r14
	movq	%r14, %rsi
	callq	_read_bundle_header
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	js	LBB0_8
## %bb.5:
	cmpl	$0, (%r14)
	jg	LBB0_6
	jmp	LBB0_9
LBB0_8:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	(%rbx), %esi
	movl	%eax, %edi
	callq	_die
	cmpl	$0, (%r14)
	jle	LBB0_9
LBB0_6:
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rbx
	movl	4(%rbx,%r12), %edi
	addq	%r12, %rbx
	callq	_alloc_ref
	movq	%rax, %r14
	leaq	8(%rax), %rdi
	movq	%rbx, %rsi
	callq	_oidcpy
	movq	%r15, (%r14)
	incq	%r13
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movslq	16(%rax), %rax
	addq	$8, %r12
	movq	%r14, %r15
	cmpq	%rax, %r13
	jl	LBB0_7
LBB0_10:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not read bundle '%s'"

	.no_dead_strip	_get_refs_from_bundle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_refs_from_bundle
_get_refs_from_bundle:                  ; @get_refs_from_bundle
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cbz	w1, LBB0_2
LBB0_1:
	mov	x19, #0
	b	LBB0_9
LBB0_2:
	mov	x19, x0
	ldr	x21, [x0, #8]
	mov	w8, #1
	str	w8, [x21]
	ldr	x0, [x21, #8]
	cmp	x0, #1
	b.lt	LBB0_4
; %bb.3:
	bl	_close
LBB0_4:
	ldr	w0, [x19]
	add	x20, x21, #16
	mov	x1, x20
	bl	_read_bundle_header
	str	x0, [x21, #8]
	tbz	x0, #63, LBB0_6
; %bb.5:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	ldr	w1, [x19]
	bl	_die
LBB0_6:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_1
; %bb.7:
	mov	x22, #0
	mov	x24, #0
	mov	w23, #4
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #24]
	add	x20, x8, x23
	ldr	w0, [x20], #-4
	bl	_alloc_ref
	mov	x19, x0
	add	x0, x0, #8
	mov	x1, x20
	bl	_oidcpy
	str	x24, [x19]
	add	x22, x22, #1
	ldrsw	x8, [x21, #16]
	add	x23, x23, #8
	mov	x24, x19
	cmp	x22, x8
	b.lt	LBB0_8
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not read bundle '%s'"

	.no_dead_strip	_get_refs_from_bundle
.subsections_via_symbols
