	.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
	movq	%rcx, %rbx
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	%rcx, -48(%rbp)
	testl	%r8d, %r8d
	je	LBB0_2
## %bb.1:
	movq	_Q_RFC2253@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rcx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_quote_string
	movq	%rax, %r13
	movq	-48(%rbp), %rbx
	jmp	LBB0_3
LBB0_2:
	movq	%r15, %rdi
	callq	_rk_UNCONST
	movq	%rax, %r13
LBB0_3:
	movq	(%r14), %rdi
	movq	(%r12), %rax
	leaq	(%rbx,%rax), %rsi
	incq	%rsi
	callq	_realloc
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rdi
	callq	__hx509_abort
LBB0_5:
	movq	(%r12), %rdi
	addq	%rbx, %rdi
	movq	-48(%rbp), %rdx
	movq	%r13, %rsi
	callq	_memcpy
	cmpq	%r15, %r13
	je	LBB0_7
## %bb.6:
	movq	%r13, %rdi
	callq	_free
LBB0_7:
	movq	-48(%rbp), %rax
	addq	(%r12), %rax
	movb	$0, (%rbx,%rax)
	movq	%rbx, (%r14)
	movq	%rax, (%r12)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Q_RFC2253,4,2                  ## @Q_RFC2253
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"allocation failure"

	.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:
	sub	sp, sp, #80
	.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
	mov	x23, x3
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	str	x3, [sp, #8]
	cbz	w4, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _Q_RFC2253@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Q_RFC2253@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	x0, x21
	mov	x1, x23
	bl	_quote_string
	mov	x22, x0
	ldr	x23, [sp, #8]
	b	LBB0_3
LBB0_2:
	mov	x0, x21
	bl	_rk_UNCONST
	mov	x22, x0
LBB0_3:
	ldr	x0, [x20]
	ldr	x8, [x19]
	add	x8, x23, x8
	add	x1, x8, #1
	bl	_realloc
	mov	x23, x0
	cbnz	x0, LBB0_5
; %bb.4:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	__hx509_abort
LBB0_5:
	ldr	x8, [x19]
	add	x0, x23, x8
	ldr	x2, [sp, #8]
	mov	x1, x22
	bl	_memcpy
	cmp	x22, x21
	b.eq	LBB0_7
; %bb.6:
	mov	x0, x22
	bl	_free
LBB0_7:
	ldr	x8, [x19]
	ldr	x9, [sp, #8]
	add	x8, x9, x8
	strb	wzr, [x23, x8]
	str	x23, [x20]
	str	x8, [x19]
	mov	w0, #0
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_Q_RFC2253,4,2                  ; @Q_RFC2253
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"allocation failure"

	.no_dead_strip	_append_string
.subsections_via_symbols
