	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fetch_default_port             ## -- Begin function fetch_default_port
	.p2align	4, 0x90
_fetch_default_port:                    ## @fetch_default_port
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	callq	_getservbyname
	testq	%rax, %rax
	je	LBB0_1
## %bb.7:
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_ntohs                          ## TAILCALL
LBB0_1:
	movq	_SCHEME_FTP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	_SCHEME_HTTP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_strcmp
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_6
## %bb.4:
	movq	_HTTP_DEFAULT_PORT@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_2:
	movq	_FTP_DEFAULT_PORT@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tcp"

	.comm	_SCHEME_FTP,4,2                 ## @SCHEME_FTP
	.comm	_FTP_DEFAULT_PORT,4,2           ## @FTP_DEFAULT_PORT
	.comm	_SCHEME_HTTP,4,2                ## @SCHEME_HTTP
	.comm	_HTTP_DEFAULT_PORT,4,2          ## @HTTP_DEFAULT_PORT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fetch_default_port             ; -- Begin function fetch_default_port
	.p2align	2
_fetch_default_port:                    ; @fetch_default_port
	.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
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_getservbyname
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x0]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ntohs
LBB0_2:
Lloh2:
	adrp	x8, _SCHEME_FTP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SCHEME_FTP@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_strcmp
	cbz	x0, LBB0_4
; %bb.3:
Lloh5:
	adrp	x8, _SCHEME_HTTP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SCHEME_HTTP@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_strcmp
Lloh8:
	adrp	x8, _HTTP_DEFAULT_PORT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HTTP_DEFAULT_PORT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w0, w8, wzr, eq
	b	LBB0_5
LBB0_4:
Lloh11:
	adrp	x8, _FTP_DEFAULT_PORT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FTP_DEFAULT_PORT@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tcp"

	.comm	_SCHEME_FTP,4,2                 ; @SCHEME_FTP
	.comm	_FTP_DEFAULT_PORT,4,2           ; @FTP_DEFAULT_PORT
	.comm	_SCHEME_HTTP,4,2                ; @SCHEME_HTTP
	.comm	_HTTP_DEFAULT_PORT,4,2          ; @HTTP_DEFAULT_PORT
.subsections_via_symbols
