	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SetupProtoRedirect             ## -- Begin function SetupProtoRedirect
	.p2align	4, 0x90
_SetupProtoRedirect:                    ## @SetupProtoRedirect
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_strdup
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_strtok
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
LBB0_4:
	movq	%rbx, %rdi
	callq	_getprotobyname
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movl	(%rax), %r14d
	jmp	LBB0_7
LBB0_5:
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_errx
                                        ## implicit-def: $r14d
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
	xorl	%edi, %edi
	callq	_strtok
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	leaq	-48(%rbp), %rsi
	movq	%rax, %rdi
	callq	_StrToAddr
	jmp	LBB0_10
LBB0_8:
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
LBB0_10:
	leaq	L_.str.1(%rip), %rsi
	xorl	%edi, %edi
	callq	_strtok
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	leaq	-40(%rbp), %rsi
	movq	%rax, %rdi
	callq	_StrToAddr
	jmp	LBB0_13
LBB0_12:
	movq	_INADDR_ANY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
LBB0_13:
	leaq	L_.str.1(%rip), %rsi
	xorl	%edi, %edi
	callq	_strtok
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	leaq	-32(%rbp), %rsi
	movq	%rax, %rdi
	callq	_StrToAddr
	movq	-32(%rbp), %rdx
	jmp	LBB0_16
LBB0_15:
	movq	_INADDR_ANY@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%rdx, -32(%rbp)
LBB0_16:
	movq	_mla@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rsi
	movq	-40(%rbp), %rcx
	movl	%r14d, %r8d
	callq	_LibAliasRedirectProto
	movq	%r15, %rdi
	callq	_free
	addq	$24, %rsp
	popq	%rbx
	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_proto: missing protocol"

L_.str.3:                               ## @.str.3
	.asciz	"redirect_proto: unknown protocol %s"

L_.str.4:                               ## @.str.4
	.asciz	"redirect_proto: missing local address"

	.comm	_INADDR_ANY,8,3                 ## @INADDR_ANY
	.comm	_mla,4,2                        ## @mla
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SetupProtoRedirect             ; -- Begin function SetupProtoRedirect
	.p2align	2
_SetupProtoRedirect:                    ; @SetupProtoRedirect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	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
	bl	_getprotobyname
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w20, [x0]
	b	LBB0_7
LBB0_6:
	str	x20, [sp]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_errx
                                        ; implicit-def: $w20
LBB0_7:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, #0
	bl	_strtok
	cbz	x0, LBB0_9
; %bb.8:
	add	x1, sp, #24
	bl	_StrToAddr
	b	LBB0_10
LBB0_9:
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_10:
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, #0
	bl	_strtok
	cbz	x0, LBB0_12
; %bb.11:
	add	x1, sp, #16
	bl	_StrToAddr
	b	LBB0_13
LBB0_12:
Lloh14:
	adrp	x8, _INADDR_ANY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _INADDR_ANY@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	str	x8, [sp, #16]
LBB0_13:
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, #0
	bl	_strtok
	cbz	x0, LBB0_15
; %bb.14:
	add	x1, sp, #8
	bl	_StrToAddr
	ldr	x2, [sp, #8]
	b	LBB0_16
LBB0_15:
Lloh19:
	adrp	x8, _INADDR_ANY@GOTPAGE
Lloh20:
	ldr	x8, [x8, _INADDR_ANY@GOTPAGEOFF]
Lloh21:
	ldr	x2, [x8]
	str	x2, [sp, #8]
LBB0_16:
Lloh22:
	adrp	x8, _mla@GOTPAGE
Lloh23:
	ldr	x8, [x8, _mla@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	ldp	x3, x1, [sp, #16]
	mov	x4, x20
	bl	_LibAliasRedirectProto
	mov	x0, x19
	bl	_free
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.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_proto: missing protocol"

l_.str.3:                               ; @.str.3
	.asciz	"redirect_proto: unknown protocol %s"

l_.str.4:                               ; @.str.4
	.asciz	"redirect_proto: missing local address"

	.comm	_INADDR_ANY,8,3                 ; @INADDR_ANY
	.comm	_mla,4,2                        ; @mla
.subsections_via_symbols
