	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcap_activate_nit
_pcap_activate_nit:                     ## @pcap_activate_nit
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, 104(%rdi)
	je	LBB0_2
## %bb.1:
	movq	_PCAP_ERROR_RFMON_NOTSUP@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_2:
	movq	%rdi, %r14
	movl	(%rdi), %eax
	testl	%eax, %eax
	setle	%cl
	movq	_MAXIMUM_SNAPLEN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpl	%edx, %eax
	setg	%bl
	orb	%cl, %bl
	cmovnel	%edx, %eax
	jne	LBB0_4
## %bb.3:
	cmpl	$95, %eax
	jg	LBB0_5
LBB0_4:
	cmpl	$97, %eax
	movl	$96, %ecx
	cmovgel	%eax, %ecx
	movl	%ecx, (%r14)
LBB0_5:
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$112, %edx
	callq	_memset
	movq	_AF_NIT@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_SOCK_RAW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NITPROTO_RAW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_socket
	movl	%eax, 4(%r14)
	testl	%eax, %eax
	js	LBB0_8
## %bb.6:
	movl	%eax, %ebx
	movl	(%r15), %eax
	movl	%eax, -28(%rbp)
	movl	96(%r14), %esi
	movq	_NITIFSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_strncpy
	leaq	-32(%rbp), %rsi
	movl	%ebx, %edi
	movl	$8, %edx
	callq	_bind
	testq	%rax, %rax
	je	LBB0_13
## %bb.7:
	movl	72(%r14), %edi
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	-32(%rbp), %r8d
	leaq	L_.str.1(%rip), %rcx
	xorl	%eax, %eax
	callq	_pcap_fmt_errmsg_for_errno
	jmp	LBB0_10
LBB0_8:
	movl	72(%r14), %edi
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
LBB0_9:
	xorl	%eax, %eax
	callq	_pcap_fmt_errmsg_for_errno
LBB0_10:
	movq	%r14, %rdi
	callq	_pcap_cleanup_live_common
	movq	_PCAP_ERROR@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	%r14, %rdi
	callq	_nit_setflags
	testq	%rax, %rax
	js	LBB0_10
## %bb.14:
	movq	_DLT_EN10MB@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	%rax, 88(%r14)
	movq	_BUFSPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 8(%r14)
	callq	_malloc
	movq	%rax, 80(%r14)
	testq	%rax, %rax
	je	LBB0_18
## %bb.15:
	movl	4(%r14), %eax
	movl	%eax, 12(%r14)
	movl	$16, %edi
	callq	_malloc
	movq	%rax, 64(%r14)
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	(%rbx), %rcx
	movq	%rcx, (%rax)
	movq	_DLT_DOCSIS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	64(%r14), %rcx
	movq	%rax, 8(%rcx)
	movl	$2, 16(%r14)
LBB0_17:
	movq	_pcap_read_nit@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%r14)
	movq	_pcap_inject_nit@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%r14)
	movq	_install_bpf_program@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r14)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%r14)
	movq	_pcap_getnonblock_fd@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r14)
	movq	_pcap_setnonblock_fd@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movq	_pcap_stats_nit@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r14)
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_18:
	movl	72(%r14), %edi
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rcx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_PCAP_ERROR_RFMON_NOTSUP,4,2    ## @PCAP_ERROR_RFMON_NOTSUP
	.comm	_MAXIMUM_SNAPLEN,4,2            ## @MAXIMUM_SNAPLEN
	.comm	_AF_NIT,4,2                     ## @AF_NIT
	.comm	_SOCK_RAW,4,2                   ## @SOCK_RAW
	.comm	_NITPROTO_RAW,4,2               ## @NITPROTO_RAW
	.comm	_PCAP_ERRBUF_SIZE,4,2           ## @PCAP_ERRBUF_SIZE
	.comm	_errno,4,2                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"socket"

	.comm	_NITIFSIZ,4,2                   ## @NITIFSIZ
L_.str.1:                               ## @.str.1
	.asciz	"bind: %s"

	.comm	_DLT_EN10MB,8,3                 ## @DLT_EN10MB
	.comm	_BUFSPACE,4,2                   ## @BUFSPACE
L_.str.2:                               ## @.str.2
	.asciz	"malloc"

	.comm	_DLT_DOCSIS,8,3                 ## @DLT_DOCSIS
	.comm	_pcap_read_nit,4,2              ## @pcap_read_nit
	.comm	_pcap_inject_nit,4,2            ## @pcap_inject_nit
	.comm	_install_bpf_program,4,2        ## @install_bpf_program
	.comm	_pcap_getnonblock_fd,4,2        ## @pcap_getnonblock_fd
	.comm	_pcap_setnonblock_fd,4,2        ## @pcap_setnonblock_fd
	.comm	_pcap_stats_nit,4,2             ## @pcap_stats_nit
	.comm	_PCAP_ERROR,4,2                 ## @PCAP_ERROR
	.no_dead_strip	_pcap_activate_nit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcap_activate_nit
_pcap_activate_nit:                     ; @pcap_activate_nit
	.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
	ldr	x8, [x0, #104]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _PCAP_ERROR_RFMON_NOTSUP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCAP_ERROR_RFMON_NOTSUP@GOTPAGEOFF]
	b	LBB0_11
LBB0_2:
	mov	x19, x0
	ldr	w8, [x0]
Lloh2:
	adrp	x9, _MAXIMUM_SNAPLEN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MAXIMUM_SNAPLEN@GOTPAGEOFF]
	cmp	w8, #1
Lloh4:
	ldr	w9, [x9]
	ccmp	w8, w9, #0, ge
	cset	w10, gt
	cmp	w10, #0
	csel	w8, w9, w8, ne
	tbnz	w10, #0, LBB0_4
; %bb.3:
	cmp	w8, #95
	b.gt	LBB0_5
LBB0_4:
	mov	w9, #96
	cmp	w8, #96
	csel	w8, w8, w9, gt
	str	w8, [x19]
LBB0_5:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #112
	bl	_memset
Lloh5:
	adrp	x21, _AF_NIT@GOTPAGE
Lloh6:
	ldr	x21, [x21, _AF_NIT@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh7:
	adrp	x8, _SOCK_RAW@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SOCK_RAW@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x8, _NITPROTO_RAW@GOTPAGE
Lloh11:
	ldr	x8, [x8, _NITPROTO_RAW@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	bl	_socket
	str	w0, [x19, #4]
	tbnz	w0, #31, LBB0_8
; %bb.6:
	mov	x20, x0
	ldr	w8, [x21]
	str	w8, [sp, #12]
	ldr	w1, [x19, #96]
Lloh13:
	adrp	x8, _NITIFSIZ@GOTPAGE
Lloh14:
	ldr	x8, [x8, _NITIFSIZ@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	bl	_strncpy
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #8
	bl	_bind
	cbz	x0, LBB0_13
; %bb.7:
Lloh16:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
	ldr	w0, [x19, #72]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x8, _errno@GOTPAGE
Lloh20:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	ldr	w8, [sp, #8]
	str	x8, [sp]
Lloh22:
	adrp	x3, l_.str.1@PAGE
Lloh23:
	add	x3, x3, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_8:
	ldr	w0, [x19, #72]
Lloh24:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x8, _errno@GOTPAGE
Lloh28:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
Lloh30:
	adrp	x3, l_.str@PAGE
Lloh31:
	add	x3, x3, l_.str@PAGEOFF
LBB0_9:
	bl	_pcap_fmt_errmsg_for_errno
LBB0_10:
	mov	x0, x19
	bl	_pcap_cleanup_live_common
Lloh32:
	adrp	x8, _PCAP_ERROR@GOTPAGE
Lloh33:
	ldr	x8, [x8, _PCAP_ERROR@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
LBB0_12:
	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
LBB0_13:
	mov	x0, x19
	bl	_nit_setflags
	tbnz	x0, #63, LBB0_10
; %bb.14:
Lloh34:
	adrp	x20, _DLT_EN10MB@GOTPAGE
Lloh35:
	ldr	x20, [x20, _DLT_EN10MB@GOTPAGEOFF]
	ldr	x8, [x20]
	str	x8, [x19, #88]
Lloh36:
	adrp	x8, _BUFSPACE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _BUFSPACE@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	str	w0, [x19, #8]
	bl	_malloc
	str	x0, [x19, #80]
	cbz	x0, LBB0_18
; %bb.15:
	ldr	w8, [x19, #4]
	str	w8, [x19, #12]
	mov	w0, #16
	bl	_malloc
	str	x0, [x19, #64]
	cbz	x0, LBB0_17
; %bb.16:
	ldr	x8, [x20]
Lloh39:
	adrp	x9, _DLT_DOCSIS@GOTPAGE
Lloh40:
	ldr	x9, [x9, _DLT_DOCSIS@GOTPAGEOFF]
	str	x8, [x0]
Lloh41:
	ldr	x8, [x9]
	ldr	x9, [x19, #64]
	str	x8, [x9, #8]
	mov	w8, #2
	str	w8, [x19, #16]
LBB0_17:
	mov	w0, #0
Lloh42:
	adrp	x8, _pcap_read_nit@GOTPAGE
Lloh43:
	ldr	x8, [x8, _pcap_read_nit@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	str	w8, [x19, #56]
Lloh45:
	adrp	x8, _pcap_inject_nit@GOTPAGE
Lloh46:
	ldr	x8, [x8, _pcap_inject_nit@GOTPAGEOFF]
Lloh47:
	adrp	x9, _install_bpf_program@GOTPAGE
Lloh48:
	ldr	x9, [x9, _install_bpf_program@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
Lloh50:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #48]
Lloh51:
	adrp	x8, _pcap_getnonblock_fd@GOTPAGE
Lloh52:
	ldr	x8, [x8, _pcap_getnonblock_fd@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
	str	w8, [x19, #28]
Lloh54:
	adrp	x8, _pcap_setnonblock_fd@GOTPAGE
Lloh55:
	ldr	x8, [x8, _pcap_setnonblock_fd@GOTPAGEOFF]
Lloh56:
	adrp	x9, _pcap_stats_nit@GOTPAGE
Lloh57:
	ldr	x9, [x9, _pcap_stats_nit@GOTPAGEOFF]
Lloh58:
	ldr	w8, [x8]
Lloh59:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #20]
	stp	xzr, xzr, [x19, #32]
	b	LBB0_12
LBB0_18:
	ldr	w0, [x19, #72]
Lloh60:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh61:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh62:
	ldr	w1, [x8]
Lloh63:
	adrp	x8, _errno@GOTPAGE
Lloh64:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh65:
	ldr	w2, [x8]
Lloh66:
	adrp	x3, l_.str.2@PAGE
Lloh67:
	add	x3, x3, l_.str.2@PAGEOFF
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh58
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh49
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.cfi_endproc
                                        ; -- End function
	.comm	_PCAP_ERROR_RFMON_NOTSUP,4,2    ; @PCAP_ERROR_RFMON_NOTSUP
	.comm	_MAXIMUM_SNAPLEN,4,2            ; @MAXIMUM_SNAPLEN
	.comm	_AF_NIT,4,2                     ; @AF_NIT
	.comm	_SOCK_RAW,4,2                   ; @SOCK_RAW
	.comm	_NITPROTO_RAW,4,2               ; @NITPROTO_RAW
	.comm	_PCAP_ERRBUF_SIZE,4,2           ; @PCAP_ERRBUF_SIZE
	.comm	_errno,4,2                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"socket"

	.comm	_NITIFSIZ,4,2                   ; @NITIFSIZ
l_.str.1:                               ; @.str.1
	.asciz	"bind: %s"

	.comm	_DLT_EN10MB,8,3                 ; @DLT_EN10MB
	.comm	_BUFSPACE,4,2                   ; @BUFSPACE
l_.str.2:                               ; @.str.2
	.asciz	"malloc"

	.comm	_DLT_DOCSIS,8,3                 ; @DLT_DOCSIS
	.comm	_pcap_read_nit,4,2              ; @pcap_read_nit
	.comm	_pcap_inject_nit,4,2            ; @pcap_inject_nit
	.comm	_install_bpf_program,4,2        ; @install_bpf_program
	.comm	_pcap_getnonblock_fd,4,2        ; @pcap_getnonblock_fd
	.comm	_pcap_setnonblock_fd,4,2        ; @pcap_setnonblock_fd
	.comm	_pcap_stats_nit,4,2             ; @pcap_stats_nit
	.comm	_PCAP_ERROR,4,2                 ; @PCAP_ERROR
	.no_dead_strip	_pcap_activate_nit
.subsections_via_symbols
