	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function replace_directives_for
_replace_directives_for:                ## @replace_directives_for
	.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, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rdi
	callq	_r_strbuf_new
	movq	%rax, %r13
	movb	$1, %r12b
	xorl	%ebx, %ebx
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %r14
	incq	%r14
	movb	$0, (%rax)
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movzbl	(%rbx), %r12d
	movb	$0, (%rbx)
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_r_strbuf_append
	movb	%r12b, (%rbx)
	leaq	1(%rbx), %rdx
	movq	%r13, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_r_strbuf_appendf
	xorl	%r12d, %r12d
	movq	%r14, %r15
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	testq	%r15, %r15
	je	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_strstr
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_4
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	testq	%rbx, %rbx
	je	LBB0_9
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_strchr
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%r14d, %r14d
	jmp	LBB0_7
LBB0_8:
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_r_strbuf_append
LBB0_9:
	testb	$1, %r12b
	je	LBB0_11
## %bb.10:
	movq	%r13, %rdi
	callq	_r_strbuf_free
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
	movq	%r13, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_r_strbuf_drain                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

L_.str.1:                               ## @.str.1
	.asciz	"<{%s}>\n"

	.no_dead_strip	_replace_directives_for
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function replace_directives_for
_replace_directives_for:                ; @replace_directives_for
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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 w25, -72
	.cfi_offset w26, -80
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_r_strbuf_new
	mov	x20, x0
	mov	x22, #0
	mov	w26, #1
	mov	x24, x19
Lloh2:
	adrp	x23, l_.str.1@PAGE
Lloh3:
	add	x23, x23, l_.str.1@PAGEOFF
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w26, [x22]
	strb	wzr, [x22]
	mov	x0, x20
	mov	x1, x24
	bl	_r_strbuf_append
	mov	x2, x22
	strb	w26, [x2], #1
	mov	x0, x20
	mov	x1, x23
	bl	_r_strbuf_appendf
	mov	w26, #0
	mov	x24, x25
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x24, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x24
	mov	x1, x21
	bl	_strstr
	mov	x22, x0
	cbnz	x0, LBB0_5
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	cbz	x22, LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x22
	mov	w1, #10
	bl	_strchr
	mov	x25, x0
	cbz	x0, LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	strb	wzr, [x25], #1
	b	LBB0_1
LBB0_7:
	mov	x0, x20
	mov	x1, x24
	bl	_r_strbuf_append
LBB0_8:
	tbz	w26, #0, LBB0_10
; %bb.9:
	mov	x0, x20
	bl	_r_strbuf_free
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	x0, x19
	bl	_free
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_r_strbuf_drain
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

l_.str.1:                               ; @.str.1
	.asciz	"<{%s}>\n"

	.no_dead_strip	_replace_directives_for
.subsections_via_symbols
