	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hostapd_cli_edit_completion_cb
_hostapd_cli_edit_completion_cb:        ## @hostapd_cli_edit_completion_cb
	.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
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rsi, %rdi
	movl	$32, %esi
	callq	_os_strchr
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rbx
	movslq	%r14d, %rax
	addq	%r15, %rax
	cmpq	%rbx, %rax
	jb	LBB0_6
## %bb.2:
	leal	1(%r14), %edi
	callq	_os_malloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_os_memcpy
	subq	%r15, %rbx
	movb	$0, (%r12,%rbx)
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_hostapd_cli_cmd_completion
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_os_free
	movq	%rbx, %rax
	jmp	LBB0_5
LBB0_6:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_list_cmd_list                  ## TAILCALL
LBB0_4:
	xorl	%eax, %eax
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_hostapd_cli_edit_completion_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hostapd_cli_edit_completion_cb
_hostapd_cli_edit_completion_cb:        ; @hostapd_cli_edit_completion_cb
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x0, x1
	mov	w1, #32
	bl	_os_strchr
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
	add	x8, x20, w19, sxtw
	cmp	x8, x0
	b.lo	LBB0_5
; %bb.2:
	add	w0, w19, #1
	bl	_os_malloc
	cbz	x0, LBB0_4
; %bb.3:
	mov	x22, x0
	mov	x1, x20
	mov	x2, x19
	bl	_os_memcpy
	sub	x8, x21, x20
	strb	wzr, [x22, x8]
	mov	x0, x22
	mov	x1, x20
	mov	x2, x19
	bl	_hostapd_cli_cmd_completion
	mov	x19, x0
	mov	x0, x22
	bl	_os_free
	mov	x0, x19
LBB0_4:
	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_5:
	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	_list_cmd_list
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_hostapd_cli_edit_completion_cb
.subsections_via_symbols
