	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pcap_open                      ## -- Begin function pcap_open
	.p2align	4, 0x90
_pcap_open:                             ## @pcap_open
	.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	%r9, %r15
	movq	%r8, %r12
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PCAP_BUF_SIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	%r13, %rdi
	callq	_strlen
	cmpl	(%rbx), %eax
	jle	LBB0_2
## %bb.1:
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_pcap_snprintf
	jmp	LBB0_27
LBB0_2:
	xorl	%ebx, %ebx
	leaq	-76(%rbp), %rsi
	movq	%r13, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, %r8
	movq	%r15, %r9
	callq	_pcap_parsesrcstr
	cmpl	$-1, %eax
	je	LBB0_27
## %bb.3:
	movq	%r15, %r14
	movl	-76(%rbp), %eax
	cmpl	$128, %eax
	je	LBB0_17
## %bb.4:
	cmpl	$129, %eax
	je	LBB0_7
## %bb.5:
	cmpl	$130, %eax
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	jne	LBB0_18
## %bb.6:
	movq	%r14, %rsi
	callq	_pcap_open_offline
	movq	%rax, %rbx
	jmp	LBB0_27
LBB0_17:
	movq	%r13, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	movq	%r12, %r8
	movq	%r14, %r9
	callq	_pcap_open_rpcap
	movq	%rax, %rbx
	jmp	LBB0_27
LBB0_7:
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_pcap_create
	testq	%rax, %rax
	je	LBB0_26
## %bb.8:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_pcap_set_snaplen
	testl	%eax, %eax
	js	LBB0_15
## %bb.9:
	movq	_PCAP_OPENFLAG_PROMISCUOUS@GOTPCREL(%rip), %rax
	movl	-56(%rbp), %r13d                ## 4-byte Reload
	testl	%r13d, (%rax)
	je	LBB0_11
## %bb.10:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_pcap_set_promisc
	testl	%eax, %eax
	js	LBB0_15
LBB0_11:
	movq	_PCAP_OPENFLAG_MAX_RESPONSIVENESS@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_13
## %bb.12:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_pcap_set_immediate_mode
	testl	%eax, %eax
	js	LBB0_15
LBB0_13:
	movq	%rbx, %rdi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	callq	_pcap_set_timeout
	testl	%eax, %eax
	js	LBB0_15
## %bb.14:
	movq	%rbx, %rdi
	callq	_pcap_activate
	testl	%eax, %eax
	jns	LBB0_27
LBB0_15:
	movl	%eax, %r15d
	movq	_PCAP_ERROR@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jne	LBB0_19
## %bb.16:
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %r8d
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	movq	%r12, %rcx
	jmp	LBB0_24
LBB0_18:
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_strlcpy
	jmp	LBB0_26
LBB0_19:
	movq	_PCAP_ERROR_NO_SUCH_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_PCAP_ERROR_PERM_DENIED@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_PCAP_ERROR_PROMISC_PERM_DENIED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%r15d, %edi
	callq	_pcap_statustostr
	cmpl	%r13d, %r15d
	je	LBB0_22
## %bb.20:
	cmpl	%r12d, %r15d
	je	LBB0_22
## %bb.21:
	cmpl	-56(%rbp), %r15d                ## 4-byte Folded Reload
	je	LBB0_22
## %bb.23:
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, %r8d
LBB0_24:
	xorl	%eax, %eax
	callq	_pcap_snprintf
	jmp	LBB0_25
LBB0_22:
	movl	(%rbx), %r9d
	leaq	L_.str.3(%rip), %rdx
	movq	%r14, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_pcap_snprintf
LBB0_25:
	movq	%rbx, %rdi
	callq	_pcap_close
LBB0_26:
	xorl	%ebx, %ebx
LBB0_27:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_29
## %bb.28:
	movq	%rbx, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_29:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PCAP_BUF_SIZE,4,2              ## @PCAP_BUF_SIZE
	.comm	_PCAP_ERRBUF_SIZE,4,2           ## @PCAP_ERRBUF_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"The source string is too long. Cannot handle it correctly."

L_.str.1:                               ## @.str.1
	.asciz	"Source type not supported"

	.comm	_PCAP_OPENFLAG_PROMISCUOUS,4,2  ## @PCAP_OPENFLAG_PROMISCUOUS
	.comm	_PCAP_OPENFLAG_MAX_RESPONSIVENESS,4,2 ## @PCAP_OPENFLAG_MAX_RESPONSIVENESS
	.comm	_PCAP_ERROR,4,2                 ## @PCAP_ERROR
L_.str.2:                               ## @.str.2
	.asciz	"%s: %s"

	.comm	_PCAP_ERROR_NO_SUCH_DEVICE,4,2  ## @PCAP_ERROR_NO_SUCH_DEVICE
	.comm	_PCAP_ERROR_PERM_DENIED,4,2     ## @PCAP_ERROR_PERM_DENIED
	.comm	_PCAP_ERROR_PROMISC_PERM_DENIED,4,2 ## @PCAP_ERROR_PROMISC_PERM_DENIED
L_.str.3:                               ## @.str.3
	.asciz	"%s: %s (%s)"

	.comm	_PCAP_OPENFLAG_NOCAPTURE_LOCAL,4,2 ## @PCAP_OPENFLAG_NOCAPTURE_LOCAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pcap_open                      ; -- Begin function pcap_open
	.p2align	2
_pcap_open:                             ; @pcap_open
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
	mov	x19, x5
	mov	x20, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x25, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x26, _PCAP_BUF_SIZE@GOTPAGE
Lloh4:
	ldr	x26, [x26, _PCAP_BUF_SIZE@GOTPAGEOFF]
	ldr	w8, [x26]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	bl	_strlen
	ldr	w8, [x26]
	cmp	w0, w8
	b.le	LBB0_2
; %bb.1:
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
	mov	x0, x19
	bl	_pcap_snprintf
	b	LBB0_24
LBB0_2:
	sub	x1, x29, #76
	mov	x0, x25
	mov	x2, #0
	mov	x3, #0
	mov	x4, x21
	mov	x5, x19
	bl	_pcap_parsesrcstr
	cmn	w0, #1
	b.eq	LBB0_24
; %bb.3:
	ldur	w8, [x29, #-76]
	cmp	w8, #128
	b.eq	LBB0_7
; %bb.4:
	cmp	w8, #129
	b.eq	LBB0_8
; %bb.5:
	cmp	w8, #130
	b.ne	LBB0_18
; %bb.6:
	mov	x0, x21
	mov	x1, x19
	bl	_pcap_open_offline
	mov	x20, x0
	b	LBB0_25
LBB0_7:
	mov	x0, x25
	mov	x1, x24
	mov	x2, x23
	mov	x3, x22
	mov	x4, x20
	mov	x5, x19
	bl	_pcap_open_rpcap
	mov	x20, x0
	b	LBB0_25
LBB0_8:
	mov	x0, x21
	mov	x1, x19
	bl	_pcap_create
	mov	x20, x0
	cbz	x0, LBB0_25
; %bb.9:
	mov	x0, x20
	mov	x1, x24
	bl	_pcap_set_snaplen
	tbnz	w0, #31, LBB0_16
; %bb.10:
Lloh12:
	adrp	x8, _PCAP_OPENFLAG_PROMISCUOUS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PCAP_OPENFLAG_PROMISCUOUS@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_12
; %bb.11:
	mov	x0, x20
	mov	w1, #1
	bl	_pcap_set_promisc
	tbnz	w0, #31, LBB0_16
LBB0_12:
Lloh15:
	adrp	x8, _PCAP_OPENFLAG_MAX_RESPONSIVENESS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PCAP_OPENFLAG_MAX_RESPONSIVENESS@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_14
; %bb.13:
	mov	x0, x20
	mov	w1, #1
	bl	_pcap_set_immediate_mode
	tbnz	w0, #31, LBB0_16
LBB0_14:
	mov	x0, x20
	mov	x1, x22
	bl	_pcap_set_timeout
	tbnz	w0, #31, LBB0_16
; %bb.15:
	mov	x0, x20
	bl	_pcap_activate
	tbz	w0, #31, LBB0_25
LBB0_16:
	mov	x24, x0
Lloh18:
	adrp	x8, _PCAP_ERROR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PCAP_ERROR@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_19
; %bb.17:
Lloh21:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	ldr	w8, [x20]
	stp	x21, x8, [sp, #-16]!
Lloh24:
	adrp	x2, l_.str.2@PAGE
Lloh25:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	b	LBB0_22
LBB0_18:
Lloh26:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
Lloh29:
	adrp	x1, l_.str.1@PAGE
Lloh30:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_strlcpy
	b	LBB0_24
LBB0_19:
Lloh31:
	adrp	x8, _PCAP_ERROR_NO_SUCH_DEVICE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _PCAP_ERROR_NO_SUCH_DEVICE@GOTPAGEOFF]
Lloh33:
	ldr	w23, [x8]
Lloh34:
	adrp	x8, _PCAP_ERROR_PERM_DENIED@GOTPAGE
Lloh35:
	ldr	x8, [x8, _PCAP_ERROR_PERM_DENIED@GOTPAGEOFF]
Lloh36:
	ldr	w25, [x8]
Lloh37:
	adrp	x8, _PCAP_ERROR_PROMISC_PERM_DENIED@GOTPAGE
Lloh38:
	ldr	x8, [x8, _PCAP_ERROR_PROMISC_PERM_DENIED@GOTPAGEOFF]
Lloh39:
	ldr	w26, [x8]
Lloh40:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh41:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh42:
	ldr	w22, [x8]
	mov	x0, x24
	bl	_pcap_statustostr
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w24, w23
	ccmp	w24, w25, #4, ne
	ccmp	w24, w26, #4, ne
	b.ne	LBB0_21
; %bb.20:
	ldr	w8, [x20]
	sub	sp, sp, #32
	stp	x0, x8, [sp, #8]
	str	x21, [sp]
Lloh43:
	adrp	x2, l_.str.3@PAGE
Lloh44:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x1, x22
	bl	_pcap_snprintf
	add	sp, sp, #32
	b	LBB0_23
LBB0_21:
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
	stp	x21, x0, [sp, #-16]!
Lloh45:
	adrp	x2, l_.str.2@PAGE
Lloh46:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x1, x22
LBB0_22:
	bl	_pcap_snprintf
	add	sp, sp, #16
LBB0_23:
	mov	x0, x20
	bl	_pcap_close
LBB0_24:
	mov	x20, #0
LBB0_25:
	ldur	x8, [x29, #-72]
Lloh47:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh48:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh49:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_27
; %bb.26:
	mov	x0, x20
	sub	sp, x29, #64
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_27:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_PCAP_BUF_SIZE,4,2              ; @PCAP_BUF_SIZE
	.comm	_PCAP_ERRBUF_SIZE,4,2           ; @PCAP_ERRBUF_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"The source string is too long. Cannot handle it correctly."

l_.str.1:                               ; @.str.1
	.asciz	"Source type not supported"

	.comm	_PCAP_OPENFLAG_PROMISCUOUS,4,2  ; @PCAP_OPENFLAG_PROMISCUOUS
	.comm	_PCAP_OPENFLAG_MAX_RESPONSIVENESS,4,2 ; @PCAP_OPENFLAG_MAX_RESPONSIVENESS
	.comm	_PCAP_ERROR,4,2                 ; @PCAP_ERROR
l_.str.2:                               ; @.str.2
	.asciz	"%s: %s"

	.comm	_PCAP_ERROR_NO_SUCH_DEVICE,4,2  ; @PCAP_ERROR_NO_SUCH_DEVICE
	.comm	_PCAP_ERROR_PERM_DENIED,4,2     ; @PCAP_ERROR_PERM_DENIED
	.comm	_PCAP_ERROR_PROMISC_PERM_DENIED,4,2 ; @PCAP_ERROR_PROMISC_PERM_DENIED
l_.str.3:                               ; @.str.3
	.asciz	"%s: %s (%s)"

	.comm	_PCAP_OPENFLAG_NOCAPTURE_LOCAL,4,2 ; @PCAP_OPENFLAG_NOCAPTURE_LOCAL
.subsections_via_symbols
