	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setup_redir_proto
_setup_redir_proto:                     ## @setup_redir_proto
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_REDIR_PROTO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rdi)
	movq	(%rdx), %rax
	movq	(%rax), %rdi
	callq	_getprotobyname
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
	jmp	LBB0_3
LBB0_1:
	movq	_EX_DATAERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rax
	movq	(%rax), %rdx
	leaq	L_.str(%rip), %rsi
	callq	_errx
LBB0_3:
	movq	(%rbx), %rax
	leaq	8(%rax), %rcx
	movq	%rcx, (%rbx)
	decl	(%r14)
	movq	8(%rax), %rdi
	leaq	16(%r15), %rsi
	callq	_StrToAddr
	movq	(%rbx), %rax
	addq	$8, %rax
	movq	%rax, (%rbx)
	decl	(%r14)
	je	LBB0_4
## %bb.5:
	movq	(%rax), %rax
	movsbl	(%rax), %edi
	callq	_isdigit
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	leaq	8(%r15), %rsi
	callq	_StrToAddr
	movq	(%rbx), %rax
	addq	$8, %rax
	movq	%rax, (%rbx)
	decl	(%r14)
	je	LBB0_9
## %bb.7:
	movq	(%rax), %rax
	movsbl	(%rax), %edi
	callq	_isdigit
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	movq	%r15, %rsi
	callq	_StrToAddr
	addq	$8, (%rbx)
	decl	(%r14)
	jmp	LBB0_9
LBB0_4:
	movq	_INADDR_ANY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r15)
	movq	%rax, (%r15)
LBB0_9:
	movl	$32, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REDIR_PROTO,4,2                ## @REDIR_PROTO
	.comm	_EX_DATAERR,4,2                 ## @EX_DATAERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"redirect_proto: unknown protocol %s"

	.comm	_INADDR_ANY,8,3                 ## @INADDR_ANY
	.no_dead_strip	_setup_redir_proto
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setup_redir_proto
_setup_redir_proto:                     ; @setup_redir_proto
	.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	x20, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _REDIR_PROTO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REDIR_PROTO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #28]
	ldr	x8, [x2]
	ldr	x0, [x8]
	bl	_getprotobyname
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x0]
	str	w8, [x21, #24]
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _EX_DATAERR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EX_DATAERR@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	x8, [x20]
	ldr	x2, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_errx
LBB0_3:
	ldr	x8, [x20]
	add	x9, x8, #8
	str	x9, [x20]
	ldr	w9, [x19]
	sub	w9, w9, #1
	str	w9, [x19]
	ldr	x0, [x8, #8]
	add	x1, x21, #16
	bl	_StrToAddr
	ldr	x8, [x20]
	add	x8, x8, #8
	str	x8, [x20]
	ldr	w9, [x19]
	subs	w9, w9, #1
	str	w9, [x19]
	b.eq	LBB0_8
; %bb.4:
	ldr	x8, [x8]
	ldrsb	w0, [x8]
	bl	_isdigit
	cbz	x0, LBB0_9
; %bb.5:
	ldr	x8, [x20]
	ldr	x0, [x8]
	add	x1, x21, #8
	bl	_StrToAddr
	ldr	x8, [x20]
	add	x8, x8, #8
	str	x8, [x20]
	ldr	w9, [x19]
	subs	w9, w9, #1
	str	w9, [x19]
	b.eq	LBB0_9
; %bb.6:
	ldr	x8, [x8]
	ldrsb	w0, [x8]
	bl	_isdigit
	cbz	x0, LBB0_9
; %bb.7:
	ldr	x8, [x20]
	ldr	x0, [x8]
	mov	x1, x21
	bl	_StrToAddr
	ldr	x8, [x20]
	add	x8, x8, #8
	str	x8, [x20]
	ldr	w8, [x19]
	sub	w8, w8, #1
	str	w8, [x19]
	b	LBB0_9
LBB0_8:
Lloh8:
	adrp	x8, _INADDR_ANY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _INADDR_ANY@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	stp	x8, x8, [x21]
LBB0_9:
	mov	w0, #32
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_REDIR_PROTO,4,2                ; @REDIR_PROTO
	.comm	_EX_DATAERR,4,2                 ; @EX_DATAERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"redirect_proto: unknown protocol %s"

	.comm	_INADDR_ANY,8,3                 ; @INADDR_ANY
	.no_dead_strip	_setup_redir_proto
.subsections_via_symbols
