	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_header
_add_header:                            ## @add_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_strlen
	cltq
	leal	1(%rax), %ebx
	movq	%rax, %rcx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	subq	$1, %rcx
	jb	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	decl	%ebx
	cmpb	$10, -1(%r14,%rax)
	movq	%rcx, %rax
	je	LBB0_1
	jmp	LBB0_4
LBB0_2:
	xorl	%ebx, %ebx
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_strncasecmp
	testl	%eax, %eax
	je	LBB0_5
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_strncasecmp
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movq	_extra_hdr@GOTPCREL(%rip), %rdi
	movq	%r14, %rsi
	callq	_string_list_append
	jmp	LBB0_10
LBB0_5:
	addq	$4, %r14
	movq	_extra_to@GOTPCREL(%rip), %rdi
	jmp	LBB0_6
LBB0_8:
	addq	$4, %r14
	movq	_extra_cc@GOTPCREL(%rip), %rdi
LBB0_6:
	movq	%r14, %rsi
	callq	_string_list_append
	addl	$-4, %ebx
LBB0_10:
	movq	(%rax), %rax
	movslq	%ebx, %rcx
	movb	$0, (%rax,%rcx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"to: "

	.comm	_extra_to,4,2                   ## @extra_to
L_.str.1:                               ## @.str.1
	.asciz	"cc: "

	.comm	_extra_cc,4,2                   ## @extra_cc
	.comm	_extra_hdr,4,2                  ## @extra_hdr
	.no_dead_strip	_add_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_header
_add_header:                            ; @add_header
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_strlen
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	add	w20, w0, #1
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x8, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x9, x19, x8
	sub	x8, x8, #1
	ldurb	w9, [x9, #-1]
	sub	w20, w20, #1
	cmp	w9, #10
	b.eq	LBB0_1
	b	LBB0_4
LBB0_3:
	mov	w20, #0
LBB0_4:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	w2, #4
	bl	_strncasecmp
	cbz	w0, LBB0_7
; %bb.5:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w2, #4
	bl	_strncasecmp
	cbz	w0, LBB0_8
; %bb.6:
Lloh4:
	adrp	x0, _extra_hdr@GOTPAGE
Lloh5:
	ldr	x0, [x0, _extra_hdr@GOTPAGEOFF]
	mov	x1, x19
	bl	_string_list_append
	b	LBB0_10
LBB0_7:
	add	x1, x19, #4
Lloh6:
	adrp	x0, _extra_to@GOTPAGE
Lloh7:
	ldr	x0, [x0, _extra_to@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
	add	x1, x19, #4
Lloh8:
	adrp	x0, _extra_cc@GOTPAGE
Lloh9:
	ldr	x0, [x0, _extra_cc@GOTPAGEOFF]
LBB0_9:
	bl	_string_list_append
	sub	w20, w20, #4
LBB0_10:
	ldr	x8, [x0]
	strb	wzr, [x8, w20, sxtw]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"to: "

	.comm	_extra_to,4,2                   ; @extra_to
l_.str.1:                               ; @.str.1
	.asciz	"cc: "

	.comm	_extra_cc,4,2                   ; @extra_cc
	.comm	_extra_hdr,4,2                  ; @extra_hdr
	.no_dead_strip	_add_header
.subsections_via_symbols
