	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_concat                         ## -- Begin function concat
	.p2align	4, 0x90
_concat:                                ## @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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %rbx
	testq	%rdi, %rdi
	leaq	L_.str(%rip), %rax
	cmoveq	%rax, %rbx
	testq	%rdx, %rdx
	cmoveq	%rax, %r14
	cmpb	$0, (%rbx)
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_strlen
	cltq
	movsbl	-1(%rax,%rbx), %edx
	jmp	LBB0_3
LBB0_1:
	xorl	%edx, %edx
LBB0_3:
	movb	(%r14), %al
	movsbl	%r15b, %ecx
	cmpl	%ecx, %edx
	jne	LBB0_6
## %bb.4:
	cmpb	%r15b, %al
	jne	LBB0_6
## %bb.5:
	incq	%r14
	jmp	LBB0_10
LBB0_6:
	cmpl	%ecx, %edx
	je	LBB0_10
## %bb.7:
	cmpb	%r15b, %al
	je	LBB0_10
## %bb.8:
	cmpb	$0, (%rbx)
	je	LBB0_10
## %bb.9:
	testb	%al, %al
	je	LBB0_10
## %bb.11:
	leaq	L_.str.2(%rip), %rsi
	leaq	-32(%rbp), %rdi
	movq	%rbx, %rdx
	movq	%r14, %r8
	xorl	%eax, %eax
	callq	_asprintf
	testl	%eax, %eax
	jns	LBB0_14
	jmp	LBB0_13
LBB0_10:
	leaq	L_.str.1(%rip), %rsi
	leaq	-32(%rbp), %rdi
	movq	%rbx, %rdx
	movq	%r14, %rcx
	xorl	%eax, %eax
	callq	_asprintf
	testl	%eax, %eax
	jns	LBB0_14
LBB0_13:
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	callq	_log_err
LBB0_14:
	movq	-32(%rbp), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

L_.str.1:                               ## @.str.1
	.asciz	"%s%s"

L_.str.2:                               ## @.str.2
	.asciz	"%s%c%s"

L_.str.3:                               ## @.str.3
	.asciz	"asprintf"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_concat                         ; -- Begin function concat
	.p2align	2
_concat:                                ; @concat
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x20, x1
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	cmp	x0, #0
	csel	x19, x8, x0, eq
	cmp	x2, #0
	csel	x21, x8, x2, eq
	ldrb	w8, [x19]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_strlen
	add	x8, x19, w0, sxtw
	ldursb	w9, [x8, #-1]
	b	LBB0_3
LBB0_2:
	mov	w9, #0
LBB0_3:
	ldrb	w8, [x21]
	cmp	w9, w20
	b.ne	LBB0_6
; %bb.4:
	cmp	w8, w20, uxtb
	b.ne	LBB0_6
; %bb.5:
	add	x8, x21, #1
	str	x8, [sp]
	b	LBB0_10
LBB0_6:
	cmp	w9, w20
	b.eq	LBB0_9
; %bb.7:
	cmp	w8, w20, uxtb
	b.eq	LBB0_9
; %bb.8:
	ldrb	w9, [x19]
	cmp	w9, #0
	ccmp	w8, #0, #4, ne
	b.ne	LBB0_14
LBB0_9:
	str	x21, [sp]
LBB0_10:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_11:
	add	x0, sp, #24
	mov	x2, x19
	bl	_asprintf
	tbz	w0, #31, LBB0_13
; %bb.12:
Lloh4:
	adrp	x1, l_.str.3@PAGE
Lloh5:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_log_err
LBB0_13:
	ldr	x0, [sp, #24]
	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
	add	sp, sp, #80
	ret
LBB0_14:
	stp	x20, x21, [sp]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_11
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

l_.str.1:                               ; @.str.1
	.asciz	"%s%s"

l_.str.2:                               ; @.str.2
	.asciz	"%s%c%s"

l_.str.3:                               ; @.str.3
	.asciz	"asprintf"

.subsections_via_symbols
