	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_init_pcap                      ## -- Begin function init_pcap
	.p2align	4, 0x90
_init_pcap:                             ## @init_pcap
	.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	_interface@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_snaplen@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_PCAP_TO_MS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_errbuf@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r8d
	movl	$1, %edx
	callq	_pcap_open_live
	movq	_hpcap@GOTPCREL(%rip), %r14
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rdi
	callq	_pcap_datalink
	movq	_DLT_PFLOG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.4:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_set_pcap_filter
	movq	(%r14), %rdi
	callq	_pcap_snapshot
	movl	%eax, (%r15)
	movq	_cur_snaplen@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	(%r14), %rdi
	callq	_pcap_fileno
	movq	_BIOCLOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_ioctl
	testq	%rax, %rax
	jns	LBB0_8
## %bb.5:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	jmp	LBB0_6
LBB0_1:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rsi
LBB0_6:
	xorl	%eax, %eax
	callq	_logmsg
	jmp	LBB0_7
LBB0_3:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_logmsg
	movq	(%r14), %rdi
	callq	_pcap_close
	movq	$0, (%r14)
LBB0_7:
	movl	$-1, %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_interface,4,2                  ## @interface
	.comm	_snaplen,4,2                    ## @snaplen
	.comm	_PCAP_TO_MS,4,2                 ## @PCAP_TO_MS
	.comm	_errbuf,4,2                     ## @errbuf
	.comm	_hpcap,8,3                      ## @hpcap
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to initialize: %s"

	.comm	_DLT_PFLOG,8,3                  ## @DLT_PFLOG
L_.str.1:                               ## @.str.1
	.asciz	"Invalid datalink type"

	.comm	_cur_snaplen,4,2                ## @cur_snaplen
	.comm	_BIOCLOCK,4,2                   ## @BIOCLOCK
L_.str.2:                               ## @.str.2
	.asciz	"BIOCLOCK: %s"

	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_init_pcap                      ; -- Begin function init_pcap
	.p2align	2
_init_pcap:                             ; @init_pcap
	.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
Lloh0:
	adrp	x8, _interface@GOTPAGE
Lloh1:
	ldr	x8, [x8, _interface@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x20, _snaplen@GOTPAGE
Lloh4:
	ldr	x20, [x20, _snaplen@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh5:
	adrp	x8, _PCAP_TO_MS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PCAP_TO_MS@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
Lloh8:
	adrp	x21, _errbuf@GOTPAGE
Lloh9:
	ldr	x21, [x21, _errbuf@GOTPAGEOFF]
	ldr	w4, [x21]
	mov	w2, #1
	bl	_pcap_open_live
Lloh10:
	adrp	x19, _hpcap@GOTPAGE
Lloh11:
	ldr	x19, [x19, _hpcap@GOTPAGEOFF]
	str	x0, [x19]
	cbz	x0, LBB0_4
; %bb.1:
	bl	_pcap_datalink
Lloh12:
	adrp	x8, _DLT_PFLOG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DLT_PFLOG@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.2:
	bl	_set_pcap_filter
	ldr	x0, [x19]
	bl	_pcap_snapshot
	str	w0, [x20]
Lloh15:
	adrp	x8, _cur_snaplen@GOTPAGE
Lloh16:
	ldr	x8, [x8, _cur_snaplen@GOTPAGEOFF]
Lloh17:
	str	w0, [x8]
	ldr	x0, [x19]
	bl	_pcap_fileno
Lloh18:
	adrp	x8, _BIOCLOCK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BIOCLOCK@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_ioctl
	tbnz	x0, #63, LBB0_6
; %bb.3:
	mov	w0, #0
	b	LBB0_9
LBB0_4:
Lloh21:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	ldr	w8, [x21]
	str	x8, [sp]
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_7
LBB0_5:
Lloh26:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
Lloh29:
	adrp	x1, l_.str.1@PAGE
Lloh30:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_logmsg
	ldr	x0, [x19]
	bl	_pcap_close
	str	xzr, [x19]
	b	LBB0_8
LBB0_6:
Lloh31:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh32:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh33:
	ldr	w19, [x8]
Lloh34:
	adrp	x8, _errno@GOTPAGE
Lloh35:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh37:
	adrp	x1, l_.str.2@PAGE
Lloh38:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
LBB0_7:
	bl	_logmsg
LBB0_8:
	mov	w0, #-1
LBB0_9:
	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
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_interface,4,2                  ; @interface
	.comm	_snaplen,4,2                    ; @snaplen
	.comm	_PCAP_TO_MS,4,2                 ; @PCAP_TO_MS
	.comm	_errbuf,4,2                     ; @errbuf
	.comm	_hpcap,8,3                      ; @hpcap
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to initialize: %s"

	.comm	_DLT_PFLOG,8,3                  ; @DLT_PFLOG
l_.str.1:                               ; @.str.1
	.asciz	"Invalid datalink type"

	.comm	_cur_snaplen,4,2                ; @cur_snaplen
	.comm	_BIOCLOCK,4,2                   ; @BIOCLOCK
l_.str.2:                               ; @.str.2
	.asciz	"BIOCLOCK: %s"

	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
