	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snf_activate
_snf_activate:                          ## @snf_activate
	.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
	movq	%rdi, %r14
	cmpq	$0, 64(%rdi)
	je	LBB0_1
## %bb.2:
	movq	80(%r14), %r15
	leaq	L_.str.1(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	cmpb	$0, (%rax)
	je	LBB0_5
## %bb.4:
	movq	%rax, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_strtol
	movl	%eax, %r8d
	jmp	LBB0_9
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
	callq	_getenv
	movl	$-1, %r8d
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	cmpb	$0, (%rax)
	je	LBB0_9
## %bb.7:
	movq	%rax, %rdi
	callq	_atoi
	movl	$-1, %r8d
	cmpl	$2, %eax
	jl	LBB0_9
## %bb.8:
	movq	_SNF_F_PSHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
LBB0_9:
	movl	24(%r15), %edi
	movl	72(%r14), %eax
	leal	-1(%rax), %ecx
	cmpl	$1048575, %ecx                  ## imm = 0xFFFFF
	movl	$1048576, %ecx                  ## imm = 0x100000
	cmovael	%eax, %ecx
	leaq	16(%r15), %r9
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_snf_open
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	56(%r14), %edi
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.3(%rip), %rcx
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_pcap_fmt_errmsg_for_errno
	movl	$-1, %ebx
	jmp	LBB0_22
LBB0_1:
	movl	56(%r14), %edi
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_pcap_snprintf
	movl	$-1, %ebx
	jmp	LBB0_22
LBB0_11:
	leaq	L_.str.4(%rip), %rdi
	callq	_getenv
	movl	$-1, %ebx
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	cmpb	$0, (%rax)
	je	LBB0_14
## %bb.13:
	movq	%rax, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_strtol
	movl	%eax, %ebx
LBB0_14:
	movl	16(%r15), %edi
	leaq	20(%r15), %rdx
	movl	%ebx, %esi
	callq	_snf_ring_open_id
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	movl	56(%r14), %edi
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.5(%rip), %rcx
	movl	%eax, %edx
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_pcap_fmt_errmsg_for_errno
	movl	$-1, %ebx
	jmp	LBB0_22
LBB0_16:
	movq	(%r14), %rcx
	movq	_MAXIMUM_SNAPLEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rcx, %rcx
	jle	LBB0_18
## %bb.17:
	cmpq	%rax, %rcx
	jle	LBB0_19
LBB0_18:
	movq	%rax, (%r14)
LBB0_19:
	movl	76(%r14), %eax
	testl	%eax, %eax
	movl	$-1, %ebx
	cmovlel	%ebx, %eax
	movl	%eax, (%r15)
	movl	16(%r15), %edi
	callq	_snf_start
	testl	%eax, %eax
	je	LBB0_21
## %bb.20:
	movl	56(%r14), %edi
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.6(%rip), %rcx
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_pcap_fmt_errmsg_for_errno
	jmp	LBB0_22
LBB0_21:
	movl	$-1, 8(%r14)
	movq	_DLT_EN10MB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%r14)
	movq	_snf_read@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r14)
	movq	_snf_inject@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%r14)
	movq	_snf_setfilter@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r14)
	movq	$0, 32(%r14)
	movq	_snf_set_datalink@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r14)
	movq	_snf_getnonblock@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movq	_snf_setnonblock@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r14)
	movq	_snf_pcap_stats@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	_snf_platform_cleanup@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	xorl	%ebx, %ebx
LBB0_22:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCAP_ERRBUF_SIZE,4,2           ## @PCAP_ERRBUF_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"device is NULL"

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

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

	.comm	_SNF_F_PSHARED,4,2              ## @SNF_F_PSHARED
L_.str.3:                               ## @.str.3
	.asciz	"snf_open failed"

L_.str.4:                               ## @.str.4
	.asciz	"SNF_PCAP_RING_ID"

L_.str.5:                               ## @.str.5
	.asciz	"snf_ring_open_id(ring=%d) failed"

	.comm	_MAXIMUM_SNAPLEN,8,3            ## @MAXIMUM_SNAPLEN
L_.str.6:                               ## @.str.6
	.asciz	"snf_start failed"

	.comm	_DLT_EN10MB,4,2                 ## @DLT_EN10MB
	.comm	_snf_read,4,2                   ## @snf_read
	.comm	_snf_inject,4,2                 ## @snf_inject
	.comm	_snf_setfilter,4,2              ## @snf_setfilter
	.comm	_snf_set_datalink,4,2           ## @snf_set_datalink
	.comm	_snf_getnonblock,4,2            ## @snf_getnonblock
	.comm	_snf_setnonblock,4,2            ## @snf_setnonblock
	.comm	_snf_pcap_stats,4,2             ## @snf_pcap_stats
	.comm	_snf_platform_cleanup,4,2       ## @snf_platform_cleanup
	.no_dead_strip	_snf_activate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snf_activate
_snf_activate:                          ; @snf_activate
	.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
	mov	x19, x0
	ldr	x8, [x0, #64]
	cbz	x8, LBB0_7
; %bb.1:
	ldr	x21, [x19, #80]
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_getenv
	cbz	x0, LBB0_4
; %bb.2:
	ldrb	w8, [x0]
	cbz	w8, LBB0_4
; %bb.3:
	mov	x1, #0
	mov	w2, #0
	bl	_strtol
	mov	x4, x0
	b	LBB0_9
LBB0_4:
Lloh2:
	adrp	x0, l_.str.2@PAGE
Lloh3:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_getenv
	cbz	x0, LBB0_8
; %bb.5:
	ldrb	w8, [x0]
	cbz	w8, LBB0_8
; %bb.6:
	bl	_atoi
Lloh4:
	adrp	x8, _SNF_F_PSHARED@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SNF_F_PSHARED@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w0, #1
	csinv	w4, w8, wzr, gt
	b	LBB0_9
LBB0_7:
	ldr	w0, [x19, #56]
Lloh7:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x2, l_.str@PAGE
Lloh11:
	add	x2, x2, l_.str@PAGEOFF
	bl	_pcap_snprintf
	b	LBB0_23
LBB0_8:
	mov	w4, #-1
LBB0_9:
	ldr	w0, [x21, #24]
	ldr	w8, [x19, #72]
	sub	w9, w8, #1
	mov	w10, #1048575
	mov	w11, #1048576
	cmp	w9, w10
	csel	w3, w11, w8, lo
	add	x5, x21, #16
	mov	w1, #0
	mov	x2, #0
	bl	_snf_open
	cbz	w0, LBB0_11
; %bb.10:
	mov	x2, x0
	ldr	w0, [x19, #56]
Lloh12:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x3, l_.str.3@PAGE
Lloh16:
	add	x3, x3, l_.str.3@PAGEOFF
	b	LBB0_22
LBB0_11:
Lloh17:
	adrp	x0, l_.str.4@PAGE
Lloh18:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_getenv
	cbz	x0, LBB0_14
; %bb.12:
	ldrb	w8, [x0]
	cbz	w8, LBB0_14
; %bb.13:
	mov	x1, #0
	mov	w2, #0
	bl	_strtol
	mov	x20, x0
	b	LBB0_15
LBB0_14:
	mov	w20, #-1
LBB0_15:
	ldr	w0, [x21, #16]
	add	x2, x21, #20
	mov	x1, x20
	bl	_snf_ring_open_id
	cbz	w0, LBB0_17
; %bb.16:
	mov	x2, x0
	ldr	w0, [x19, #56]
Lloh19:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	str	x20, [sp]
Lloh22:
	adrp	x3, l_.str.5@PAGE
Lloh23:
	add	x3, x3, l_.str.5@PAGEOFF
	b	LBB0_22
LBB0_17:
	ldr	x9, [x19]
Lloh24:
	adrp	x8, _MAXIMUM_SNAPLEN@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MAXIMUM_SNAPLEN@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	cmp	x9, #1
	b.lt	LBB0_19
; %bb.18:
	cmp	x9, x8
	b.le	LBB0_20
LBB0_19:
	str	x8, [x19]
LBB0_20:
	ldr	w8, [x19, #76]
	cmp	w8, #1
	csinv	w8, w8, wzr, ge
	str	w8, [x21]
	ldr	w0, [x21, #16]
	bl	_snf_start
	cbz	w0, LBB0_25
; %bb.21:
	mov	x2, x0
	ldr	w0, [x19, #56]
Lloh27:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x3, l_.str.6@PAGE
Lloh31:
	add	x3, x3, l_.str.6@PAGEOFF
LBB0_22:
	bl	_pcap_fmt_errmsg_for_errno
LBB0_23:
	mov	w0, #-1
LBB0_24:
	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_25:
Lloh32:
	adrp	x8, _DLT_EN10MB@GOTPAGE
Lloh33:
	ldr	x8, [x8, _DLT_EN10MB@GOTPAGEOFF]
	mov	w9, #-1
Lloh34:
	ldr	w8, [x8]
Lloh35:
	adrp	x10, _snf_read@GOTPAGE
Lloh36:
	ldr	x10, [x10, _snf_read@GOTPAGEOFF]
Lloh37:
	ldr	w10, [x10]
	stp	w10, w8, [x19, #48]
Lloh38:
	adrp	x8, _snf_inject@GOTPAGE
Lloh39:
	ldr	x8, [x8, _snf_inject@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
Lloh41:
	adrp	x10, _snf_setfilter@GOTPAGE
Lloh42:
	ldr	x10, [x10, _snf_setfilter@GOTPAGEOFF]
Lloh43:
	ldr	w10, [x10]
	stp	w10, w8, [x19, #40]
Lloh44:
	adrp	x8, _snf_set_datalink@GOTPAGE
Lloh45:
	ldr	x8, [x8, _snf_set_datalink@GOTPAGEOFF]
Lloh46:
	adrp	x10, _snf_getnonblock@GOTPAGE
Lloh47:
	ldr	x10, [x10, _snf_getnonblock@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
Lloh49:
	ldr	w10, [x10]
	stp	w10, w8, [x19, #24]
Lloh50:
	adrp	x8, _snf_setnonblock@GOTPAGE
Lloh51:
	ldr	x8, [x8, _snf_setnonblock@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
Lloh53:
	adrp	x10, _snf_pcap_stats@GOTPAGE
Lloh54:
	ldr	x10, [x10, _snf_pcap_stats@GOTPAGEOFF]
Lloh55:
	ldr	w10, [x10]
	stp	w10, w8, [x19, #16]
Lloh56:
	adrp	x8, _snf_platform_cleanup@GOTPAGE
Lloh57:
	ldr	x8, [x8, _snf_platform_cleanup@GOTPAGEOFF]
Lloh58:
	ldr	w8, [x8]
	stp	w9, w8, [x19, #8]
	str	xzr, [x19, #32]
	b	LBB0_24
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh48
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_PCAP_ERRBUF_SIZE,4,2           ; @PCAP_ERRBUF_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"device is NULL"

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

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

	.comm	_SNF_F_PSHARED,4,2              ; @SNF_F_PSHARED
l_.str.3:                               ; @.str.3
	.asciz	"snf_open failed"

l_.str.4:                               ; @.str.4
	.asciz	"SNF_PCAP_RING_ID"

l_.str.5:                               ; @.str.5
	.asciz	"snf_ring_open_id(ring=%d) failed"

	.comm	_MAXIMUM_SNAPLEN,8,3            ; @MAXIMUM_SNAPLEN
l_.str.6:                               ; @.str.6
	.asciz	"snf_start failed"

	.comm	_DLT_EN10MB,4,2                 ; @DLT_EN10MB
	.comm	_snf_read,4,2                   ; @snf_read
	.comm	_snf_inject,4,2                 ; @snf_inject
	.comm	_snf_setfilter,4,2              ; @snf_setfilter
	.comm	_snf_set_datalink,4,2           ; @snf_set_datalink
	.comm	_snf_getnonblock,4,2            ; @snf_getnonblock
	.comm	_snf_setnonblock,4,2            ; @snf_setnonblock
	.comm	_snf_pcap_stats,4,2             ; @snf_pcap_stats
	.comm	_snf_platform_cleanup,4,2       ; @snf_platform_cleanup
	.no_dead_strip	_snf_activate
.subsections_via_symbols
