	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_port
_get_port:                              ## @get_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r14d, %r14d
	testq	%rsi, %rsi
	je	LBB0_20
## %bb.1:
	movq	%rdi, %r12
	movl	(%rdi), %eax
	andl	$-2, %eax
	cmpl	$138, %eax
	jne	LBB0_20
## %bb.2:
	movl	4(%r12), %eax
	addl	$-128, %eax
	cmpl	$8, %eax
	ja	LBB0_8
## %bb.3:
	movl	$267, %ecx                      ## imm = 0x10B
	btl	%eax, %ecx
	jae	LBB0_7
## %bb.4:
	movl	%edx, %r15d
	movq	%rsi, %rbx
	leaq	-36(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_str2number
	testl	%eax, %eax
	je	LBB0_9
## %bb.5:
	movq	_AI_NUMERICSERV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r12)
	je	LBB0_11
## %bb.6:
	movq	_EAI_NONAME@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_7:
	cmpl	$2, %eax
	je	LBB0_18
LBB0_8:
	movq	_EAI_SOCKTYPE@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_9:
	movl	-36(%rbp), %edi
	cmpl	$65536, %edi                    ## imm = 0x10000
	jae	LBB0_18
## %bb.10:
	callq	_htons
	testl	%r15d, %r15d
	jne	LBB0_20
	jmp	LBB0_16
LBB0_11:
	movl	$-132, %eax
	addl	12(%r12), %eax
	cmpl	$3, %eax
	ja	LBB0_13
## %bb.12:
	cltq
	leaq	l_reltable.get_port(%rip), %rcx
	movslq	(%rcx,%rax,4), %rsi
	addq	%rcx, %rsi
	jmp	LBB0_14
LBB0_13:
	xorl	%esi, %esi
LBB0_14:
	movq	%rbx, %rdi
	callq	_getservbyname
	testq	%rax, %rax
	je	LBB0_18
## %bb.15:
	movl	(%rax), %eax
	testl	%r15d, %r15d
	jne	LBB0_20
LBB0_16:
	cmpl	$139, (%r12)
	jne	LBB0_20
## %bb.17:
	movq	16(%r12), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_20
LBB0_18:
	movq	_EAI_SERVICE@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rax), %r14d
LBB0_20:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EAI_SERVICE,4,2                ## @EAI_SERVICE
	.comm	_EAI_SOCKTYPE,4,2               ## @EAI_SOCKTYPE
	.comm	_AI_NUMERICSERV,4,2             ## @AI_NUMERICSERV
	.comm	_EAI_NONAME,4,2                 ## @EAI_NONAME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"udp"

L_.str.1:                               ## @.str.1
	.asciz	"tcp"

L_.str.2:                               ## @.str.2
	.asciz	"sctp"

L_.str.3:                               ## @.str.3
	.asciz	"udplite"

	.no_dead_strip	_get_port
	.section	__TEXT,__const
	.p2align	2                               ## @reltable.get_port
l_reltable.get_port:
	.long	L_.str.3-l_reltable.get_port
	.long	L_.str-l_reltable.get_port
	.long	L_.str.1-l_reltable.get_port
	.long	L_.str.2-l_reltable.get_port

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_port
_get_port:                              ; @get_port
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	cbz	x1, LBB0_18
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0]
	and	w8, w8, #0xfffffffe
	cmp	w8, #138
	b.ne	LBB0_18
; %bb.2:
	ldr	w8, [x19, #4]
	sub	w8, w8, #128
	cmp	w8, #8
	b.hi	LBB0_8
; %bb.3:
	mov	w9, #1
	lsl	w9, w9, w8
	mov	w10, #267
	tst	w9, w10
	b.eq	LBB0_7
; %bb.4:
	mov	x20, x2
	mov	x21, x1
	add	x1, sp, #12
	mov	x0, x21
	bl	_str2number
	cbz	w0, LBB0_9
; %bb.5:
	ldr	w8, [x19, #8]
Lloh0:
	adrp	x9, _AI_NUMERICSERV@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AI_NUMERICSERV@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.6:
Lloh3:
	adrp	x8, _EAI_NONAME@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EAI_NONAME@GOTPAGEOFF]
	b	LBB0_20
LBB0_7:
	cmp	w8, #2
	b.eq	LBB0_19
LBB0_8:
Lloh5:
	adrp	x8, _EAI_SOCKTYPE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EAI_SOCKTYPE@GOTPAGEOFF]
	b	LBB0_20
LBB0_9:
	ldr	w0, [sp, #12]
	cmp	w0, #16, lsl #12                ; =65536
	b.hs	LBB0_19
; %bb.10:
	bl	_htons
	mov	x8, x0
	cbnz	w20, LBB0_18
	b	LBB0_16
LBB0_11:
	ldr	w8, [x19, #12]
	sub	w8, w8, #132
	cmp	w8, #3
	b.hi	LBB0_13
; %bb.12:
Lloh7:
	adrp	x9, l_switch.table.get_port@PAGE
Lloh8:
	add	x9, x9, l_switch.table.get_port@PAGEOFF
	ldr	x1, [x9, w8, sxtw #3]
	b	LBB0_14
LBB0_13:
	mov	x1, #0
LBB0_14:
	mov	x0, x21
	bl	_getservbyname
	cbz	x0, LBB0_19
; %bb.15:
	ldr	w8, [x0]
	cbnz	w20, LBB0_18
LBB0_16:
	ldr	w9, [x19]
	cmp	w9, #139
	b.ne	LBB0_18
; %bb.17:
	mov	w0, #0
	ldr	x9, [x19, #16]
	str	w8, [x9]
	b	LBB0_21
LBB0_18:
	mov	w0, #0
	b	LBB0_21
LBB0_19:
Lloh9:
	adrp	x8, _EAI_SERVICE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EAI_SERVICE@GOTPAGEOFF]
LBB0_20:
	ldr	w0, [x8]
LBB0_21:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EAI_SERVICE,4,2                ; @EAI_SERVICE
	.comm	_EAI_SOCKTYPE,4,2               ; @EAI_SOCKTYPE
	.comm	_AI_NUMERICSERV,4,2             ; @AI_NUMERICSERV
	.comm	_EAI_NONAME,4,2                 ; @EAI_NONAME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"udp"

l_.str.1:                               ; @.str.1
	.asciz	"tcp"

l_.str.2:                               ; @.str.2
	.asciz	"sctp"

l_.str.3:                               ; @.str.3
	.asciz	"udplite"

	.no_dead_strip	_get_port
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.get_port
l_switch.table.get_port:
	.quad	l_.str.3
	.quad	l_.str
	.quad	l_.str.1
	.quad	l_.str.2

.subsections_via_symbols
