	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_datalink_ChoosePhoneNumber     ## -- Begin function datalink_ChoosePhoneNumber
	.p2align	4, 0x90
_datalink_ChoosePhoneNumber:            ## @datalink_ChoosePhoneNumber
	.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	%rdi, %r14
	cmpq	$0, (%rdi)
	jne	LBB0_6
## %bb.1:
	leaq	8(%r14), %rbx
	cmpq	$0, 8(%r14)
	jne	LBB0_5
## %bb.2:
	movq	16(%r14), %rdi
	movl	32(%r14), %esi
	movl	$7, %edx
	callq	_strncpy
	movq	16(%r14), %rax
	movb	$0, 7(%rax)
	movq	16(%r14), %rax
	cmpb	$0, (%rax)
	je	LBB0_3
## %bb.4:
	movq	%rax, (%rbx)
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strsep
	movq	%rax, (%r14)
LBB0_6:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_strsep
	movq	%rax, %rbx
	cmpb	$0, (%rax)
	leaq	L_.str.3(%rip), %rax
	cmovneq	%rbx, %rax
	movq	%rax, 24(%r14)
	cmpb	$0, (%rbx)
	je	LBB0_8
## %bb.7:
	movq	_LogCHAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdx
	callq	_log_Printf
LBB0_8:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	leaq	L_.str(%rip), %rbx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

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

L_.str.2:                               ## @.str.2
	.asciz	"|"

L_.str.3:                               ## @.str.3
	.asciz	"[NONE]"

	.comm	_LogCHAT,4,2                    ## @LogCHAT
L_.str.4:                               ## @.str.4
	.asciz	"Phone: %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_datalink_ChoosePhoneNumber     ; -- Begin function datalink_ChoosePhoneNumber
	.p2align	2
_datalink_ChoosePhoneNumber:            ; @datalink_ChoosePhoneNumber
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0]
	cbnz	x8, LBB0_5
; %bb.1:
	mov	x20, x19
	ldr	x8, [x20, #8]!
	cbnz	x8, LBB0_4
; %bb.2:
	ldr	x0, [x19, #16]
	ldr	w1, [x19, #32]
	mov	w2, #7
	bl	_strncpy
	ldr	x8, [x19, #16]
	strb	wzr, [x8, #7]
	ldr	x8, [x19, #16]
	ldrb	w9, [x8]
	cbz	w9, LBB0_8
; %bb.3:
	str	x8, [x20]
LBB0_4:
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_strsep
	str	x0, [x19]
LBB0_5:
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_strsep
	mov	x20, x0
	ldrb	w8, [x0]
Lloh4:
	adrp	x9, l_.str.3@PAGE
Lloh5:
	add	x9, x9, l_.str.3@PAGEOFF
	cmp	w8, #0
	csel	x8, x9, x0, eq
	str	x8, [x19, #24]
	ldrb	w8, [x0]
	cbz	w8, LBB0_7
; %bb.6:
Lloh6:
	adrp	x8, _LogCHAT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LogCHAT@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str.4@PAGE
Lloh10:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x20
	bl	_log_Printf
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh11:
	adrp	x20, l_.str@PAGE
Lloh12:
	add	x20, x20, l_.str@PAGEOFF
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

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

l_.str.2:                               ; @.str.2
	.asciz	"|"

l_.str.3:                               ; @.str.3
	.asciz	"[NONE]"

	.comm	_LogCHAT,4,2                    ; @LogCHAT
l_.str.4:                               ; @.str.4
	.asciz	"Phone: %s\n"

.subsections_via_symbols
