	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SetupAddressRedirect           ## -- Begin function SetupAddressRedirect
	.p2align	4, 0x90
_SetupAddressRedirect:                  ## @SetupAddressRedirect
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_strdup
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strtok
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_4:
	movq	%r15, %rdi
	movl	$44, %esi
	callq	_strchr
	testq	%rax, %rax
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_6
## %bb.5:
	movq	_INADDR_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	jmp	LBB0_7
LBB0_6:
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_StrToAddr
	xorl	%r15d, %r15d
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
	xorl	%edi, %edi
	callq	_strtok
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_9:
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_StrToAddr
	movq	_mla@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movl	-48(%rbp), %esi
	movl	-56(%rbp), %edx
	callq	_LibAliasRedirectAddr
	testq	%r15, %r15
	je	LBB0_14
## %bb.10:
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_14
## %bb.11:
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	callq	_strtok
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	leaq	-48(%rbp), %r15
	leaq	L_.str.4(%rip), %r12
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_StrToAddr
	movl	(%r14), %ebx
	movl	$-1, %edi
	callq	_htons
	movl	-48(%rbp), %edx
	movl	%ebx, %edi
	movq	%r13, %rsi
	movl	%eax, %ecx
	callq	_LibAliasAddServer
	xorl	%edi, %edi
	movq	%r12, %rsi
	callq	_strtok
	testq	%rax, %rax
	jne	LBB0_13
LBB0_14:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"redirect_port: strdup() failed"

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

L_.str.2:                               ## @.str.2
	.asciz	"redirect_address: missing local address"

	.comm	_INADDR_NONE,4,2                ## @INADDR_NONE
L_.str.3:                               ## @.str.3
	.asciz	"redirect_address: missing public address"

	.comm	_mla,4,2                        ## @mla
L_.str.4:                               ## @.str.4
	.asciz	","

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SetupAddressRedirect           ; -- Begin function SetupAddressRedirect
	.p2align	2
_SetupAddressRedirect:                  ; @SetupAddressRedirect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	bl	_strdup
	mov	x19, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_2:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_strtok
	mov	x20, x0
	cbnz	x0, LBB0_4
; %bb.3:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_4:
	mov	x0, x20
	mov	w1, #44
	bl	_strchr
	cbz	x0, LBB0_6
; %bb.5:
Lloh6:
	adrp	x8, _INADDR_NONE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _INADDR_NONE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	b	LBB0_7
LBB0_6:
	add	x1, sp, #8
	mov	x0, x20
	bl	_StrToAddr
	mov	x20, #0
LBB0_7:
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, #0
	bl	_strtok
	mov	x21, x0
	cbnz	x0, LBB0_9
; %bb.8:
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_9:
	mov	x1, sp
	mov	x0, x21
	bl	_StrToAddr
Lloh13:
	adrp	x23, _mla@GOTPAGE
Lloh14:
	ldr	x23, [x23, _mla@GOTPAGEOFF]
	ldr	w0, [x23]
	ldr	w1, [sp, #8]
	ldr	w2, [sp]
	bl	_LibAliasRedirectAddr
	cbz	x20, LBB0_14
; %bb.10:
	mov	x21, x0
	cbz	x0, LBB0_14
; %bb.11:
Lloh15:
	adrp	x1, l_.str.4@PAGE
Lloh16:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_strtok
	cbz	x0, LBB0_14
; %bb.12:
Lloh17:
	adrp	x20, l_.str.4@PAGE
Lloh18:
	add	x20, x20, l_.str.4@PAGEOFF
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	bl	_StrToAddr
	ldr	w22, [x23]
	mov	w0, #-1
	bl	_htons
	mov	x3, x0
	ldr	w2, [sp, #8]
	mov	x0, x22
	mov	x1, x21
	bl	_LibAliasAddServer
	mov	x0, #0
	mov	x1, x20
	bl	_strtok
	cbnz	x0, LBB0_13
LBB0_14:
	mov	x0, x19
	bl	_free
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"redirect_port: strdup() failed"

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

l_.str.2:                               ; @.str.2
	.asciz	"redirect_address: missing local address"

	.comm	_INADDR_NONE,4,2                ; @INADDR_NONE
l_.str.3:                               ; @.str.3
	.asciz	"redirect_address: missing public address"

	.comm	_mla,4,2                        ; @mla
l_.str.4:                               ; @.str.4
	.asciz	","

.subsections_via_symbols
