	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcap_read_nocb_remote
_pcap_read_nocb_remote:                 ## @pcap_read_nocb_remote
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	40(%rdi), %r12
	movslq	32(%rdi), %rax
	imulq	$274877907, %rax, %rcx          ## imm = 0x10624DD3
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$38, %rcx
	addl	%edx, %ecx
	movl	%ecx, -64(%rbp)
	imull	$-1000, %ecx, %ecx              ## imm = 0xFC18
	addl	%eax, %ecx
	imull	$1000, %ecx, %eax               ## imm = 0x3E8
	movl	%eax, -60(%rbp)
	leaq	-68(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_FD_ZERO
	movq	16(%r12), %rdi
	movq	%rbx, %rsi
	callq	_FD_SET
	movl	16(%r12), %edi
	incl	%edi
	leaq	-64(%rbp), %r8
	movq	%rbx, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_select
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_28
## %bb.1:
	cmpl	$-1, %ebx
	jne	LBB0_4
## %bb.2:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EINTR@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	je	LBB0_28
## %bb.3:
	movl	4(%r13), %esi
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rdi
	callq	_sock_geterror
	jmp	LBB0_27
LBB0_4:
	movq	16(%r13), %rbx
	movq	_PCAP_OPENFLAG_DATATX_UDP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_8
## %bb.5:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	16(%r12), %rdi
	movl	(%r13), %edx
	movl	4(%r13), %ecx
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, %r14
	movq	%rbx, %rsi
	callq	_sock_recv_dgram
	movl	%eax, %ebx
	cmpl	$-1, %eax
	je	LBB0_28
## %bb.6:
	cmpl	$-3, %ebx
	je	LBB0_7
## %bb.14:
	cmpl	$15, %ebx
	ja	LBB0_19
## %bb.15:
	movl	4(%r13), %edi
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_26
LBB0_8:
	cmpq	$15, 8(%r13)
	ja	LBB0_12
## %bb.9:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %r14
	movq	16(%r12), %rdi
	movq	%r13, %rsi
	movl	$16, %edx
	callq	_rpcap_read_packet_msg
	movl	%eax, %ebx
	cmpl	$-1, %eax
	je	LBB0_28
## %bb.10:
	cmpl	$-3, %ebx
	movq	%r14, %rbx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_7
LBB0_12:
	movl	(%rbx), %edi
	callq	_ntohl
                                        ## kill: def $eax killed $eax def $rax
	movslq	%eax, %rdx
	movslq	(%r13), %rcx
	addq	$-16, %rcx
	cmpq	%rdx, %rcx
	jae	LBB0_16
## %bb.13:
	movl	4(%r13), %edi
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	jmp	LBB0_26
LBB0_16:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	16(%r12), %rdi
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leal	16(%rax), %edx
	movq	%r13, %rsi
	callq	_rpcap_read_packet_msg
	movl	%eax, %ebx
	cmpl	$-1, %eax
	je	LBB0_28
## %bb.17:
	cmpl	$-3, %ebx
	jne	LBB0_21
LBB0_7:
	xorl	%ebx, %ebx
	jmp	LBB0_28
LBB0_19:
	movslq	%ebx, %rbx
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	(%r14), %edi
	callq	_ntohl
                                        ## kill: def $eax killed $eax def $rax
	movslq	%eax, %rcx
	addq	$16, %rcx
	cmpq	%rbx, %rcx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jbe	LBB0_22
## %bb.20:
	movl	4(%r13), %edi
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_26
LBB0_21:
	movq	16(%r13), %rax
	movq	%rax, 24(%r13)
	movq	$0, 8(%r13)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
LBB0_22:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, (%rdx)
	movq	16(%r12), %rdi
	movl	12(%r12), %esi
	movl	4(%r13), %ecx
	callq	_rpcap_check_msg_ver
	xorl	%ebx, %ebx
	cmpl	$-1, %eax
	je	LBB0_28
## %bb.23:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	_RPCAP_MSG_PACKET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_28
## %bb.24:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	16(%rbx), %edi
	callq	_ntohl
	cmpl	-48(%rbp), %eax                 ## 4-byte Folded Reload
	jle	LBB0_29
## %bb.25:
	movl	4(%r13), %edi
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
LBB0_26:
	callq	_pcap_snprintf
LBB0_27:
	movl	$-1, %ebx
LBB0_28:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_29:
	movq	%rbx, %rcx
	movq	%rbx, %r13
	leaq	144(%rcx), %rbx
	movl	%eax, (%r15)
	movl	20(%rcx), %edi
	callq	_ntohl
	movl	%eax, 4(%r15)
	movl	24(%r13), %edi
	callq	_ntohl
	movl	%eax, 8(%r15)
	movl	28(%r13), %edi
	callq	_ntohl
	movl	%eax, 12(%r15)
	movq	%rbx, (%r14)
	movl	4(%r12), %r14d
	leal	1(%r14), %r15d
	movl	%r15d, 4(%r12)
	movq	_PCAP_OPENFLAG_DATATX_UDP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	$1, %ebx
	testl	%eax, (%r12)
	je	LBB0_28
## %bb.30:
	movl	32(%r13), %edi
	callq	_ntohl
	cmpl	%r15d, %eax
	je	LBB0_28
## %bb.31:
	notl	%r14d
	addl	%eax, %r14d
	addl	%r14d, 8(%r12)
	movl	%eax, 4(%r12)
	jmp	LBB0_28
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"select(): "

	.comm	_PCAP_ERRBUF_SIZE,4,2           ## @PCAP_ERRBUF_SIZE
	.comm	_PCAP_OPENFLAG_DATATX_UDP,4,2   ## @PCAP_OPENFLAG_DATATX_UDP
L_.str.1:                               ## @.str.1
	.asciz	"UDP packet message is shorter than an rpcap header"

L_.str.2:                               ## @.str.2
	.asciz	"UDP packet message is shorter than its rpcap header claims"

L_.str.3:                               ## @.str.3
	.asciz	"Server sent us a message larger than the largest expected packet message"

	.comm	_RPCAP_MSG_PACKET,8,3           ## @RPCAP_MSG_PACKET
L_.str.4:                               ## @.str.4
	.asciz	"Packet's captured data goes past the end of the received packet message."

	.no_dead_strip	_pcap_read_nocb_remote
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcap_read_nocb_remote
_pcap_read_nocb_remote:                 ; @pcap_read_nocb_remote
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x25, [x0, #40]
	ldrsw	x8, [x0, #32]
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	mul	x9, x8, x9
	lsr	x10, x9, #32
	lsr	x9, x9, #63
	add	w9, w9, w10, asr #6
	mov	w10, #-1000
	madd	w8, w9, w10, w8
	mov	w10, #1000
	mul	w8, w8, w10
	stp	w9, w8, [sp, #8]
	add	x0, sp, #4
	bl	_FD_ZERO
	ldr	x0, [x25, #16]
	add	x1, sp, #4
	bl	_FD_SET
	ldr	w8, [x25, #16]
	add	w0, w8, #1
	add	x1, sp, #4
	add	x4, sp, #8
	mov	x2, #0
	mov	x3, #0
	bl	_select
	mov	x23, x0
	cbz	w0, LBB0_26
; %bb.1:
	cmn	w23, #1
	b.ne	LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _errno@GOTPAGE
Lloh1:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _EINTR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EINTR@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_25
; %bb.3:
	ldr	w1, [x21, #4]
Lloh6:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_sock_geterror
	b	LBB0_24
LBB0_4:
	ldr	x22, [x21, #16]
	ldr	w8, [x25]
Lloh11:
	adrp	x26, _PCAP_OPENFLAG_DATATX_UDP@GOTPAGE
Lloh12:
	ldr	x26, [x26, _PCAP_OPENFLAG_DATATX_UDP@GOTPAGEOFF]
	ldr	w9, [x26]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.5:
	ldr	x0, [x25, #16]
	ldp	w2, w3, [x21]
Lloh13:
	adrp	x27, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh14:
	ldr	x27, [x27, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
	ldr	w4, [x27]
	mov	x1, x22
	bl	_sock_recv_dgram
	mov	x23, x0
	cmn	w0, #1
	b.eq	LBB0_26
; %bb.6:
	cmn	w23, #3
	b.eq	LBB0_25
; %bb.7:
	cmp	w23, #15
	b.hi	LBB0_17
; %bb.8:
	ldr	w0, [x21, #4]
	ldr	w1, [x27]
Lloh15:
	adrp	x2, l_.str.1@PAGE
Lloh16:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_23
LBB0_9:
	ldr	x8, [x21, #8]
	cmp	x8, #15
	b.hi	LBB0_12
; %bb.10:
	ldr	x0, [x25, #16]
	mov	x1, x21
	mov	w2, #16
	bl	_rpcap_read_packet_msg
	mov	x23, x0
	cmn	w0, #1
	b.eq	LBB0_26
; %bb.11:
	cmn	w23, #3
	b.eq	LBB0_25
LBB0_12:
	ldr	w0, [x22]
	bl	_ntohl
	ldrsw	x8, [x21]
	sub	x8, x8, #16
	cmp	x8, w0, sxtw
	b.hs	LBB0_14
; %bb.13:
	ldr	w0, [x21, #4]
Lloh17:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x2, l_.str.3@PAGE
Lloh21:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_23
LBB0_14:
	mov	x24, x0
	ldr	x0, [x25, #16]
	add	w2, w24, #16
	mov	x1, x21
	bl	_rpcap_read_packet_msg
	mov	x23, x0
	cmn	w0, #1
	b.eq	LBB0_26
; %bb.15:
	cmn	w23, #3
	b.eq	LBB0_25
; %bb.16:
	ldr	x8, [x21, #16]
	str	x8, [x21, #24]
	str	xzr, [x21, #8]
	b	LBB0_19
LBB0_17:
	ldr	w0, [x22]
	bl	_ntohl
	mov	x24, x0
	sxtw	x8, w24
	add	x8, x8, #16
	cmp	x8, w23, sxtw
	b.ls	LBB0_19
; %bb.18:
	ldr	w0, [x21, #4]
	ldr	w1, [x27]
Lloh22:
	adrp	x2, l_.str.2@PAGE
Lloh23:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_23
LBB0_19:
	str	w24, [x22]
	ldr	x0, [x25, #16]
	ldr	w1, [x25, #12]
	ldr	w3, [x21, #4]
	mov	x2, x22
	bl	_rpcap_check_msg_ver
	cmn	w0, #1
	b.eq	LBB0_25
; %bb.20:
	ldr	x8, [x22, #8]
Lloh24:
	adrp	x9, _RPCAP_MSG_PACKET@GOTPAGE
Lloh25:
	ldr	x9, [x9, _RPCAP_MSG_PACKET@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_25
; %bb.21:
	ldr	w0, [x22, #16]
	bl	_ntohl
	cmp	w0, w24
	b.le	LBB0_27
; %bb.22:
	ldr	w0, [x21, #4]
Lloh27:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x2, l_.str.4@PAGE
Lloh31:
	add	x2, x2, l_.str.4@PAGEOFF
LBB0_23:
	bl	_pcap_snprintf
LBB0_24:
	mov	w23, #-1
	b	LBB0_26
LBB0_25:
	mov	w23, #0
LBB0_26:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_27:
	add	x21, x22, #144
	str	w0, [x20]
	ldr	w0, [x22, #20]
	bl	_ntohl
	str	w0, [x20, #4]
	ldr	w0, [x22, #24]
	bl	_ntohl
	str	w0, [x20, #8]
	ldr	w0, [x22, #28]
	bl	_ntohl
	str	w0, [x20, #12]
	str	x21, [x19]
	ldp	w8, w19, [x25]
	add	w20, w19, #1
	str	w20, [x25, #4]
	ldr	w9, [x26]
	tst	w9, w8
	b.eq	LBB0_30
; %bb.28:
	ldr	w0, [x22, #32]
	bl	_ntohl
	cmp	w0, w20
	b.eq	LBB0_30
; %bb.29:
	mvn	w8, w19
	ldr	w9, [x25, #8]
	add	w8, w0, w8
	add	w8, w8, w9
	stp	w0, w8, [x25, #4]
LBB0_30:
	mov	w23, #1
	b	LBB0_26
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"select(): "

	.comm	_PCAP_ERRBUF_SIZE,4,2           ; @PCAP_ERRBUF_SIZE
	.comm	_PCAP_OPENFLAG_DATATX_UDP,4,2   ; @PCAP_OPENFLAG_DATATX_UDP
l_.str.1:                               ; @.str.1
	.asciz	"UDP packet message is shorter than an rpcap header"

l_.str.2:                               ; @.str.2
	.asciz	"UDP packet message is shorter than its rpcap header claims"

l_.str.3:                               ; @.str.3
	.asciz	"Server sent us a message larger than the largest expected packet message"

	.comm	_RPCAP_MSG_PACKET,8,3           ; @RPCAP_MSG_PACKET
l_.str.4:                               ; @.str.4
	.asciz	"Packet's captured data goes past the end of the received packet message."

	.no_dead_strip	_pcap_read_nocb_remote
.subsections_via_symbols
