	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bpf_open
_bpf_open:                              ## @bpf_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	cmpb	$0, _bpf_open.no_cloning_bpf(%rip)
	jne	LBB0_12
## %bb.1:
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	_bpf_open.cloning_device(%rip), %rdi
	callq	_open
	movl	%eax, %r15d
	cmpl	$-1, %eax
	je	LBB0_2
LBB0_11:
	xorl	%ebx, %ebx
	cmpb	$1, _bpf_open.no_cloning_bpf(%rip)
	jne	LBB0_18
LBB0_12:
	leaq	-80(%rbp), %r13
	movq	_errno@GOTPCREL(%rip), %r12
	movq	_EBUSY@GOTPCREL(%rip), %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	$19, %esi
	leaq	L_.str.1(%rip), %rdx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_pcap_snprintf
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_open
	movl	%eax, %r15d
	movl	(%r12), %eax
	cmpl	$-1, %r15d
	jne	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpl	$129, %eax
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_open
	movl	%eax, %r15d
	movl	(%r12), %eax
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=1
	incl	%ebx
	testl	%r15d, %r15d
	jns	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpl	(%r14), %eax
	je	LBB0_13
LBB0_18:
	testl	%r15d, %r15d
	jns	LBB0_29
## %bb.19:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	cmpl	$129, %edx
	je	LBB0_25
## %bb.20:
	movq	_PCAP_ERROR@GOTPCREL(%rip), %rax
	cmpl	$128, %edx
	jne	LBB0_26
## %bb.21:
	movl	(%rax), %r15d
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	cmpl	$1, %ebx
	jne	LBB0_24
## %bb.22:
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_23
LBB0_2:
	movq	_errno@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movl	%edx, %eax
	andl	$-2, %eax
	cmpl	$128, %eax
	jne	LBB0_5
## %bb.3:
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	_bpf_open.cloning_device(%rip), %rdi
	callq	_open
	movl	%eax, %r15d
	cmpl	$-1, %eax
	jne	LBB0_11
## %bb.4:
	movl	(%rbx), %edx
LBB0_5:
	cmpl	$128, %edx
	je	LBB0_10
## %bb.6:
	cmpl	$129, %edx
	jne	LBB0_8
## %bb.7:
	movq	_PCAP_ERROR_PERM_DENIED@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_25:
	movq	_PCAP_ERROR_PERM_DENIED@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rcx
	leaq	-80(%rbp), %r8
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	$129, %edx
	jmp	LBB0_28
LBB0_26:
	movl	(%rax), %r15d
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rcx
	leaq	-80(%rbp), %r8
	jmp	LBB0_27
LBB0_24:
	leaq	L_.str.3(%rip), %rdx
LBB0_23:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_pcap_snprintf
	jmp	LBB0_29
LBB0_10:
	movb	$1, _bpf_open.no_cloning_bpf(%rip)
	jmp	LBB0_12
LBB0_8:
	movq	_PCAP_ERROR@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %r15d
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	leaq	_bpf_open.cloning_device(%rip), %r8
LBB0_27:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
LBB0_28:
	callq	_pcap_fmt_errmsg_for_errno
LBB0_29:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_31
## %bb.30:
	movl	%r15d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_31:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
_bpf_open.cloning_device:               ## @bpf_open.cloning_device
	.asciz	"/dev/bpf"

.zerofill __DATA,__bss,_bpf_open.no_cloning_bpf,1,2 ## @bpf_open.no_cloning_bpf
	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_errno,4,2                      ## @errno
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_PCAP_ERROR_PERM_DENIED,4,2     ## @PCAP_ERROR_PERM_DENIED
	.comm	_PCAP_ERROR,4,2                 ## @PCAP_ERROR
	.comm	_PCAP_ERRBUF_SIZE,4,2           ## @PCAP_ERRBUF_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(cannot open device) %s"

L_.str.1:                               ## @.str.1
	.asciz	"/dev/bpf%d"

	.comm	_EBUSY,4,2                      ## @EBUSY
L_.str.2:                               ## @.str.2
	.asciz	"(there are no BPF devices)"

L_.str.3:                               ## @.str.3
	.asciz	"(all BPF devices are busy)"

L_.str.4:                               ## @.str.4
	.asciz	"(cannot open BPF device) %s"

	.no_dead_strip	_bpf_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bpf_open
_bpf_open:                              ; @bpf_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	adrp	x21, _bpf_open.no_cloning_bpf@PAGE
	ldrb	w8, [x21, _bpf_open.no_cloning_bpf@PAGEOFF]
Lloh3:
	adrp	x22, _O_RDWR@GOTPAGE
Lloh4:
	ldr	x22, [x22, _O_RDWR@GOTPAGEOFF]
	tbnz	w8, #0, LBB0_3
; %bb.1:
	ldr	w1, [x22]
Lloh5:
	adrp	x0, _bpf_open.cloning_device@PAGE
Lloh6:
	add	x0, x0, _bpf_open.cloning_device@PAGEOFF
	bl	_open
	mov	x20, x0
	cmn	w0, #1
	b.eq	LBB0_14
LBB0_2:
	ldrb	w8, [x21, _bpf_open.no_cloning_bpf@PAGEOFF]
	cmp	w8, #1
	b.ne	LBB0_19
LBB0_3:
	mov	w23, #0
Lloh7:
	adrp	x24, _errno@GOTPAGE
Lloh8:
	ldr	x24, [x24, _errno@GOTPAGEOFF]
Lloh9:
	adrp	x25, _O_RDONLY@GOTPAGE
Lloh10:
	ldr	x25, [x25, _O_RDONLY@GOTPAGEOFF]
Lloh11:
	adrp	x21, l_.str.1@PAGE
Lloh12:
	add	x21, x21, l_.str.1@PAGEOFF
Lloh13:
	adrp	x26, _EBUSY@GOTPAGE
Lloh14:
	ldr	x26, [x26, _EBUSY@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	str	x23, [sp]
	add	x0, sp, #21
	mov	w1, #19
	mov	x2, x21
	bl	_pcap_snprintf
	ldr	w1, [x22]
	add	x0, sp, #21
	bl	_open
	mov	x20, x0
	ldr	w8, [x24]
	cmn	w0, #1
	b.ne	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, #129
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x25]
	add	x0, sp, #21
	bl	_open
	mov	x20, x0
	ldr	w8, [x24]
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w23, w23, #1
	tbz	w20, #31, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x26]
	cmp	w8, w9
	b.eq	LBB0_4
LBB0_9:
	tbz	w20, #31, LBB0_25
LBB0_10:
Lloh15:
	adrp	x8, _errno@GOTPAGE
Lloh16:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	cmp	w2, #129
	b.eq	LBB0_20
; %bb.11:
Lloh18:
	adrp	x8, _PCAP_ERROR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PCAP_ERROR@GOTPAGEOFF]
	cmp	w2, #128
	b.ne	LBB0_21
; %bb.12:
	ldr	w20, [x8]
Lloh20:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	cmp	w23, #1
	b.ne	LBB0_23
; %bb.13:
Lloh23:
	adrp	x2, l_.str.2@PAGE
Lloh24:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_24
LBB0_14:
Lloh25:
	adrp	x23, _errno@GOTPAGE
Lloh26:
	ldr	x23, [x23, _errno@GOTPAGEOFF]
	ldr	w2, [x23]
	and	w8, w2, #0xfffffffe
	cmp	w8, #128
	b.ne	LBB0_17
; %bb.15:
Lloh27:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh28:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x0, _bpf_open.cloning_device@PAGE
Lloh31:
	add	x0, x0, _bpf_open.cloning_device@PAGEOFF
	bl	_open
	mov	x20, x0
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.16:
	ldr	w2, [x23]
LBB0_17:
	cmp	w2, #128
	b.eq	LBB0_27
; %bb.18:
Lloh32:
	adrp	x8, _PCAP_ERROR_PERM_DENIED@GOTPAGE
Lloh33:
	ldr	x8, [x8, _PCAP_ERROR_PERM_DENIED@GOTPAGEOFF]
Lloh34:
	adrp	x9, _PCAP_ERROR@GOTPAGE
Lloh35:
	ldr	x9, [x9, _PCAP_ERROR@GOTPAGEOFF]
	cmp	w2, #129
	csel	x8, x8, x9, eq
	ldr	w20, [x8]
Lloh36:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
Lloh39:
	adrp	x3, l_.str@PAGE
Lloh40:
	add	x3, x3, l_.str@PAGEOFF
Lloh41:
	adrp	x4, _bpf_open.cloning_device@PAGE
Lloh42:
	add	x4, x4, _bpf_open.cloning_device@PAGEOFF
	b	LBB0_22
LBB0_19:
	mov	w23, #0
	tbz	w20, #31, LBB0_25
	b	LBB0_10
LBB0_20:
Lloh43:
	adrp	x8, _PCAP_ERROR_PERM_DENIED@GOTPAGE
Lloh44:
	ldr	x8, [x8, _PCAP_ERROR_PERM_DENIED@GOTPAGEOFF]
LBB0_21:
	ldr	w20, [x8]
Lloh45:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh46:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
Lloh48:
	adrp	x3, l_.str.4@PAGE
Lloh49:
	add	x3, x3, l_.str.4@PAGEOFF
	add	x4, sp, #21
LBB0_22:
	mov	x0, x19
	bl	_pcap_fmt_errmsg_for_errno
	b	LBB0_25
LBB0_23:
Lloh50:
	adrp	x2, l_.str.3@PAGE
Lloh51:
	add	x2, x2, l_.str.3@PAGEOFF
LBB0_24:
	mov	x0, x19
	bl	_pcap_snprintf
LBB0_25:
	ldr	x8, [sp, #40]
Lloh52:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh53:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh54:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_28
; %bb.26:
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_27:
	mov	w8, #1
	strb	w8, [x21, _bpf_open.no_cloning_bpf@PAGEOFF]
	b	LBB0_3
LBB0_28:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_bpf_open.cloning_device:               ; @bpf_open.cloning_device
	.asciz	"/dev/bpf"

.zerofill __DATA,__bss,_bpf_open.no_cloning_bpf,1,2 ; @bpf_open.no_cloning_bpf
	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_errno,4,2                      ; @errno
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_PCAP_ERROR_PERM_DENIED,4,2     ; @PCAP_ERROR_PERM_DENIED
	.comm	_PCAP_ERROR,4,2                 ; @PCAP_ERROR
	.comm	_PCAP_ERRBUF_SIZE,4,2           ; @PCAP_ERRBUF_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(cannot open device) %s"

l_.str.1:                               ; @.str.1
	.asciz	"/dev/bpf%d"

	.comm	_EBUSY,4,2                      ; @EBUSY
l_.str.2:                               ; @.str.2
	.asciz	"(there are no BPF devices)"

l_.str.3:                               ; @.str.3
	.asciz	"(all BPF devices are busy)"

l_.str.4:                               ; @.str.4
	.asciz	"(cannot open BPF device) %s"

	.no_dead_strip	_bpf_open
.subsections_via_symbols
