	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function activate_old
_activate_old:                          ## @activate_old
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	56(%rdi), %r13
	movq	40(%rdi), %r14
	movq	_PF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_SOCK_PACKET@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ETH_P_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movl	%r15d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_socket
	movl	%eax, (%r12)
	cmpl	$-1, %eax
	je	LBB0_11
## %bb.1:
	movl	$1, (%r13)
	movq	$0, 16(%r13)
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_14
## %bb.2:
	movl	(%r12), %edi
	movl	32(%r12), %edx
	movq	%r14, %rsi
	callq	_iface_bind_old
	cmpl	$-1, %eax
	je	LBB0_15
## %bb.3:
	movl	(%r12), %edi
	movl	32(%r12), %edx
	movq	%r14, %rsi
	callq	_iface_get_arptype
	testl	%eax, %eax
	js	LBB0_15
## %bb.4:
	movl	%eax, %r15d
	movl	(%r12), %esi
	movq	%r12, %rdi
	movl	%eax, %edx
	movq	%r14, %rcx
	xorl	%r8d, %r8d
	callq	_map_arphrd_to_dlt
	cmpl	$-1, 4(%r12)
	je	LBB0_18
## %bb.5:
	cmpq	$0, 48(%r12)
	je	LBB0_8
## %bb.6:
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	-44(%rbp), %edi
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_strlcpy
	movl	(%r12), %edi
	movq	_SIOCGIFFLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_ioctl
	cmpl	$-1, %eax
	je	LBB0_22
## %bb.7:
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	testl	%eax, -48(%rbp)
	je	LBB0_23
LBB0_8:
	leaq	-56(%rbp), %rdi
	callq	_uname
	testq	%rax, %rax
	js	LBB0_19
## %bb.9:
	movl	-56(%rbp), %edi
	leaq	L_.str.6(%rip), %rsi
	movl	$3, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_19
## %bb.10:
	movq	24(%r12), %rax
	jmp	LBB0_21
LBB0_11:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	32(%r12), %edi
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	movl	%ebx, %edx
	callq	_pcap_fmt_errmsg_for_errno
	movq	_EPERM@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_13
## %bb.12:
	movq	_EACCES@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_15
LBB0_13:
	movq	_PCAP_ERROR_PERM_DENIED@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_14:
	movl	32(%r12), %edi
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rsi
	callq	_strlcpy
LBB0_15:
	movq	_PCAP_ERROR@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %eax
LBB0_17:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movl	32(%r12), %edi
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	movl	%r15d, %ecx
	callq	_pcap_snprintf
	jmp	LBB0_15
LBB0_19:
	movl	(%r12), %edi
	movl	32(%r12), %edx
	movq	%r14, %rsi
	callq	_iface_get_mtu
	cmpl	$-1, %eax
	je	LBB0_15
## %bb.20:
	movq	_MAX_LINKHEADER_SIZE@GOTPCREL(%rip), %rcx
	cltq
	addq	(%rcx), %rax
	movq	24(%r12), %rcx
	cmpq	%rcx, %rax
	cmovleq	%rcx, %rax
LBB0_21:
	movq	%rax, 8(%r12)
	movq	$0, 16(%r12)
	movl	$-1, 4(%r13)
	movl	$1, %eax
	jmp	LBB0_17
LBB0_22:
	movl	32(%r12), %edi
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.4(%rip), %rcx
	callq	_pcap_fmt_errmsg_for_errno
	jmp	LBB0_15
LBB0_23:
	movq	%r12, %rdi
	callq	_pcap_do_addexit
	testl	%eax, %eax
	je	LBB0_15
## %bb.24:
	movl	(%rbx), %eax
	orl	%eax, -48(%rbp)
	movl	(%r12), %edi
	movq	_SIOCSIFFLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	callq	_ioctl
	cmpl	$-1, %eax
	je	LBB0_26
## %bb.25:
	movq	_MUST_CLEAR_PROMISC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r13)
	movq	%r12, %rdi
	callq	_pcap_add_to_pcaps_to_close
	jmp	LBB0_8
LBB0_26:
	movl	32(%r12), %edi
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.5(%rip), %rcx
	callq	_pcap_fmt_errmsg_for_errno
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_PF_INET,4,2                    ## @PF_INET
	.comm	_SOCK_PACKET,4,2                ## @SOCK_PACKET
	.comm	_ETH_P_ALL,4,2                  ## @ETH_P_ALL
	.comm	_errno,4,2                      ## @errno
	.comm	_PCAP_ERRBUF_SIZE,4,2           ## @PCAP_ERRBUF_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"socket"

	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_EACCES,4,2                     ## @EACCES
	.comm	_PCAP_ERROR_PERM_DENIED,4,2     ## @PCAP_ERROR_PERM_DENIED
	.comm	_PCAP_ERROR,4,2                 ## @PCAP_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"any"

L_.str.2:                               ## @.str.2
	.asciz	"pcap_activate: The \"any\" device isn't supported on 2.0[.x]-kernel systems"

L_.str.3:                               ## @.str.3
	.asciz	"unknown arptype %d"

	.comm	_SIOCGIFFLAGS,4,2               ## @SIOCGIFFLAGS
L_.str.4:                               ## @.str.4
	.asciz	"SIOCGIFFLAGS"

	.comm	_IFF_PROMISC,4,2                ## @IFF_PROMISC
	.comm	_SIOCSIFFLAGS,4,2               ## @SIOCSIFFLAGS
L_.str.5:                               ## @.str.5
	.asciz	"SIOCSIFFLAGS"

	.comm	_MUST_CLEAR_PROMISC,4,2         ## @MUST_CLEAR_PROMISC
L_.str.6:                               ## @.str.6
	.asciz	"2.0"

	.comm	_MAX_LINKHEADER_SIZE,8,3        ## @MAX_LINKHEADER_SIZE
	.no_dead_strip	_activate_old
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function activate_old
_activate_old:                          ; @activate_old
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	ldr	x23, [x0, #56]
	ldr	x20, [x0, #40]
Lloh0:
	adrp	x8, _PF_INET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PF_INET@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x8, _SOCK_PACKET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SOCK_PACKET@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
Lloh6:
	adrp	x8, _ETH_P_ALL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ETH_P_ALL@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_htons
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_socket
	str	w0, [x19]
	cmn	w0, #1
	b.eq	LBB0_11
; %bb.1:
	mov	w8, #1
	str	w8, [x23]
	str	xzr, [x23, #16]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	cbz	x0, LBB0_13
; %bb.2:
	ldr	w0, [x19]
	ldr	w2, [x19, #32]
	mov	x1, x20
	bl	_iface_bind_old
	cmn	w0, #1
	b.eq	LBB0_14
; %bb.3:
	ldr	w0, [x19]
	ldr	w2, [x19, #32]
	mov	x1, x20
	bl	_iface_get_arptype
	tbnz	w0, #31, LBB0_14
; %bb.4:
	mov	x21, x0
	ldr	w1, [x19]
	mov	x0, x19
	mov	x2, x21
	mov	x3, x20
	mov	w4, #0
	bl	_map_arphrd_to_dlt
	ldr	w8, [x19, #4]
	cmn	w8, #1
	b.eq	LBB0_17
; %bb.5:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_8
; %bb.6:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	w0, [sp, #12]
	mov	x1, x20
	mov	w2, #4
	bl	_strlcpy
	ldr	w0, [x19]
Lloh11:
	adrp	x8, _SIOCGIFFLAGS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SIOCGIFFLAGS@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_ioctl
	cmn	w0, #1
	b.eq	LBB0_21
; %bb.7:
	ldr	w8, [sp, #8]
Lloh14:
	adrp	x21, _IFF_PROMISC@GOTPAGE
Lloh15:
	ldr	x21, [x21, _IFF_PROMISC@GOTPAGEOFF]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_22
LBB0_8:
	mov	x0, sp
	bl	_uname
	tbnz	x0, #63, LBB0_18
; %bb.9:
	ldr	w0, [sp]
Lloh16:
	adrp	x1, l_.str.6@PAGE
Lloh17:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w2, #3
	bl	_strncmp
	cbz	x0, LBB0_18
; %bb.10:
	ldr	x8, [x19, #24]
	b	LBB0_20
LBB0_11:
Lloh18:
	adrp	x8, _errno@GOTPAGE
Lloh19:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh20:
	ldr	w20, [x8]
	ldr	w0, [x19, #32]
Lloh21:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x3, l_.str@PAGE
Lloh25:
	add	x3, x3, l_.str@PAGEOFF
	mov	x2, x20
	bl	_pcap_fmt_errmsg_for_errno
Lloh26:
	adrp	x8, _EPERM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
Lloh29:
	adrp	x9, _EACCES@GOTPAGE
Lloh30:
	ldr	x9, [x9, _EACCES@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	cmp	w20, w8
	ccmp	w20, w9, #4, ne
	b.ne	LBB0_14
; %bb.12:
Lloh32:
	adrp	x8, _PCAP_ERROR_PERM_DENIED@GOTPAGE
Lloh33:
	ldr	x8, [x8, _PCAP_ERROR_PERM_DENIED@GOTPAGEOFF]
	b	LBB0_15
LBB0_13:
	ldr	w0, [x19, #32]
Lloh34:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh36:
	ldr	w2, [x8]
Lloh37:
	adrp	x1, l_.str.2@PAGE
Lloh38:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strlcpy
LBB0_14:
Lloh39:
	adrp	x8, _PCAP_ERROR@GOTPAGE
Lloh40:
	ldr	x8, [x8, _PCAP_ERROR@GOTPAGEOFF]
LBB0_15:
	ldr	w0, [x8]
LBB0_16:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_17:
	ldr	w0, [x19, #32]
Lloh41:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh42:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
Lloh44:
	adrp	x2, l_.str.3@PAGE
Lloh45:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x3, x21
	bl	_pcap_snprintf
	b	LBB0_14
LBB0_18:
	ldr	w0, [x19]
	ldr	w2, [x19, #32]
	mov	x1, x20
	bl	_iface_get_mtu
	cmn	w0, #1
	b.eq	LBB0_14
; %bb.19:
Lloh46:
	adrp	x8, _MAX_LINKHEADER_SIZE@GOTPAGE
Lloh47:
	ldr	x8, [x8, _MAX_LINKHEADER_SIZE@GOTPAGEOFF]
Lloh48:
	ldr	x8, [x8]
	add	x8, x8, w0, sxtw
	ldr	x9, [x19, #24]
	cmp	x8, x9
	csel	x8, x8, x9, gt
LBB0_20:
	stp	x8, xzr, [x19, #8]
	mov	w8, #-1
	str	w8, [x23, #4]
	mov	w0, #1
	b	LBB0_16
LBB0_21:
	ldr	w0, [x19, #32]
Lloh49:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh50:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh51:
	ldr	w1, [x8]
Lloh52:
	adrp	x8, _errno@GOTPAGE
Lloh53:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh54:
	ldr	w2, [x8]
Lloh55:
	adrp	x3, l_.str.4@PAGE
Lloh56:
	add	x3, x3, l_.str.4@PAGEOFF
	bl	_pcap_fmt_errmsg_for_errno
	b	LBB0_14
LBB0_22:
	mov	x0, x19
	bl	_pcap_do_addexit
	cbz	w0, LBB0_14
; %bb.23:
	ldr	w8, [x21]
	ldr	w9, [sp, #8]
	orr	w8, w9, w8
	str	w8, [sp, #8]
	ldr	w0, [x19]
Lloh57:
	adrp	x8, _SIOCSIFFLAGS@GOTPAGE
Lloh58:
	ldr	x8, [x8, _SIOCSIFFLAGS@GOTPAGEOFF]
Lloh59:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_ioctl
	cmn	w0, #1
	b.eq	LBB0_25
; %bb.24:
Lloh60:
	adrp	x8, _MUST_CLEAR_PROMISC@GOTPAGE
Lloh61:
	ldr	x8, [x8, _MUST_CLEAR_PROMISC@GOTPAGEOFF]
Lloh62:
	ldr	w8, [x8]
	ldr	w9, [x23, #8]
	orr	w8, w9, w8
	str	w8, [x23, #8]
	mov	x0, x19
	bl	_pcap_add_to_pcaps_to_close
	b	LBB0_8
LBB0_25:
	ldr	w0, [x19, #32]
Lloh63:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh64:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh65:
	ldr	w1, [x8]
Lloh66:
	adrp	x8, _errno@GOTPAGE
Lloh67:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh68:
	ldr	w2, [x8]
Lloh69:
	adrp	x3, l_.str.5@PAGE
Lloh70:
	add	x3, x3, l_.str.5@PAGEOFF
	bl	_pcap_fmt_errmsg_for_errno
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.cfi_endproc
                                        ; -- End function
	.comm	_PF_INET,4,2                    ; @PF_INET
	.comm	_SOCK_PACKET,4,2                ; @SOCK_PACKET
	.comm	_ETH_P_ALL,4,2                  ; @ETH_P_ALL
	.comm	_errno,4,2                      ; @errno
	.comm	_PCAP_ERRBUF_SIZE,4,2           ; @PCAP_ERRBUF_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"socket"

	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_EACCES,4,2                     ; @EACCES
	.comm	_PCAP_ERROR_PERM_DENIED,4,2     ; @PCAP_ERROR_PERM_DENIED
	.comm	_PCAP_ERROR,4,2                 ; @PCAP_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"any"

l_.str.2:                               ; @.str.2
	.asciz	"pcap_activate: The \"any\" device isn't supported on 2.0[.x]-kernel systems"

l_.str.3:                               ; @.str.3
	.asciz	"unknown arptype %d"

	.comm	_SIOCGIFFLAGS,4,2               ; @SIOCGIFFLAGS
l_.str.4:                               ; @.str.4
	.asciz	"SIOCGIFFLAGS"

	.comm	_IFF_PROMISC,4,2                ; @IFF_PROMISC
	.comm	_SIOCSIFFLAGS,4,2               ; @SIOCSIFFLAGS
l_.str.5:                               ; @.str.5
	.asciz	"SIOCSIFFLAGS"

	.comm	_MUST_CLEAR_PROMISC,4,2         ; @MUST_CLEAR_PROMISC
l_.str.6:                               ; @.str.6
	.asciz	"2.0"

	.comm	_MAX_LINKHEADER_SIZE,8,3        ; @MAX_LINKHEADER_SIZE
	.no_dead_strip	_activate_old
.subsections_via_symbols
