	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_bundle_header
_parse_bundle_header:                   ## @parse_bundle_header
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movl	%edi, %ebx
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movaps	%xmm0, -64(%rbp)
	leaq	-64(%rbp), %rdi
	movl	%ebx, %esi
	movl	$10, %edx
	callq	_strbuf_getwholeline_fd
	testq	%rax, %rax
	jne	LBB0_15
## %bb.1:
	movq	-64(%rbp), %rdi
	movq	_bundle_signature@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_2
LBB0_15:
	testq	%r14, %r14
	je	LBB0_17
## %bb.16:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_error
LBB0_17:
	movl	%ebx, %edi
	callq	_close
	movl	$-1, %ebx
LBB0_22:
	leaq	-64(%rbp), %rdi
	callq	_strbuf_release
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	-64(%rbp), %rdi
	movl	%ebx, %esi
	movl	$10, %edx
	callq	_strbuf_getwholeline_fd
	testq	%rax, %rax
	jne	LBB0_22
## %bb.3:
	cmpq	$0, -56(%rbp)
	je	LBB0_22
## %bb.4:
	leaq	4(%r15), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	leaq	-64(%rbp), %r13
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rax
	movzbl	(%rax), %r12d
	cmpb	$10, %r12b
	je	LBB0_22
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpb	$45, %r12b
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_strbuf_remove
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rdi
	callq	_strbuf_rtrim
	movq	-64(%rbp), %rdi
	leaq	-72(%rbp), %rsi
	leaq	-80(%rbp), %rdx
	callq	_parse_oid_hex
	testq	%rax, %rax
	jne	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-80(%rbp), %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movsbl	%al, %edi
	callq	_isspace
	testl	%eax, %eax
	je	LBB0_13
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpb	$45, %r12b
	jne	LBB0_12
## %bb.19:                              ##   in Loop: Header=BB0_5 Depth=1
	leaq	-72(%rbp), %rdi
	leaq	L_.str.3(%rip), %rsi
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-80(%rbp), %rsi
	cmpb	$0, (%rsi)
	je	LBB0_13
## %bb.18:                              ##   in Loop: Header=BB0_5 Depth=1
	incq	%rsi
	leaq	-72(%rbp), %rdi
	movq	%r15, %rdx
LBB0_20:                                ##   in Loop: Header=BB0_5 Depth=1
	callq	_add_to_ref_list
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	$10, %edx
	callq	_strbuf_getwholeline_fd
	testq	%rax, %rax
	jne	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, -56(%rbp)
	jne	LBB0_5
	jmp	LBB0_22
LBB0_13:
	testq	%r14, %r14
	je	LBB0_17
## %bb.14:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	cmpb	$45, %r12b
	leaq	L_.str.2(%rip), %rcx
	leaq	L_.str.3(%rip), %rsi
	cmoveq	%rcx, %rsi
	movq	-64(%rbp), %rdx
	movl	-56(%rbp), %ecx
	movl	%eax, %edi
	xorl	%eax, %eax
	callq	_error
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,16,3               ## @STRBUF_INIT
	.comm	_bundle_signature,4,2           ## @bundle_signature
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"'%s' does not look like a v2 bundle file"

L_.str.1:                               ## @.str.1
	.asciz	"unrecognized header: %s%s (%d)"

L_.str.2:                               ## @.str.2
	.asciz	"-"

L_.str.3:                               ## @.str.3
	.space	1

	.no_dead_strip	_parse_bundle_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_bundle_header
_parse_bundle_header:                   ; @parse_bundle_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	q0, [x8]
	str	q0, [sp, #32]
	add	x0, sp, #32
	mov	x1, x19
	mov	w2, #10
	bl	_strbuf_getwholeline_fd
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	x0, [sp, #32]
Lloh3:
	adrp	x8, _bundle_signature@GOTPAGE
Lloh4:
	ldr	x8, [x8, _bundle_signature@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_strcmp
	cbz	x0, LBB0_7
LBB0_2:
	cbz	x20, LBB0_5
; %bb.3:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x1, x20
LBB0_4:
	bl	_error
LBB0_5:
	mov	x0, x19
	bl	_close
	mov	w19, #-1
LBB0_6:
	add	x0, sp, #32
	bl	_strbuf_release
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_7:
	add	x0, sp, #32
	mov	x1, x19
	mov	w2, #10
	bl	_strbuf_getwholeline_fd
	cbnz	x0, LBB0_6
; %bb.8:
	ldr	x8, [sp, #40]
	cbz	x8, LBB0_6
; %bb.9:
	add	x23, x21, #4
Lloh8:
	adrp	x22, l_.str.3@PAGE
Lloh9:
	add	x22, x22, l_.str.3@PAGEOFF
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #32]
	ldrb	w24, [x8]
	cmp	w24, #10
	b.eq	LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	cmp	w24, #45
	b.ne	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x0, sp, #32
	mov	w1, #0
	mov	w2, #1
	bl	_strbuf_remove
LBB0_13:                                ;   in Loop: Header=BB0_10 Depth=1
	add	x0, sp, #32
	bl	_strbuf_rtrim
	ldr	x0, [sp, #32]
	add	x1, sp, #24
	add	x2, sp, #16
	bl	_parse_oid_hex
	cbnz	x0, LBB0_22
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [sp, #16]
	ldrb	w8, [x8]
	cbz	w8, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_10 Depth=1
	sxtb	w0, w8
	bl	_isspace
	cbz	w0, LBB0_22
LBB0_16:                                ;   in Loop: Header=BB0_10 Depth=1
	cmp	w24, #45
	b.ne	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x0, sp, #24
	mov	x1, x22
	mov	x2, x23
	b	LBB0_20
LBB0_18:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [sp, #16]
	ldrb	w9, [x8]
	cbz	w9, LBB0_22
; %bb.19:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x1, x8, #1
	add	x0, sp, #24
	mov	x2, x21
LBB0_20:                                ;   in Loop: Header=BB0_10 Depth=1
	bl	_add_to_ref_list
	add	x0, sp, #32
	mov	x1, x19
	mov	w2, #10
	bl	_strbuf_getwholeline_fd
	cbnz	x0, LBB0_6
; %bb.21:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [sp, #40]
	cbnz	x8, LBB0_10
	b	LBB0_6
LBB0_22:
	cbz	x20, LBB0_5
; %bb.23:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
Lloh12:
	adrp	x8, l_.str.2@PAGE
Lloh13:
	add	x8, x8, l_.str.2@PAGEOFF
	cmp	w24, #45
	csel	x1, x8, x22, eq
	ldp	x8, x9, [sp, #32]
	stp	x8, x9, [sp]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,16,3               ; @STRBUF_INIT
	.comm	_bundle_signature,4,2           ; @bundle_signature
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"'%s' does not look like a v2 bundle file"

l_.str.1:                               ; @.str.1
	.asciz	"unrecognized header: %s%s (%d)"

l_.str.2:                               ; @.str.2
	.asciz	"-"

l_.str.3:                               ; @.str.3
	.space	1

	.no_dead_strip	_parse_bundle_header
.subsections_via_symbols
