	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ChooseHisAddr
_ChooseHisAddr:                         ## @ChooseHisAddr
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	testq	%rax, %rax
	jle	LBB0_1
## %bb.2:
	movl	%esi, %r12d
	movq	%rdi, %r15
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_iplist_next
	movl	%eax, %r14d
	movq	_LogDEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	%r14d, %edi
	callq	_inet_ntoa
	movl	%r13d, %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_log_Printf
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	callq	_ipcp_SetIPaddress
	testq	%rax, %rax
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_3
	jmp	LBB0_6
LBB0_1:
	xorl	%ebx, %ebx
                                        ## implicit-def: $r14d
LBB0_6:
	cmpq	%rax, %rbx
	jne	LBB0_8
LBB0_7:
	movq	_LogDEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_log_Printf
	movq	_INADDR_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_LogIPCP@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%r14d, %edi
	callq	_inet_ntoa
	leaq	L_.str.1(%rip), %rsi
	movl	%r12d, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_log_Printf
	movq	(%r15), %rax
	cmpq	%rax, %rbx
	je	LBB0_7
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_LogDEBUG,4,2                   ## @LogDEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ChooseHisAddr: Check item %ld (%s)\n"

	.comm	_LogIPCP,4,2                    ## @LogIPCP
L_.str.1:                               ## @.str.1
	.asciz	"Selected IP address %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"ChooseHisAddr: All addresses in use !\n"

	.comm	_INADDR_ANY,4,2                 ## @INADDR_ANY
	.no_dead_strip	_ChooseHisAddr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ChooseHisAddr
_ChooseHisAddr:                         ; @ChooseHisAddr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	x8, [x0]
Lloh0:
	adrp	x25, _LogDEBUG@GOTPAGE
Lloh1:
	ldr	x25, [x25, _LogDEBUG@GOTPAGEOFF]
	cmp	x8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x20, x0
	mov	x26, #0
	and	x21, x1, #0xffffffff
Lloh2:
	adrp	x22, l_.str@PAGE
Lloh3:
	add	x22, x22, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_iplist_next
	mov	x19, x0
	ldr	w24, [x25]
	mov	w23, w0
	mov	x0, x23
	bl	_inet_ntoa
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x26, x0, [sp]
	mov	x0, x24
	mov	x1, x22
	bl	_log_Printf
	mov	x0, x20
	mov	x1, x21
	mov	x2, x23
	bl	_ipcp_SetIPaddress
	cbnz	x0, LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x26, x26, #1
	ldr	x8, [x20]
	cmp	x26, x8
	b.lt	LBB0_2
	b	LBB0_5
LBB0_4:
	mov	x26, #0
                                        ; implicit-def: $w19
LBB0_5:
	cmp	x26, x8
	b.ne	LBB0_7
LBB0_6:
	ldr	w0, [x25]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_log_Printf
Lloh6:
	adrp	x8, _INADDR_ANY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _INADDR_ANY@GOTPAGEOFF]
Lloh8:
	ldr	w19, [x8]
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_8:
Lloh9:
	adrp	x8, _LogIPCP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LogIPCP@GOTPAGEOFF]
Lloh11:
	ldr	w21, [x8]
	mov	x0, x23
	bl	_inet_ntoa
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_log_Printf
	ldr	x8, [x20]
	cmp	x26, x8
	b.eq	LBB0_6
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_LogDEBUG,4,2                   ; @LogDEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ChooseHisAddr: Check item %ld (%s)\n"

	.comm	_LogIPCP,4,2                    ; @LogIPCP
l_.str.1:                               ; @.str.1
	.asciz	"Selected IP address %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"ChooseHisAddr: All addresses in use !\n"

	.comm	_INADDR_ANY,4,2                 ; @INADDR_ANY
	.no_dead_strip	_ChooseHisAddr
.subsections_via_symbols
