	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_pcap_filter                ## -- Begin function set_pcap_filter
	.p2align	4, 0x90
_set_pcap_filter:                       ## @set_pcap_filter
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_hpcap@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_filter@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PCAP_OPT_FIL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-24(%rbp), %rsi
	xorl	%r8d, %r8d
	callq	_pcap_compile
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movl	(%rbx), %edi
	leaq	-24(%rbp), %rsi
	callq	_pcap_setfilter
	testq	%rax, %rax
	jns	LBB0_4
## %bb.3:
	movq	_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	(%rbx), %edi
	callq	_pcap_geterr
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	callq	_logmsg
LBB0_4:
	leaq	-24(%rbp), %rdi
	callq	_pcap_freecode
	jmp	LBB0_5
LBB0_1:
	movq	_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	(%rbx), %edi
	callq	_pcap_geterr
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	callq	_logmsg
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hpcap,4,2                      ## @hpcap
	.comm	_filter,4,2                     ## @filter
	.comm	_PCAP_OPT_FIL,4,2               ## @PCAP_OPT_FIL
	.comm	_LOG_WARNING,4,2                ## @LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_pcap_filter                ; -- Begin function set_pcap_filter
	.p2align	2
_set_pcap_filter:                       ; @set_pcap_filter
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x20, _hpcap@GOTPAGE
Lloh1:
	ldr	x20, [x20, _hpcap@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh2:
	adrp	x8, _filter@GOTPAGE
Lloh3:
	ldr	x8, [x8, _filter@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x8, _PCAP_OPT_FIL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PCAP_OPT_FIL@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	add	x1, sp, #8
	mov	w4, #0
	bl	_pcap_compile
	tbnz	x0, #63, LBB0_4
; %bb.1:
	ldr	w0, [x20]
	add	x1, sp, #8
	bl	_pcap_setfilter
	tbz	x0, #63, LBB0_3
; %bb.2:
Lloh8:
	adrp	x8, _LOG_WARNING@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LOG_WARNING@GOTPAGEOFF]
Lloh10:
	ldr	w19, [x8]
	ldr	w0, [x20]
	bl	_pcap_geterr
	mov	x2, x0
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_logmsg
LBB0_3:
	add	x0, sp, #8
	bl	_pcap_freecode
	b	LBB0_5
LBB0_4:
Lloh13:
	adrp	x8, _LOG_WARNING@GOTPAGE
Lloh14:
	ldr	x8, [x8, _LOG_WARNING@GOTPAGEOFF]
Lloh15:
	ldr	w19, [x8]
	ldr	w0, [x20]
	bl	_pcap_geterr
	mov	x2, x0
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_logmsg
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_hpcap,4,2                      ; @hpcap
	.comm	_filter,4,2                     ; @filter
	.comm	_PCAP_OPT_FIL,4,2               ; @PCAP_OPT_FIL
	.comm	_LOG_WARNING,4,2                ; @LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

.subsections_via_symbols
