	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_str_concat                     ## -- Begin function str_concat
	.p2align	4, 0x90
_str_concat:                            ## @str_concat
	.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	%edx, %r13d
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_strlen
	movl	%eax, %ebx
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_strlen
	movl	%eax, %r15d
	leal	(%rbx,%r15), %edi
	addl	$2, %edi
	callq	_bmake_malloc
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_memcpy
	movq	_STR_ADDSPACE@GOTPCREL(%rip), %rcx
	movb	$32, %al
	testl	%r13d, (%rcx)
	jne	LBB0_2
## %bb.1:
	movq	_STR_ADDSLASH@GOTPCREL(%rip), %rcx
	movb	$47, %al
	testl	%r13d, (%rcx)
	je	LBB0_3
LBB0_2:
	movslq	%ebx, %rcx
	movb	%al, (%r12,%rcx)
	incl	%ebx
LBB0_3:
	movslq	%ebx, %rax
	movq	%r12, %rdi
	addq	%rax, %rdi
	incl	%r15d
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	callq	_memcpy
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STR_ADDSPACE,4,2               ## @STR_ADDSPACE
	.comm	_STR_ADDSLASH,4,2               ## @STR_ADDSLASH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_str_concat                     ; -- Begin function str_concat
	.p2align	2
_str_concat:                            ; @str_concat
	.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, x2
	mov	x19, x1
	mov	x24, x0
	bl	_strlen
	mov	x20, x0
	mov	x0, x19
	bl	_strlen
	mov	x22, x0
	add	w8, w20, w0
	add	w0, w8, #2
	bl	_bmake_malloc
	mov	x21, x0
	mov	x1, x24
	mov	x2, x20
	bl	_memcpy
Lloh0:
	adrp	x8, _STR_ADDSPACE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STR_ADDSPACE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_2
; %bb.1:
	mov	w8, #32
	b	LBB0_4
LBB0_2:
Lloh3:
	adrp	x8, _STR_ADDSLASH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STR_ADDSLASH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_5
; %bb.3:
	mov	w8, #47
LBB0_4:
	strb	w8, [x21, w20, sxtw]
	add	w20, w20, #1
LBB0_5:
	add	x0, x21, w20, sxtw
	add	w2, w22, #1
	mov	x1, x19
	bl	_memcpy
	mov	x0, x21
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_STR_ADDSPACE,4,2               ; @STR_ADDSPACE
	.comm	_STR_ADDSLASH,4,2               ; @STR_ADDSLASH
.subsections_via_symbols
