	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function append_string
_append_string:                         ## @append_string
	.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	%r8d, %r13d
	movl	%ecx, %r15d
	movl	%edx, %r14d
	movq	%rdi, %r12
	testq	%rsi, %rsi
	leaq	L_.str(%rip), %rbx
	cmovneq	%rsi, %rbx
	movl	%ecx, %eax
	cmpl	$-1, %ecx
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_strlen
LBB0_2:
	subl	%eax, %r14d
	movq	_minus_flag@GOTPCREL(%rip), %rax
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	testl	%r13d, (%rax)
	je	LBB0_4
## %bb.3:
	xorl	%r13d, %r13d
	jmp	LBB0_5
LBB0_4:
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	$32, %edx
	callq	_pad
	movq	%rax, %r13
LBB0_5:
	movb	(%rbx), %al
	cmpl	$-1, %r15d
	je	LBB0_13
## %bb.6:
	testb	%al, %al
	je	LBB0_12
## %bb.7:
	testl	%r15d, %r15d
	je	LBB0_12
## %bb.8:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	decl	%r15d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	%al, %esi
	movq	%r12, %rdi
	callq	*(%r12)
	movzbl	1(%rbx,%r14), %eax
	leaq	1(%r14), %rcx
	testb	%al, %al
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpl	%r14d, %r15d
	movq	%rcx, %r14
	jne	LBB0_9
LBB0_11:
	addq	%rcx, %r13
	movl	-44(%rbp), %r14d                ## 4-byte Reload
LBB0_12:
	movq	_minus_flag@GOTPCREL(%rip), %r15
	jmp	LBB0_16
LBB0_13:
	testb	%al, %al
	movq	_minus_flag@GOTPCREL(%rip), %r15
	je	LBB0_16
## %bb.14:
	incq	%rbx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movzbl	%al, %esi
	movq	%r12, %rdi
	callq	*(%r12)
	incq	%r13
	movzbl	(%rbx), %eax
	incq	%rbx
	testb	%al, %al
	jne	LBB0_15
LBB0_16:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, (%r15)
	je	LBB0_18
## %bb.17:
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	$32, %edx
	callq	_pad
	addq	%rax, %r13
LBB0_18:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(null)"

	.comm	_minus_flag,4,2                 ## @minus_flag
	.no_dead_strip	_append_string
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function append_string
_append_string:                         ; @append_string
	.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	x20, x4
	mov	x23, x3
	mov	x21, x2
	mov	x19, x0
	mov	x0, x3
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	cmp	x1, #0
	csel	x24, x8, x1, eq
	cmn	w3, #1
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x24
	bl	_strlen
LBB0_2:
	sub	w21, w21, w0
Lloh2:
	adrp	x25, _minus_flag@GOTPAGE
Lloh3:
	ldr	x25, [x25, _minus_flag@GOTPAGEOFF]
	ldr	w8, [x25]
	tst	w8, w20
	b.eq	LBB0_4
; %bb.3:
	mov	x22, #0
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	mov	x1, x21
	mov	w2, #32
	bl	_pad
	mov	x22, x0
LBB0_5:
	ldrb	w1, [x24]
	cmn	w23, #1
	b.eq	LBB0_9
; %bb.6:
	cmp	w1, #0
	ccmp	w23, #0, #4, ne
	b.eq	LBB0_12
; %bb.7:
	add	x24, x24, #1
	sub	w23, w23, #1
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	mov	x0, x19
	blr	x8
	add	x22, x22, #1
	ldrb	w1, [x24], #1
	cmp	w1, #0
	ccmp	w23, #0, #4, ne
	sub	w23, w23, #1
	b.ne	LBB0_8
	b	LBB0_12
LBB0_9:
	cbz	w1, LBB0_12
; %bb.10:
	add	x23, x24, #1
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	mov	x0, x19
	blr	x8
	add	x22, x22, #1
	ldrb	w1, [x23], #1
	cbnz	w1, LBB0_11
LBB0_12:
	ldr	w8, [x25]
	tst	w8, w20
	b.eq	LBB0_14
; %bb.13:
	mov	x0, x19
	mov	x1, x21
	mov	w2, #32
	bl	_pad
	add	x22, x0, x22
LBB0_14:
	mov	x0, x22
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(null)"

	.comm	_minus_flag,4,2                 ; @minus_flag
	.no_dead_strip	_append_string
.subsections_via_symbols
