	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcap_activate_dos
_pcap_activate_dos:                     ## @pcap_activate_dos
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpq	$0, 24(%rdi)
	je	LBB0_2
## %bb.1:
	movq	_PCAP_ERROR_RFMON_NOTSUP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_17
LBB0_2:
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_MAXIMUM_SNAPLEN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	testq	%rax, %rax
	jle	LBB0_4
## %bb.3:
	cmpq	%rcx, %rax
	jle	LBB0_5
LBB0_4:
	movq	%rcx, (%rbx)
	movq	%rcx, %rax
LBB0_5:
	movq	_ETH_MIN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	$8, %rcx
	cmpq	%rcx, %rax
	jge	LBB0_7
## %bb.6:
	movq	%rcx, (%rbx)
	movq	%rcx, %rax
LBB0_7:
	movq	_ETH_MAX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	cmpq	%rdi, %rax
	jle	LBB0_9
## %bb.8:
	movq	%rdi, (%rbx)
	movq	(%rcx), %rdi
LBB0_9:
	movq	_DLT_EN10MB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 84(%rbx)
	movq	_pcap_cleanup_dos@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 80(%rbx)
	movq	_pcap_read_dos@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 76(%rbx)
	movq	_pcap_stats_dos@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%rbx)
	movq	_pcap_sendpacket_dos@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 68(%rbx)
	movq	_pcap_setfilter_dos@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%rbx)
	movq	$0, 56(%rbx)
	movq	_ref_count@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	incl	%ecx
	movl	%ecx, (%rax)
	movl	%ecx, 8(%rbx)
	addq	$100, %rdi
	movq	%rdi, 40(%rbx)
	movl	$1, %esi
	callq	_calloc
	movl	%eax, 48(%rbx)
	cmpl	$1, 8(%rbx)
	jne	LBB0_13
## %bb.10:
	movl	16(%rbx), %esi
	movl	32(%rbx), %edx
	movq	%rbx, %rdi
	callq	_init_watt32
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	32(%rbx), %esi
	movl	16(%rbx), %edi
	movl	20(%rbx), %edx
	callq	_first_init
	testl	%eax, %eax
	je	LBB0_12
## %bb.15:
	movq	_close_driver@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_atexit
	jmp	LBB0_16
LBB0_13:
	movq	_active_dev@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movl	(%rax), %edi
	movl	16(%rbx), %esi
	callq	_stricmp
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:
	movl	16(%rbx), %r8d
	movl	32(%rbx), %edi
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r14), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rdx
	callq	_pcap_snprintf
LBB0_12:
	movq	_PCAP_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_17
LBB0_16:
	movq	_active_dev@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_handle_to_device@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	8(%rbx), %rdx
	movq	%rax, -8(%rcx,%rdx,8)
	xorl	%eax, %eax
LBB0_17:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCAP_ERROR_RFMON_NOTSUP,4,2    ## @PCAP_ERROR_RFMON_NOTSUP
	.comm	_MAXIMUM_SNAPLEN,8,3            ## @MAXIMUM_SNAPLEN
	.comm	_ETH_MIN,8,3                    ## @ETH_MIN
	.comm	_ETH_MAX,8,3                    ## @ETH_MAX
	.comm	_DLT_EN10MB,4,2                 ## @DLT_EN10MB
	.comm	_pcap_cleanup_dos,4,2           ## @pcap_cleanup_dos
	.comm	_pcap_read_dos,4,2              ## @pcap_read_dos
	.comm	_pcap_stats_dos,4,2             ## @pcap_stats_dos
	.comm	_pcap_sendpacket_dos,4,2        ## @pcap_sendpacket_dos
	.comm	_pcap_setfilter_dos,4,2         ## @pcap_setfilter_dos
	.comm	_ref_count,4,2                  ## @ref_count
	.comm	_PCAP_ERROR,4,2                 ## @PCAP_ERROR
	.comm	_close_driver,4,2               ## @close_driver
	.comm	_active_dev,8,3                 ## @active_dev
	.comm	_PCAP_ERRBUF_SIZE,4,2           ## @PCAP_ERRBUF_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot use different devices simultaneously (`%s' vs. `%s')"

	.comm	_handle_to_device,8,3           ## @handle_to_device
	.no_dead_strip	_pcap_activate_dos
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcap_activate_dos
_pcap_activate_dos:                     ; @pcap_activate_dos
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _PCAP_ERROR_RFMON_NOTSUP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCAP_ERROR_RFMON_NOTSUP@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_16
LBB0_2:
	mov	x19, x0
	ldr	x9, [x0]
Lloh3:
	adrp	x8, _MAXIMUM_SNAPLEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAXIMUM_SNAPLEN@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x9, #1
	ccmp	x9, x8, #0, ge
	b.le	LBB0_4
; %bb.3:
	str	x8, [x19]
	mov	x9, x8
LBB0_4:
Lloh6:
	adrp	x8, _ETH_MIN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ETH_MIN@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	add	x8, x8, #8
	cmp	x9, x8
	b.ge	LBB0_6
; %bb.5:
	str	x8, [x19]
	mov	x9, x8
LBB0_6:
Lloh9:
	adrp	x10, _ETH_MAX@GOTPAGE
Lloh10:
	ldr	x10, [x10, _ETH_MAX@GOTPAGEOFF]
	ldr	x8, [x10]
	cmp	x9, x8
	b.le	LBB0_8
; %bb.7:
	str	x8, [x19]
	ldr	x8, [x10]
LBB0_8:
Lloh11:
	adrp	x9, _DLT_EN10MB@GOTPAGE
Lloh12:
	ldr	x9, [x9, _DLT_EN10MB@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
Lloh14:
	adrp	x10, _pcap_cleanup_dos@GOTPAGE
Lloh15:
	ldr	x10, [x10, _pcap_cleanup_dos@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
Lloh17:
	adrp	x11, _pcap_read_dos@GOTPAGE
Lloh18:
	ldr	x11, [x11, _pcap_read_dos@GOTPAGEOFF]
	stp	w10, w9, [x19, #80]
Lloh19:
	ldr	w9, [x11]
Lloh20:
	adrp	x10, _pcap_stats_dos@GOTPAGE
Lloh21:
	ldr	x10, [x10, _pcap_stats_dos@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	stp	w10, w9, [x19, #72]
Lloh23:
	adrp	x9, _pcap_sendpacket_dos@GOTPAGE
Lloh24:
	ldr	x9, [x9, _pcap_sendpacket_dos@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
Lloh26:
	adrp	x10, _pcap_setfilter_dos@GOTPAGE
Lloh27:
	ldr	x10, [x10, _pcap_setfilter_dos@GOTPAGEOFF]
Lloh28:
	ldr	w10, [x10]
	stp	w10, w9, [x19, #64]
	str	xzr, [x19, #56]
Lloh29:
	adrp	x9, _ref_count@GOTPAGE
Lloh30:
	ldr	x9, [x9, _ref_count@GOTPAGEOFF]
	ldr	w10, [x9]
	add	w10, w10, #1
	str	w10, [x9]
	str	w10, [x19, #8]
	add	x0, x8, #100
	str	x0, [x19, #40]
	mov	w1, #1
	bl	_calloc
	str	w0, [x19, #48]
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.ne	LBB0_12
; %bb.9:
	ldr	w1, [x19, #16]
	ldr	w2, [x19, #32]
	mov	x0, x19
	bl	_init_watt32
	cbz	w0, LBB0_14
; %bb.10:
	ldr	w1, [x19, #32]
	ldp	w0, w2, [x19, #16]
	bl	_first_init
	cbz	w0, LBB0_14
; %bb.11:
Lloh31:
	adrp	x8, _close_driver@GOTPAGE
Lloh32:
	ldr	x8, [x8, _close_driver@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	bl	_atexit
	b	LBB0_15
LBB0_12:
Lloh34:
	adrp	x20, _active_dev@GOTPAGE
Lloh35:
	ldr	x20, [x20, _active_dev@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	w0, [x8]
	ldr	w1, [x19, #16]
	bl	_stricmp
	cbz	x0, LBB0_15
; %bb.13:
	ldr	w0, [x19, #32]
Lloh36:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	ldr	x8, [x20]
	ldr	w3, [x8]
	ldr	w4, [x19, #16]
Lloh39:
	adrp	x2, l_.str@PAGE
Lloh40:
	add	x2, x2, l_.str@PAGEOFF
	bl	_pcap_snprintf
LBB0_14:
Lloh41:
	adrp	x8, _PCAP_ERROR@GOTPAGE
Lloh42:
	ldr	x8, [x8, _PCAP_ERROR@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
	b	LBB0_16
LBB0_15:
	mov	w0, #0
Lloh44:
	adrp	x8, _active_dev@GOTPAGE
Lloh45:
	ldr	x8, [x8, _active_dev@GOTPAGEOFF]
Lloh46:
	ldr	x8, [x8]
Lloh47:
	adrp	x9, _handle_to_device@GOTPAGE
Lloh48:
	ldr	x9, [x9, _handle_to_device@GOTPAGEOFF]
Lloh49:
	ldr	x9, [x9]
	ldrsw	x10, [x19, #8]
	add	x9, x9, x10, lsl #3
	stur	x8, [x9, #-8]
LBB0_16:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_PCAP_ERROR_RFMON_NOTSUP,4,2    ; @PCAP_ERROR_RFMON_NOTSUP
	.comm	_MAXIMUM_SNAPLEN,8,3            ; @MAXIMUM_SNAPLEN
	.comm	_ETH_MIN,8,3                    ; @ETH_MIN
	.comm	_ETH_MAX,8,3                    ; @ETH_MAX
	.comm	_DLT_EN10MB,4,2                 ; @DLT_EN10MB
	.comm	_pcap_cleanup_dos,4,2           ; @pcap_cleanup_dos
	.comm	_pcap_read_dos,4,2              ; @pcap_read_dos
	.comm	_pcap_stats_dos,4,2             ; @pcap_stats_dos
	.comm	_pcap_sendpacket_dos,4,2        ; @pcap_sendpacket_dos
	.comm	_pcap_setfilter_dos,4,2         ; @pcap_setfilter_dos
	.comm	_ref_count,4,2                  ; @ref_count
	.comm	_PCAP_ERROR,4,2                 ; @PCAP_ERROR
	.comm	_close_driver,4,2               ; @close_driver
	.comm	_active_dev,8,3                 ; @active_dev
	.comm	_PCAP_ERRBUF_SIZE,4,2           ; @PCAP_ERRBUF_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot use different devices simultaneously (`%s' vs. `%s')"

	.comm	_handle_to_device,8,3           ; @handle_to_device
	.no_dead_strip	_pcap_activate_dos
.subsections_via_symbols
