	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function readline_completion_func
_readline_completion_func:              ## @readline_completion_func
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_pending_completions@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rdi, %rbx
	testl	%esi, %esi
	jne	LBB0_3
## %bb.2:
	movl	$0, _readline_completion_func.pos(%rip)
	movq	%rbx, %rdi
	callq	_os_strlen
	movq	%rax, _readline_completion_func.len(%rip)
	movq	(%r14), %rax
LBB0_3:
	movslq	_readline_completion_func.pos(%rip), %rcx
	movq	(%rax,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	_readline_completion_func.len(%rip), %rdx
	movq	%rbx, %rsi
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movslq	_readline_completion_func.pos(%rip), %rax
	leaq	1(%rax), %rcx
	movl	%ecx, _readline_completion_func.pos(%rip)
	movq	(%r14), %rcx
	movq	8(%rcx,%rax,8), %rdi
	testq	%rdi, %rdi
	jne	LBB0_5
LBB0_7:
	movq	_rl_attempted_completion_over@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	movq	(%r14), %rax
	movslq	_readline_completion_func.pos(%rip), %rcx
	leal	1(%rcx), %edx
	movl	%edx, _readline_completion_func.pos(%rip)
	movq	(%rax,%rcx,8), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_strdup                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_readline_completion_func.pos,4,2 ## @readline_completion_func.pos
.zerofill __DATA,__bss,_readline_completion_func.len,8,3 ## @readline_completion_func.len
	.comm	_pending_completions,8,3        ## @pending_completions
	.comm	_rl_attempted_completion_over,4,2 ## @rl_attempted_completion_over
	.no_dead_strip	_readline_completion_func
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function readline_completion_func
_readline_completion_func:              ; @readline_completion_func
	.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
Lloh0:
	adrp	x20, _pending_completions@GOTPAGE
Lloh1:
	ldr	x20, [x20, _pending_completions@GOTPAGEOFF]
	ldr	x8, [x20]
	cbz	x8, LBB0_7
; %bb.1:
	mov	x19, x0
	adrp	x21, _readline_completion_func.pos@PAGE
	cbnz	w1, LBB0_3
; %bb.2:
	str	wzr, [x21, _readline_completion_func.pos@PAGEOFF]
	mov	x0, x19
	bl	_os_strlen
	adrp	x8, _readline_completion_func.len@PAGE
	str	x0, [x8, _readline_completion_func.len@PAGEOFF]
	ldr	x8, [x20]
LBB0_3:
	ldrsw	x9, [x21, _readline_completion_func.pos@PAGEOFF]
	ldr	x0, [x8, x9, lsl #3]
	cbz	x0, LBB0_7
; %bb.4:
	adrp	x22, _readline_completion_func.len@PAGE
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x2, [x22, _readline_completion_func.len@PAGEOFF]
	mov	x1, x19
	bl	_strncmp
	cbz	x0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldrsw	x8, [x21, _readline_completion_func.pos@PAGEOFF]
	add	x8, x8, #1
	str	w8, [x21, _readline_completion_func.pos@PAGEOFF]
	ldr	x9, [x20]
	ldr	x0, [x9, x8, lsl #3]
	cbnz	x0, LBB0_5
LBB0_7:
Lloh2:
	adrp	x8, _rl_attempted_completion_over@GOTPAGE
Lloh3:
	ldr	x8, [x8, _rl_attempted_completion_over@GOTPAGEOFF]
	mov	w9, #1
Lloh4:
	str	w9, [x8]
	mov	x0, #0
	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_8:
	ldr	x8, [x20]
	ldrsw	x9, [x21, _readline_completion_func.pos@PAGEOFF]
	add	w10, w9, #1
	str	w10, [x21, _readline_completion_func.pos@PAGEOFF]
	ldr	x0, [x8, x9, lsl #3]
	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	_strdup
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_readline_completion_func.pos,4,2 ; @readline_completion_func.pos
.zerofill __DATA,__bss,_readline_completion_func.len,8,3 ; @readline_completion_func.len
	.comm	_pending_completions,8,3        ; @pending_completions
	.comm	_rl_attempted_completion_over,4,2 ; @rl_attempted_completion_over
	.no_dead_strip	_readline_completion_func
.subsections_via_symbols
