	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function complete_ambiguous
_complete_ambiguous:                    ## @complete_ambiguous
	.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
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	testq	%rdx, %rdx
	je	LBB0_14
## %bb.3:
	movq	%rsi, %r15
	movq	(%rsi), %r12
	movq	%r12, %rdi
	callq	_strlen
	movq	8(%r15), %rdx
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.5:
	movl	$1, %esi
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%r15,%rsi,8), %rdx
	incq	%rsi
	movq	%rbx, %rax
	testq	%rdx, %rdx
	je	LBB0_11
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_10
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%r12,%rbx), %ecx
	cmpb	(%rdx,%rbx), %cl
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	incq	%rbx
	cmpq	%rbx, %rax
	jne	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, %rbx
	jmp	LBB0_10
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_4:
	movq	%rax, %rbx
LBB0_11:
	movq	%r14, %rdi
	callq	_strlen
	cmpq	%rax, %rbx
	jbe	LBB0_14
## %bb.12:
	movq	%r12, %rdi
	callq	_xstrdup
	movb	$0, (%rax,%rbx)
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_xstrdup                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_complete_ambiguous
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function complete_ambiguous
_complete_ambiguous:                    ; @complete_ambiguous
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cbz	x0, LBB0_12
; %bb.1:
	mov	x19, x0
	cbz	x2, LBB0_13
; %bb.2:
	mov	x21, x1
	ldr	x20, [x1]
	mov	x0, x20
	bl	_strlen
	ldr	x9, [x21, #8]
	cbz	x9, LBB0_9
; %bb.3:
	mov	w8, #1
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x8, #1
	ldr	x9, [x21, x8, lsl #3]
	mov	x0, x22
	cbz	x9, LBB0_10
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	mov	x22, #0
	cbz	x0, LBB0_4
LBB0_6:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w10, [x20, x22]
	ldrb	w11, [x9, x22]
	cmp	w10, w11
	b.ne	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	add	x22, x22, #1
	cmp	x0, x22
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x22, x0
	b	LBB0_4
LBB0_9:
	mov	x22, x0
LBB0_10:
	mov	x0, x19
	bl	_strlen
	cmp	x22, x0
	b.ls	LBB0_13
; %bb.11:
	mov	x0, x20
	bl	_xstrdup
	strb	wzr, [x0, x22]
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_13:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_xstrdup
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_complete_ambiguous
.subsections_via_symbols
