	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pcap_open_rpcap                ## -- Begin function pcap_open_rpcap
	.p2align	4, 0x90
_pcap_open_rpcap:                       ## @pcap_open_rpcap
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r12
	movq	%r8, -144(%rbp)                 ## 8-byte Spill
	movl	%ecx, %r14d
	movl	%edx, -76(%rbp)                 ## 4-byte Spill
	movl	%esi, %r15d
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PCAP_BUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -136(%rbp)                ## 8-byte Spill
	movq	_RPCAP_NETBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -128(%rbp)                ## 8-byte Spill
	movl	$0, -80(%rbp)
	movq	%r12, -104(%rbp)                ## 8-byte Spill
	movq	%r12, %rdi
	movl	$16, %esi
	callq	_pcap_create_common
	testq	%rax, %rax
	je	LBB0_29
## %bb.1:
	movq	%rax, %r12
	movq	%r13, %rdi
	callq	_strdup
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	_MAXIMUM_SNAPLEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%r15d, %ecx
	movl	%r15d, %edx
	cmovll	%ecx, %edx
	testl	%r15d, %r15d
	cmovlel	%ecx, %edx
	movq	%rax, 56(%r12)
	movl	%edx, (%r12)
	movl	%r14d, 64(%r12)
	movq	72(%r12), %r13
	movl	-76(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%r13)
	leaq	-116(%rbp), %rsi
	movq	%rax, %rdi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	-136(%rbp), %r8                 ## 8-byte Reload
	movq	-104(%rbp), %r15                ## 8-byte Reload
	movq	%r15, %r9
	callq	_pcap_parsesrcstr
	cmpl	$-1, %eax
	je	LBB0_28
## %bb.4:
	movl	-116(%rbp), %eax
	movq	_PCAP_SRC_IFREMOTE@GOTPCREL(%rip), %rcx
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	cmpl	(%rcx), %eax
	jne	LBB0_5
## %bb.6:
	movq	%r15, %rdi
	callq	_sock_init
	cmpl	$-1, %eax
	je	LBB0_28
## %bb.7:
	leaq	-120(%rbp), %rsi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_rpcap_remoteact_getsock
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movl	(%r14), %eax
	movl	4(%r14), %ecx
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	movl	%eax, -60(%rbp)
LBB0_17:
	movq	_RPCAP_NETBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_SOCKBUF_CHECKONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	leaq	-80(%rbp), %rcx
	xorl	%edi, %edi
	movl	$4, %esi
	xorl	%edx, %edx
	pushq	%rax
	pushq	%r15
	callq	_sock_bufferize
	addq	$16, %rsp
	testq	%rax, %rax
	jne	LBB0_25
## %bb.18:
	movl	-60(%rbp), %ebx
	movq	_RPCAP_MSG_OPEN_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movq	-136(%rbp), %r15                ## 8-byte Reload
	movq	%r15, %rdi
	callq	_strlen
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movq	-128(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	-76(%rbp), %edx                 ## 4-byte Reload
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	xorl	%ecx, %ecx
	movl	%eax, %r8d
	callq	_rpcap_createhdr
	movq	%r15, %rdi
	callq	_strlen
	movq	_RPCAP_NETBUF_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	_SOCKBUF_BUFFERIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	leaq	-80(%rbp), %rcx
	movq	%r15, %rdi
	movq	%rbx, %r15
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rbx
	movl	%eax, %esi
	movq	%r14, %rdx
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	pushq	%r10
	pushq	%r15
	callq	_sock_bufferize
	addq	$16, %rsp
	testq	%rax, %rax
	je	LBB0_19
LBB0_25:
	testq	%r14, %r14
	jne	LBB0_28
## %bb.26:
	movl	-56(%rbp), %edi                 ## 4-byte Reload
LBB0_27:
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_sock_close
	jmp	LBB0_28
LBB0_2:
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	callq	_pcap_fmt_errmsg_for_errno
	jmp	LBB0_29
LBB0_5:
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	callq	_pcap_snprintf
LBB0_28:
	movq	%r12, %rdi
	callq	_pcap_close
LBB0_29:
	xorl	%r12d, %r12d
LBB0_30:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_32
## %bb.31:
	movq	%r12, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	cmpl	$0, -120(%rbp)
	jne	LBB0_28
## %bb.10:
	leaq	-72(%rbp), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	_PF_UNSPEC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	cmpb	$0, (%rsi)
	jne	LBB0_12
## %bb.11:
	movq	_RPCAP_DEFAULT_NETPORT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
LBB0_12:
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	-72(%rbp), %rdx
	leaq	-96(%rbp), %rcx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %r8
	callq	_sock_initaddress
	cmpl	$-1, %eax
	je	LBB0_28
## %bb.13:
	movq	-96(%rbp), %rdi
	movq	_SOCKOPEN_CLIENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%edx, %edx
	movq	%r15, %rcx
	callq	_sock_open
	movl	%eax, %ebx
	movq	_INVALID_SOCKET@GOTPCREL(%rip), %rax
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movl	(%rax), %r14d
	movq	-96(%rbp), %rdi
	callq	_freeaddrinfo
	cmpl	%r14d, %ebx
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_28
## %bb.14:
	leaq	-60(%rbp), %rsi
	movl	%ebx, %edi
	movq	-144(%rbp), %rdx                ## 8-byte Reload
	movq	%r15, %rcx
	callq	_rpcap_doauth
	cmpl	$-1, %eax
	je	LBB0_15
## %bb.16:
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	jmp	LBB0_17
LBB0_19:
	movl	-80(%rbp), %edx
	movl	(%rbx), %r8d
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	movq	-128(%rbp), %rsi                ## 8-byte Reload
	movq	%r15, %rcx
	callq	_sock_send
	testq	%rax, %rax
	js	LBB0_25
## %bb.20:
	movl	-60(%rbp), %esi
	movq	_RPCAP_MSG_OPEN_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-112(%rbp), %rcx
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	movq	%r15, %r8
	callq	_rpcap_process_msg_header
	cmpl	$-1, %eax
	je	LBB0_25
## %bb.21:
	movl	-112(%rbp), %eax
	movl	%eax, -96(%rbp)
	leaq	-72(%rbp), %rsi
	leaq	-96(%rbp), %rcx
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	movl	$8, %edx
	movq	%r15, %r8
	callq	_rpcap_recv
	movl	8(%r13), %edi
	movl	-96(%rbp), %esi
	cmpl	$-1, %eax
	je	LBB0_24
## %bb.22:
	movq	%r15, %rdx
	callq	_rpcap_discard
	cmpl	$-1, %eax
	je	LBB0_25
## %bb.23:
	movl	-68(%rbp), %edi
	callq	_ntohl
	movq	%rax, 48(%r12)
	movl	-72(%rbp), %edi
	callq	_ntohl
	movq	%rax, 40(%r12)
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 8(%r13)
	movl	-60(%rbp), %eax
	movl	%eax, 12(%r13)
	movl	$1, 4(%r13)
	movq	_pcap_read_rpcap@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r12)
	movq	_pcap_save_current_filter_rpcap@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r12)
	movq	_pcap_setfilter_rpcap@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r12)
	movq	_pcap_getnonblock_rpcap@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	movq	_pcap_setnonblock_rpcap@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r12)
	movq	_pcap_stats_rpcap@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movq	_pcap_cleanup_rpcap@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	movl	$1, 4(%r12)
	jmp	LBB0_30
LBB0_15:
	movl	%ebx, %edi
	jmp	LBB0_27
LBB0_24:
	xorl	%edx, %edx
	callq	_rpcap_discard
	jmp	LBB0_25
LBB0_32:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PCAP_BUF_SIZE,4,2              ## @PCAP_BUF_SIZE
	.comm	_RPCAP_NETBUF_SIZE,4,2          ## @RPCAP_NETBUF_SIZE
	.comm	_PCAP_ERRBUF_SIZE,4,2           ## @PCAP_ERRBUF_SIZE
	.comm	_errno,4,2                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"malloc"

	.comm	_MAXIMUM_SNAPLEN,4,2            ## @MAXIMUM_SNAPLEN
	.comm	_PCAP_SRC_IFREMOTE,4,2          ## @PCAP_SRC_IFREMOTE
L_.str.1:                               ## @.str.1
	.asciz	"This function is able to open only remote interfaces"

	.comm	_PF_UNSPEC,4,2                  ## @PF_UNSPEC
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
	.comm	_RPCAP_DEFAULT_NETPORT,8,3      ## @RPCAP_DEFAULT_NETPORT
	.comm	_SOCKOPEN_CLIENT,4,2            ## @SOCKOPEN_CLIENT
	.comm	_INVALID_SOCKET,4,2             ## @INVALID_SOCKET
	.comm	_SOCKBUF_CHECKONLY,4,2          ## @SOCKBUF_CHECKONLY
	.comm	_RPCAP_MSG_OPEN_REQ,4,2         ## @RPCAP_MSG_OPEN_REQ
	.comm	_SOCKBUF_BUFFERIZE,4,2          ## @SOCKBUF_BUFFERIZE
	.comm	_pcap_read_rpcap,4,2            ## @pcap_read_rpcap
	.comm	_pcap_save_current_filter_rpcap,4,2 ## @pcap_save_current_filter_rpcap
	.comm	_pcap_setfilter_rpcap,4,2       ## @pcap_setfilter_rpcap
	.comm	_pcap_getnonblock_rpcap,4,2     ## @pcap_getnonblock_rpcap
	.comm	_pcap_setnonblock_rpcap,4,2     ## @pcap_setnonblock_rpcap
	.comm	_pcap_stats_rpcap,4,2           ## @pcap_stats_rpcap
	.comm	_pcap_cleanup_rpcap,4,2         ## @pcap_cleanup_rpcap
	.comm	_pcap_stats_ex_rpcap,4,2        ## @pcap_stats_ex_rpcap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pcap_open_rpcap                ; -- Begin function pcap_open_rpcap
	.p2align	2
_pcap_open_rpcap:                       ; @pcap_open_rpcap
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #64
	mov	x20, x5
	stur	x4, [x29, #-136]                ; 8-byte Folded Spill
	mov	x27, x3
	mov	x23, x2
	mov	x28, x1
	mov	x24, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _PCAP_BUF_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCAP_BUF_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x12, x10, #0x1fffffff0
	sub	x25, x9, x12
	mov	sp, x25
	mov	x9, x8
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x26, x9, x12
	mov	sp, x26
	mov	x9, x8
Lloh10:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh11:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x22, x8, x12
	mov	sp, x22
Lloh12:
	adrp	x8, _RPCAP_NETBUF_SIZE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RPCAP_NETBUF_SIZE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	mov	x9, x8
Lloh15:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh16:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	stur	wzr, [x29, #-100]
	mov	x0, x5
	mov	w1, #16
	bl	_pcap_create_common
	mov	x19, x0
	cbz	x0, LBB0_15
; %bb.1:
	mov	x0, x24
	bl	_strdup
	cbz	x0, LBB0_11
; %bb.2:
Lloh17:
	adrp	x8, _MAXIMUM_SNAPLEN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MAXIMUM_SNAPLEN@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmp	w8, w28
	ccmp	w28, #1, #8, ge
	csel	w8, w8, w28, lt
	str	x0, [x19, #56]
	str	w8, [x19]
	str	w27, [x19, #64]
	ldr	x27, [x19, #72]
	str	w23, [x27]
	sub	x1, x29, #104
	mov	x2, x25
	mov	x3, x26
	mov	x4, x22
	mov	x5, x20
	bl	_pcap_parsesrcstr
	cmn	w0, #1
	b.eq	LBB0_13
; %bb.3:
Lloh20:
	adrp	x8, _PCAP_SRC_IFREMOTE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PCAP_SRC_IFREMOTE@GOTPAGEOFF]
	ldur	w9, [x29, #-104]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x28, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh24:
	ldr	x28, [x28, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
	ldr	w1, [x28]
	cmp	w9, w8
	b.ne	LBB0_12
; %bb.4:
	mov	x0, x20
	bl	_sock_init
	cmn	w0, #1
	b.eq	LBB0_13
; %bb.5:
	sub	x1, x29, #92
	mov	x0, x25
	mov	x2, x20
	bl	_rpcap_remoteact_getsock
	mov	x23, x0
	cbz	x0, LBB0_17
; %bb.6:
	ldp	w8, w25, [x23]
	stur	w8, [x29, #-96]
Lloh25:
	adrp	x26, _RPCAP_NETBUF_SIZE@GOTPAGE
Lloh26:
	ldr	x26, [x26, _RPCAP_NETBUF_SIZE@GOTPAGEOFF]
LBB0_7:
	ldr	w4, [x26]
Lloh27:
	adrp	x8, _SOCKBUF_CHECKONLY@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SOCKBUF_CHECKONLY@GOTPAGEOFF]
Lloh29:
	ldr	w5, [x8]
	ldr	w7, [x28]
	sub	x3, x29, #100
	mov	x0, #0
	mov	w1, #4
	mov	x2, #0
	mov	x6, x20
	bl	_sock_bufferize
	cbnz	x0, LBB0_9
; %bb.8:
	ldur	w24, [x29, #-96]
Lloh30:
	adrp	x8, _RPCAP_MSG_OPEN_REQ@GOTPAGE
Lloh31:
	ldr	x8, [x8, _RPCAP_MSG_OPEN_REQ@GOTPAGEOFF]
	stur	w25, [x29, #-136]               ; 4-byte Folded Spill
	mov	x25, x26
Lloh32:
	ldr	w26, [x8]
	mov	x0, x22
	bl	_strlen
	mov	x4, x0
	mov	x0, x21
	mov	x1, x24
	mov	x2, x26
	mov	w3, #0
                                        ; kill: def $w4 killed $w4 killed $x4
	bl	_rpcap_createhdr
	mov	x0, x22
	bl	_strlen
	mov	x1, x0
	ldr	w4, [x25]
	ldur	w25, [x29, #-136]               ; 4-byte Folded Reload
Lloh33:
	adrp	x8, _SOCKBUF_BUFFERIZE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _SOCKBUF_BUFFERIZE@GOTPAGEOFF]
Lloh35:
	ldr	w5, [x8]
	ldr	w7, [x28]
	sub	x3, x29, #100
	mov	x0, x22
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x2, x21
	mov	x6, x20
	bl	_sock_bufferize
	cbz	x0, LBB0_20
LBB0_9:
	cbnz	x23, LBB0_13
LBB0_10:
	mov	x0, x25
	mov	x1, #0
	mov	w2, #0
	bl	_sock_close
	b	LBB0_13
LBB0_11:
Lloh36:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
Lloh39:
	adrp	x8, _errno@GOTPAGE
Lloh40:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh41:
	ldr	w2, [x8]
Lloh42:
	adrp	x3, l_.str@PAGE
Lloh43:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	bl	_pcap_fmt_errmsg_for_errno
	b	LBB0_14
LBB0_12:
Lloh44:
	adrp	x2, l_.str.1@PAGE
Lloh45:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_pcap_snprintf
LBB0_13:
	mov	x0, x19
	bl	_pcap_close
LBB0_14:
	mov	x19, #0
LBB0_15:
	ldur	x8, [x29, #-88]
Lloh46:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh47:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh48:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_30
; %bb.16:
	mov	x0, x19
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_17:
	ldur	w8, [x29, #-92]
	cbnz	w8, LBB0_13
; %bb.18:
	sub	x0, x29, #120
	mov	w1, #0
	mov	w2, #8
	bl	_memset
Lloh49:
	adrp	x8, _PF_UNSPEC@GOTPAGE
Lloh50:
	ldr	x8, [x8, _PF_UNSPEC@GOTPAGEOFF]
Lloh51:
	ldr	w8, [x8]
Lloh52:
	adrp	x9, _SOCK_STREAM@GOTPAGE
Lloh53:
	ldr	x9, [x9, _SOCK_STREAM@GOTPAGEOFF]
Lloh54:
	ldr	w9, [x9]
	stp	w9, w8, [x29, #-120]
	ldrb	w8, [x26]
	cbz	w8, LBB0_25
; %bb.19:
	ldr	w5, [x28]
	sub	x2, x29, #120
	sub	x3, x29, #128
	mov	x0, x25
	mov	x1, x26
	b	LBB0_26
LBB0_20:
	ldur	w2, [x29, #-100]
	ldr	w4, [x28]
	mov	x0, x25
	mov	x1, x21
	mov	x3, x20
	bl	_sock_send
	tbnz	x0, #63, LBB0_9
; %bb.21:
	ldur	w1, [x29, #-96]
Lloh55:
	adrp	x8, _RPCAP_MSG_OPEN_REQ@GOTPAGE
Lloh56:
	ldr	x8, [x8, _RPCAP_MSG_OPEN_REQ@GOTPAGEOFF]
Lloh57:
	ldr	w2, [x8]
	sub	x3, x29, #112
	mov	x0, x25
	mov	x4, x20
	bl	_rpcap_process_msg_header
	cmn	w0, #1
	b.eq	LBB0_9
; %bb.22:
	ldur	w8, [x29, #-112]
	stur	w8, [x29, #-128]
	sub	x1, x29, #120
	sub	x3, x29, #128
	mov	x0, x25
	mov	w2, #8
	mov	x4, x20
	bl	_rpcap_recv
	mov	x8, x0
	ldr	w0, [x27, #8]
	ldur	w1, [x29, #-128]
	cmn	w8, #1
	b.eq	LBB0_29
; %bb.23:
	mov	x2, x20
	bl	_rpcap_discard
	cmn	w0, #1
	b.eq	LBB0_9
; %bb.24:
	ldur	w0, [x29, #-116]
	bl	_ntohl
	str	x0, [x19, #48]
	ldur	w0, [x29, #-120]
	bl	_ntohl
	str	x0, [x19, #40]
	ldur	w8, [x29, #-96]
	stp	w25, w8, [x27, #8]
	mov	w8, #1
	str	w8, [x27, #4]
Lloh58:
	adrp	x9, _pcap_read_rpcap@GOTPAGE
Lloh59:
	ldr	x9, [x9, _pcap_read_rpcap@GOTPAGEOFF]
Lloh60:
	ldr	w9, [x9]
Lloh61:
	adrp	x10, _pcap_save_current_filter_rpcap@GOTPAGE
Lloh62:
	ldr	x10, [x10, _pcap_save_current_filter_rpcap@GOTPAGEOFF]
Lloh63:
	ldr	w10, [x10]
	stp	w10, w9, [x19, #32]
Lloh64:
	adrp	x9, _pcap_setfilter_rpcap@GOTPAGE
Lloh65:
	ldr	x9, [x9, _pcap_setfilter_rpcap@GOTPAGEOFF]
Lloh66:
	ldr	w9, [x9]
Lloh67:
	adrp	x10, _pcap_getnonblock_rpcap@GOTPAGE
Lloh68:
	ldr	x10, [x10, _pcap_getnonblock_rpcap@GOTPAGEOFF]
Lloh69:
	ldr	w10, [x10]
Lloh70:
	adrp	x11, _pcap_setnonblock_rpcap@GOTPAGE
Lloh71:
	ldr	x11, [x11, _pcap_setnonblock_rpcap@GOTPAGEOFF]
	stp	w10, w9, [x19, #24]
Lloh72:
	ldr	w9, [x11]
Lloh73:
	adrp	x10, _pcap_stats_rpcap@GOTPAGE
Lloh74:
	ldr	x10, [x10, _pcap_stats_rpcap@GOTPAGEOFF]
Lloh75:
	ldr	w10, [x10]
	stp	w10, w9, [x19, #16]
Lloh76:
	adrp	x9, _pcap_cleanup_rpcap@GOTPAGE
Lloh77:
	ldr	x9, [x9, _pcap_cleanup_rpcap@GOTPAGEOFF]
Lloh78:
	ldr	w9, [x9]
	stp	w8, w9, [x19, #4]
	b	LBB0_15
LBB0_25:
Lloh79:
	adrp	x8, _RPCAP_DEFAULT_NETPORT@GOTPAGE
Lloh80:
	ldr	x8, [x8, _RPCAP_DEFAULT_NETPORT@GOTPAGEOFF]
Lloh81:
	ldr	x1, [x8]
	ldr	w5, [x28]
	sub	x2, x29, #120
	sub	x3, x29, #128
	mov	x0, x25
LBB0_26:
	mov	x4, x20
	bl	_sock_initaddress
	cmn	w0, #1
	b.eq	LBB0_13
; %bb.27:
	ldur	x0, [x29, #-128]
Lloh82:
	adrp	x8, _SOCKOPEN_CLIENT@GOTPAGE
Lloh83:
	ldr	x8, [x8, _SOCKOPEN_CLIENT@GOTPAGEOFF]
Lloh84:
	ldr	w1, [x8]
	ldr	w4, [x28]
	mov	w2, #0
	mov	x3, x20
	bl	_sock_open
	mov	x25, x0
Lloh85:
	adrp	x8, _INVALID_SOCKET@GOTPAGE
Lloh86:
	ldr	x8, [x8, _INVALID_SOCKET@GOTPAGEOFF]
Lloh87:
	ldr	w24, [x8]
	ldur	x0, [x29, #-128]
	bl	_freeaddrinfo
	cmp	w25, w24
	b.eq	LBB0_13
; %bb.28:
	sub	x1, x29, #96
	mov	x0, x25
	ldur	x2, [x29, #-136]                ; 8-byte Folded Reload
	mov	x3, x20
	bl	_rpcap_doauth
	cmn	w0, #1
Lloh88:
	adrp	x26, _RPCAP_NETBUF_SIZE@GOTPAGE
Lloh89:
	ldr	x26, [x26, _RPCAP_NETBUF_SIZE@GOTPAGEOFF]
	b.ne	LBB0_7
	b	LBB0_10
LBB0_29:
	mov	x2, #0
	bl	_rpcap_discard
	b	LBB0_9
LBB0_30:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGot	Lloh88, Lloh89
	.cfi_endproc
                                        ; -- End function
	.comm	_PCAP_BUF_SIZE,4,2              ; @PCAP_BUF_SIZE
	.comm	_RPCAP_NETBUF_SIZE,4,2          ; @RPCAP_NETBUF_SIZE
	.comm	_PCAP_ERRBUF_SIZE,4,2           ; @PCAP_ERRBUF_SIZE
	.comm	_errno,4,2                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"malloc"

	.comm	_MAXIMUM_SNAPLEN,4,2            ; @MAXIMUM_SNAPLEN
	.comm	_PCAP_SRC_IFREMOTE,4,2          ; @PCAP_SRC_IFREMOTE
l_.str.1:                               ; @.str.1
	.asciz	"This function is able to open only remote interfaces"

	.comm	_PF_UNSPEC,4,2                  ; @PF_UNSPEC
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
	.comm	_RPCAP_DEFAULT_NETPORT,8,3      ; @RPCAP_DEFAULT_NETPORT
	.comm	_SOCKOPEN_CLIENT,4,2            ; @SOCKOPEN_CLIENT
	.comm	_INVALID_SOCKET,4,2             ; @INVALID_SOCKET
	.comm	_SOCKBUF_CHECKONLY,4,2          ; @SOCKBUF_CHECKONLY
	.comm	_RPCAP_MSG_OPEN_REQ,4,2         ; @RPCAP_MSG_OPEN_REQ
	.comm	_SOCKBUF_BUFFERIZE,4,2          ; @SOCKBUF_BUFFERIZE
	.comm	_pcap_read_rpcap,4,2            ; @pcap_read_rpcap
	.comm	_pcap_save_current_filter_rpcap,4,2 ; @pcap_save_current_filter_rpcap
	.comm	_pcap_setfilter_rpcap,4,2       ; @pcap_setfilter_rpcap
	.comm	_pcap_getnonblock_rpcap,4,2     ; @pcap_getnonblock_rpcap
	.comm	_pcap_setnonblock_rpcap,4,2     ; @pcap_setnonblock_rpcap
	.comm	_pcap_stats_rpcap,4,2           ; @pcap_stats_rpcap
	.comm	_pcap_cleanup_rpcap,4,2         ; @pcap_cleanup_rpcap
	.comm	_pcap_stats_ex_rpcap,4,2        ; @pcap_stats_ex_rpcap
.subsections_via_symbols
