	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sun_append_str
_sun_append_str:                        ## @sun_append_str
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_SUN_KEY_SUB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rcx, %rdi
	callq	_sun_strsub
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_sun_expand2amd
	movq	%rax, %r12
	testq	%rax, %rax
	movq	%rax, %rsi
	cmoveq	%rbx, %rsi
	jmp	LBB0_5
LBB0_2:
	testq	%r12, %r12
	je	LBB0_3
## %bb.4:
	movq	%r12, %rdi
	callq	_sun_expand2amd
	movq	%rax, %rbx
	testq	%rax, %rax
	movq	%rax, %rsi
	cmoveq	%r12, %rsi
	xorl	%r12d, %r12d
LBB0_5:
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_xstrlcat
LBB0_6:
	movq	%rbx, %rdi
	callq	_XFREE
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_XFREE                          ## TAILCALL
LBB0_3:
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_SUN_KEY_SUB,4,2                ## @SUN_KEY_SUB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"${key}"

	.no_dead_strip	_sun_append_str
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sun_append_str
_sun_append_str:                        ; @sun_append_str
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _SUN_KEY_SUB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SUN_KEY_SUB@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x3
	bl	_sun_strsub
	cbz	x0, LBB0_2
; %bb.1:
	mov	x21, x0
	bl	_sun_expand2amd
	mov	x22, x0
	cmp	x0, #0
	csel	x1, x21, x0, eq
	b	LBB0_4
LBB0_2:
	cbz	x23, LBB0_6
; %bb.3:
	mov	x0, x23
	bl	_sun_expand2amd
	mov	x21, x0
	mov	x22, #0
	cmp	x0, #0
	csel	x1, x23, x0, eq
LBB0_4:
	mov	x0, x20
	mov	x2, x19
	bl	_xstrlcat
LBB0_5:
	mov	x0, x21
	bl	_XFREE
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_XFREE
LBB0_6:
	mov	x22, #0
	mov	x21, #0
	b	LBB0_5
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SUN_KEY_SUB,4,2                ; @SUN_KEY_SUB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"${key}"

	.no_dead_strip	_sun_append_str
.subsections_via_symbols
