	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function flatten_match
_flatten_match:                         ## @flatten_match
	.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	$248, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -280(%rbp)                ## 8-byte Spill
	movq	%rdx, -272(%rbp)                ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rcx, %rdi
	callq	_strlen
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_malloc
	movq	%rax, %r12
	movq	%r14, -264(%rbp)
	leaq	L_.str(%rip), %rsi
	leaq	-256(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_sprintf
	leaq	-264(%rbp), %rdx
	movq	-272(%rbp), %rdi                ## 8-byte Reload
	movq	%r12, %rsi
	callq	_apr_brigade_flatten
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_apr_assert_success
	movq	-264(%rbp), %rcx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r13, %rdx
	movq	%r14, %r8
	xorl	%eax, %eax
	callq	_sprintf
	xorl	%edx, %edx
	cmpq	%r14, -264(%rbp)
	sete	%dl
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_ABTS_ASSERT
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_sprintf
	movq	-264(%rbp), %rcx
	movq	%r15, %rdi
	movq	-280(%rbp), %rsi                ## 8-byte Reload
	movq	%r12, %rdx
	callq	_ABTS_STR_NEQUAL
	movq	%r12, %rdi
	callq	_free
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	addq	$248, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: flatten brigade"

L_.str.1:                               ## @.str.1
	.asciz	"%s: length match (%ld not %ld)"

L_.str.2:                               ## @.str.2
	.asciz	"%s: result match"

	.no_dead_strip	_flatten_match
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function flatten_match
_flatten_match:                         ; @flatten_match
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #320
	.cfi_def_cfa_offset 320
	stp	x28, x27, [sp, #240]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #256]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #272]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #288]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #304]            ; 16-byte Folded Spill
	add	x29, sp, #304
	.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
	.cfi_offset w27, -72
	.cfi_offset w28, -80
	mov	x19, x3
	mov	x22, x2
	mov	x23, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	mov	x0, x3
	bl	_strlen
	mov	x24, x0
	bl	_malloc
	mov	x21, x0
	str	x24, [sp, #24]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #32
	mov	x2, x23
	bl	_sprintf
	add	x2, sp, #24
	mov	x0, x22
	mov	x1, x21
	bl	_apr_brigade_flatten
	mov	x2, x0
	add	x1, sp, #32
	mov	x0, x20
	bl	_apr_assert_success
	ldr	x8, [sp, #24]
	stp	x8, x24, [sp]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #32
	mov	x2, x23
	bl	_sprintf
	ldr	x8, [sp, #24]
	cmp	x8, x24
	cset	w2, eq
	add	x1, sp, #32
	mov	x0, x20
	bl	_ABTS_ASSERT
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #32
	add	x2, sp, #32
	bl	_sprintf
	ldr	x3, [sp, #24]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_ABTS_STR_NEQUAL
	mov	x0, x21
	bl	_free
	ldur	x8, [x29, #-72]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #304]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #288]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #272]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #256]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #240]            ; 16-byte Folded Reload
	add	sp, sp, #320
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: flatten brigade"

l_.str.1:                               ; @.str.1
	.asciz	"%s: length match (%ld not %ld)"

l_.str.2:                               ; @.str.2
	.asciz	"%s: result match"

	.no_dead_strip	_flatten_match
.subsections_via_symbols
