	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_loose_header_extended
_parse_loose_header_extended:           ## @parse_loose_header_extended
	.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
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %r13
	leaq	1(%rdi), %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	-1(%r14), %eax
	testb	%al, %al
	je	LBB0_18
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpb	$32, %al
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	incl	%ebx
	incq	%r14
	jmp	LBB0_1
LBB0_18:
	movl	$-1, %eax
	jmp	LBB0_19
LBB0_4:
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	$1, %edx
	callq	_type_from_string_gently
	movq	%r12, %rcx
	movl	%eax, %r12d
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	16(%rcx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	movq	%r13, %rsi
	movl	%ebx, %edx
	callq	_strbuf_add
LBB0_6:
	movq	_OBJECT_INFO_ALLOW_UNKNOWN_TYPE@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	setne	%al
	testl	%r12d, %r12d
	sets	%dl
	xorl	%ecx, %ecx
	testb	%dl, %al
	cmovel	%r12d, %ecx
	jne	LBB0_9
## %bb.7:
	testl	%r12d, %r12d
	jns	LBB0_9
## %bb.8:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_die
	movl	%r12d, %ecx
LBB0_9:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movl	%ecx, (%rax)
LBB0_11:
	movsbq	(%r14), %rdx
	addq	$-48, %rdx
	movl	$-1, %eax
	cmpq	$9, %rdx
	ja	LBB0_19
## %bb.12:
	testq	%rdx, %rdx
	je	LBB0_13
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	%rdx, %rax
	movsbq	1(%r14), %rdx
	incq	%r14
	leaq	-48(%rdx), %rsi
	leaq	(%rax,%rax,4), %rdi
	leaq	(%rdx,%rdi,2), %rdx
	addq	$-48, %rdx
	cmpq	$10, %rsi
	jb	LBB0_14
	jmp	LBB0_15
LBB0_13:
	incq	%r14
	xorl	%eax, %eax
LBB0_15:
	movq	8(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_17
## %bb.16:
	movq	%rax, (%rdx)
LBB0_17:
	xorl	%eax, %eax
	cmpb	(%r14), %al
	sbbl	%eax, %eax
	orl	%ecx, %eax
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OBJECT_INFO_ALLOW_UNKNOWN_TYPE,4,2 ## @OBJECT_INFO_ALLOW_UNKNOWN_TYPE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid object type"

	.no_dead_strip	_parse_loose_header_extended
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_loose_header_extended
_parse_loose_header_extended:           ; @parse_loose_header_extended
	.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
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	mov	x21, #0
	ldrb	w8, [x20, x21]
	cbz	w8, LBB0_11
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w8, #32
	b.eq	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x21, x21, #1
	ldrb	w8, [x20, x21]
	cbnz	w8, LBB0_1
	b	LBB0_11
LBB0_3:
	mov	x0, x20
	mov	x1, x21
	mov	w2, #1
	bl	_type_from_string_gently
	mov	x23, x0
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_5
; %bb.4:
	mov	x1, x20
	mov	x2, x21
	bl	_strbuf_add
LBB0_5:
	add	x24, x20, x21
Lloh0:
	adrp	x8, _OBJECT_INFO_ALLOW_UNKNOWN_TYPE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OBJECT_INFO_ALLOW_UNKNOWN_TYPE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w22
	cset	w8, ne
	cmp	w23, #0
	cset	w9, lt
	ands	w9, w8, w9
	csel	w8, wzr, w23, ne
	tbnz	w9, #0, LBB0_8
; %bb.6:
	tbz	w23, #31, LBB0_8
; %bb.7:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	bl	_die
	mov	x8, x23
LBB0_8:
	add	x9, x24, #1
	ldr	x10, [x19]
	cbz	x10, LBB0_10
; %bb.9:
	str	w8, [x10]
LBB0_10:
	ldrsb	x10, [x9]
	sub	x11, x10, #48
	cmp	x11, #9
	b.ls	LBB0_12
LBB0_11:
	mov	w0, #-1
	b	LBB0_18
LBB0_12:
	cbz	x11, LBB0_19
; %bb.13:
	mov	w12, #10
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	mov	x10, x11
	ldrsb	x11, [x9, #1]!
	sub	x13, x11, #48
	madd	x11, x10, x12, x13
	cmp	x13, #10
	b.lo	LBB0_14
; %bb.15:
	ldr	x11, [x19, #8]
	cbz	x11, LBB0_17
LBB0_16:
	str	x10, [x11]
LBB0_17:
	ldrb	w9, [x9]
	cmp	w9, #0
	csinv	w0, w8, wzr, eq
LBB0_18:
	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
LBB0_19:
	mov	x10, #0
	add	x9, x20, x21
	add	x9, x9, #2
	ldr	x11, [x19, #8]
	cbnz	x11, LBB0_16
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_OBJECT_INFO_ALLOW_UNKNOWN_TYPE,4,2 ; @OBJECT_INFO_ALLOW_UNKNOWN_TYPE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid object type"

	.no_dead_strip	_parse_loose_header_extended
.subsections_via_symbols
