	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_boundary
_handle_boundary:                       ## @handle_boundary
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movaps	%xmm0, -64(%rbp)
	leaq	-64(%rbp), %r15
	movq	%r15, %rdi
	movl	$10, %esi
	callq	_strbuf_addch
	leaq	L_.str(%rip), %r12
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdi
	leaq	2(%rdi), %rax
	cmpq	%rax, (%r14)
	jl	LBB0_7
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	addq	8(%r14), %rdi
	movq	%r12, %rsi
	movl	$2, %edx
	callq	_memcmp
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	32(%rbx), %rax
	movq	(%rax), %rdi
	callq	_strbuf_release
	movq	32(%rbx), %rax
	movq	(%rax), %rdi
	callq	_FREE_AND_NULL
	movq	32(%rbx), %rax
	addq	$-8, %rax
	movq	%rax, 32(%rbx)
	cmpq	24(%rbx), %rax
	jb	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_handle_filter
	movq	%r15, %rdi
	callq	_strbuf_release
	cmpl	$0, (%rbx)
	jne	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_find_boundary
	testl	%eax, %eax
	jne	LBB0_1
	jmp	LBB0_12
LBB0_7:
	movq	_TE_DONTCARE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	leaq	12(%rbx), %rdi
	callq	_strbuf_reset
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%rbx), %esi
	movq	%r14, %rdi
	callq	_read_one_header_line
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_9 Depth=1
	movl	8(%rbx), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	callq	_check_header
	jmp	LBB0_9
LBB0_10:
	leaq	-64(%rbp), %rdi
	callq	_strbuf_release
	movl	4(%rbx), %esi
	movq	%r14, %rdi
	callq	_strbuf_getline_lf
	xorl	%r13d, %r13d
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:
	movq	%r14, %rdi
	movl	$10, %esi
	callq	_strbuf_addch
	movl	$1, %r13d
	jmp	LBB0_12
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	callq	_error
	movl	$-1, (%rbx)
	movq	24(%rbx), %rax
	movq	%rax, 32(%rbx)
	leaq	-64(%rbp), %rdi
	callq	_strbuf_release
	xorl	%r13d, %r13d
LBB0_12:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,16,3               ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"--"

L_.str.1:                               ## @.str.1
	.asciz	"Detected mismatched boundaries, can't recover"

	.comm	_TE_DONTCARE,4,2                ## @TE_DONTCARE
	.no_dead_strip	_handle_boundary
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_boundary
_handle_boundary:                       ; @handle_boundary
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	q0, [x8]
	str	q0, [sp]
	mov	x0, sp
	mov	w1, #10
	bl	_strbuf_addch
Lloh3:
	adrp	x21, l_.str@PAGE
Lloh4:
	add	x21, x21, l_.str@PAGEOFF
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19]
	ldr	x8, [x20, #32]
	ldr	x8, [x8]
	ldr	x8, [x8]
	add	x10, x8, #2
	cmp	x9, x10
	b.lt	LBB0_6
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x9, [x19, #8]
	add	x0, x9, x8
	mov	x1, x21
	mov	w2, #2
	bl	_memcmp
	cbnz	w0, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x20, #32]
	ldr	x0, [x8]
	bl	_strbuf_release
	ldr	x8, [x20, #32]
	ldr	x0, [x8]
	bl	_FREE_AND_NULL
	ldp	x9, x8, [x20, #24]
	sub	x8, x8, #8
	str	x8, [x20, #32]
	cmp	x8, x9
	b.lo	LBB0_11
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x1, sp
	mov	x0, x20
	bl	_handle_filter
	mov	x0, sp
	bl	_strbuf_release
	ldr	w8, [x20]
	cbnz	w8, LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	mov	x1, x19
	bl	_find_boundary
	cbnz	w0, LBB0_1
	b	LBB0_13
LBB0_6:
Lloh5:
	adrp	x8, _TE_DONTCARE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TE_DONTCARE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x20, #16]
	add	x0, x20, #12
	bl	_strbuf_reset
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x20, #4]
	mov	x0, x19
	bl	_read_one_header_line
	cbz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w2, [x20, #8]
	mov	x0, x20
	mov	x1, x19
	mov	w3, #0
	bl	_check_header
	b	LBB0_7
LBB0_9:
	mov	x0, sp
	bl	_strbuf_release
	ldr	w1, [x20, #4]
	mov	x0, x19
	bl	_strbuf_getline_lf
	cbnz	x0, LBB0_12
; %bb.10:
	mov	x0, x19
	mov	w1, #10
	bl	_strbuf_addch
	mov	w0, #1
	b	LBB0_13
LBB0_11:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_error
	mov	w8, #-1
	str	w8, [x20]
	ldr	x8, [x20, #24]
	str	x8, [x20, #32]
	mov	x0, sp
	bl	_strbuf_release
LBB0_12:
	mov	w0, #0
LBB0_13:
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,16,3               ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"--"

l_.str.1:                               ; @.str.1
	.asciz	"Detected mismatched boundaries, can't recover"

	.comm	_TE_DONTCARE,4,2                ; @TE_DONTCARE
	.no_dead_strip	_handle_boundary
.subsections_via_symbols
