	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pcap_nametoport                ## -- Begin function pcap_nametoport
	.p2align	4, 0x90
_pcap_nametoport:                       ## @pcap_nametoport
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r13
	leaq	-104(%rbp), %r12
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	_PF_UNSPEC@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	%rax, -72(%rbp)
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -88(%rbp)
	leaq	-48(%rbp), %rcx
	xorl	%edi, %edi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_getaddrinfo
	testl	%eax, %eax
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.3:
	movq	_EAI_NONAME@GOTPCREL(%rip), %rcx
	movl	$-1, %r12d
	cmpl	(%rcx), %eax
	je	LBB0_10
	jmp	LBB0_29
LBB0_1:
	movq	-48(%rbp), %rdi
	movl	$-1, %r12d
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.4:
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rdi, %rdx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%rdx), %rdx
	testq	%rdx, %rdx
	je	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdx), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rax), %rax
	cmpq	%rcx, %rax
	jne	LBB0_8
## %bb.7:
	movl	%eax, %edi
	callq	_ntohs
	movl	%eax, %r12d
	movq	-48(%rbp), %rdi
	jmp	LBB0_9
LBB0_2:
	xorl	%edi, %edi
LBB0_9:
	callq	_freeaddrinfo
LBB0_10:
	leaq	-104(%rbp), %rbx
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	(%r15), %rax
	movq	%rax, -72(%rbp)
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	movq	_IPPROTO_UDP@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	%rax, -88(%rbp)
	leaq	-48(%rbp), %rcx
	xorl	%edi, %edi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_getaddrinfo
	testl	%eax, %eax
	je	LBB0_11
## %bb.13:
	movq	_EAI_NONAME@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_29
## %bb.14:
	testl	%r12d, %r12d
	js	LBB0_29
## %bb.15:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%r12d, (%rax)
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_28
LBB0_11:
	movq	-48(%rbp), %rdi
	movl	$-1, %r13d
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.16:
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rdi, %rdx
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	8(%rdx), %rdx
	testq	%rdx, %rdx
	je	LBB0_21
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdx), %rax
	testq	%rax, %rax
	je	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	(%rax), %rax
	cmpq	%rcx, %rax
	jne	LBB0_20
## %bb.19:
	movl	%eax, %edi
	callq	_ntohs
	movl	%eax, %r13d
	movq	-48(%rbp), %rdi
	jmp	LBB0_21
LBB0_12:
	xorl	%edi, %edi
LBB0_21:
	callq	_freeaddrinfo
	testl	%r12d, %r12d
	js	LBB0_25
## %bb.22:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%r12d, (%rax)
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movl	$1, %r14d
	testl	%r13d, %r13d
	js	LBB0_29
## %bb.23:
	cmpl	%r12d, %r13d
	jne	LBB0_29
## %bb.24:
	movq	_PROTO_UNDEF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_28
LBB0_25:
	testl	%r13d, %r13d
	js	LBB0_26
## %bb.27:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%r13d, (%rax)
	movl	(%r15), %eax
LBB0_28:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movl	$1, %r14d
LBB0_29:
	movl	%r14d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	xorl	%r14d, %r14d
	jmp	LBB0_29
	.cfi_endproc
                                        ## -- End function
	.comm	_PF_UNSPEC,8,3                  ## @PF_UNSPEC
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_IPPROTO_TCP,8,3                ## @IPPROTO_TCP
	.comm	_EAI_NONAME,4,2                 ## @EAI_NONAME
	.comm	_AF_INET,8,3                    ## @AF_INET
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
	.comm	_IPPROTO_UDP,8,3                ## @IPPROTO_UDP
	.comm	_PROTO_UNDEF,4,2                ## @PROTO_UNDEF
	.comm	_AF_INET6,8,3                   ## @AF_INET6
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pcap_nametoport                ; -- Begin function pcap_nametoport
	.p2align	2
_pcap_nametoport:                       ; @pcap_nametoport
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #40
	bl	_memset
Lloh0:
	adrp	x25, _PF_UNSPEC@GOTPAGE
Lloh1:
	ldr	x25, [x25, _PF_UNSPEC@GOTPAGEOFF]
	ldr	x8, [x25]
	str	x8, [sp, #40]
Lloh2:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [sp, #32]
Lloh5:
	adrp	x23, _IPPROTO_TCP@GOTPAGE
Lloh6:
	ldr	x23, [x23, _IPPROTO_TCP@GOTPAGEOFF]
	ldr	x8, [x23]
	str	x8, [sp, #24]
	add	x2, sp, #8
	mov	x3, sp
	mov	x0, #0
	mov	x1, x22
	bl	_getaddrinfo
Lloh7:
	adrp	x24, _EAI_NONAME@GOTPAGE
Lloh8:
	ldr	x24, [x24, _EAI_NONAME@GOTPAGEOFF]
	cbz	w0, LBB0_3
; %bb.1:
	ldr	w8, [x24]
	cmp	w0, w8
	b.ne	LBB0_23
; %bb.2:
	mov	w21, #-1
	b	LBB0_11
LBB0_3:
	ldr	x0, [sp]
	cbz	x0, LBB0_9
; %bb.4:
Lloh9:
	adrp	x8, _AF_INET@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x8]
	mov	x10, x0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x10, [x10, #8]
	cbz	x10, LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x10]
	cbz	x8, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x8]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.8:
	mov	x0, x8
	bl	_ntohs
	mov	x21, x0
	ldr	x0, [sp]
	b	LBB0_10
LBB0_9:
	mov	w21, #-1
LBB0_10:
	bl	_freeaddrinfo
LBB0_11:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	ldr	x8, [x25]
	str	x8, [sp, #40]
Lloh12:
	adrp	x8, _SOCK_DGRAM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SOCK_DGRAM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [sp, #32]
Lloh15:
	adrp	x25, _IPPROTO_UDP@GOTPAGE
Lloh16:
	ldr	x25, [x25, _IPPROTO_UDP@GOTPAGEOFF]
	ldr	x8, [x25]
	str	x8, [sp, #24]
	add	x2, sp, #8
	mov	x3, sp
	mov	x0, #0
	mov	x1, x22
	bl	_getaddrinfo
	cbz	w0, LBB0_15
; %bb.12:
	mov	x8, x0
	mov	w0, #0
	ldr	w9, [x24]
	cmp	w8, w9
	b.ne	LBB0_29
; %bb.13:
	tbnz	w21, #31, LBB0_29
; %bb.14:
	str	w21, [x20]
	ldr	w8, [x23]
	b	LBB0_28
LBB0_15:
	ldr	x0, [sp]
	cbz	x0, LBB0_24
; %bb.16:
Lloh17:
	adrp	x8, _AF_INET@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x8]
	mov	x10, x0
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	ldr	x10, [x10, #8]
	cbz	x10, LBB0_24
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x10]
	cbz	x8, LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x8, [x8]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.20:
	mov	x0, x8
	bl	_ntohs
	mov	x22, x0
	ldr	x0, [sp]
	bl	_freeaddrinfo
	tbz	w21, #31, LBB0_25
LBB0_21:
	tbnz	w22, #31, LBB0_23
; %bb.22:
	str	w22, [x20]
	ldr	w8, [x25]
	b	LBB0_28
LBB0_23:
	mov	w0, #0
	b	LBB0_29
LBB0_24:
	mov	w22, #-1
	bl	_freeaddrinfo
	tbnz	w21, #31, LBB0_21
LBB0_25:
	str	w21, [x20]
	ldr	x8, [x23]
	str	w8, [x19]
	mov	w0, #1
	tbnz	w22, #31, LBB0_29
; %bb.26:
	cmp	w22, w21
	b.ne	LBB0_29
; %bb.27:
Lloh20:
	adrp	x8, _PROTO_UNDEF@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PROTO_UNDEF@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
LBB0_28:
	str	w8, [x19]
	mov	w0, #1
LBB0_29:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_PF_UNSPEC,8,3                  ; @PF_UNSPEC
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_IPPROTO_TCP,8,3                ; @IPPROTO_TCP
	.comm	_EAI_NONAME,4,2                 ; @EAI_NONAME
	.comm	_AF_INET,8,3                    ; @AF_INET
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
	.comm	_IPPROTO_UDP,8,3                ; @IPPROTO_UDP
	.comm	_PROTO_UNDEF,4,2                ; @PROTO_UNDEF
	.comm	_AF_INET6,8,3                   ; @AF_INET6
.subsections_via_symbols
