	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcap_updatefilter_remote
_pcap_updatefilter_remote:              ## @pcap_updatefilter_remote
	.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	%rsi, %r15
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rdi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_RPCAP_NETBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movl	$0, -52(%rbp)
	movq	_SOCKBUF_CHECKONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	(%r13), %r10d
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	-52(%rbp), %rcx
	xorl	%edi, %edi
	movl	$4, %esi
	xorl	%edx, %edx
	movl	%ebx, %r8d
	pushq	%rax
	pushq	%r10
	callq	_sock_bufferize
	addq	$16, %rsp
	movl	$-1, %r14d
	testq	%rax, %rax
	jne	LBB0_5
## %bb.1:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %esi
	movq	_RPCAP_MSG_UPDATEFILTER_REQ@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movl	(%r15), %eax
	leal	4(,%rax,4), %r8d
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	callq	_rpcap_createhdr
	movslq	-52(%rbp), %rsi
	addq	%r12, %rsi
	leaq	-52(%rbp), %rdx
	movq	%r13, %rdi
	movq	%r15, %rcx
	callq	_pcap_pack_bpffilter
	testq	%rax, %rax
	je	LBB0_2
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	movl	%r14d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movl	-52(%rbp), %edx
	movl	(%r13), %ecx
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r12, %rsi
	callq	_sock_send
	testq	%rax, %rax
	js	LBB0_5
## %bb.3:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movl	4(%rax), %esi
	movl	(%rbx), %edx
	movl	(%r13), %r8d
	leaq	-72(%rbp), %rcx
	callq	_rpcap_process_msg_header
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.4:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movl	-72(%rbp), %esi
	movl	(%r13), %edx
	callq	_rpcap_discard
	xorl	%r14d, %r14d
	cmpl	$-1, %eax
	sete	%r14b
	negl	%r14d
	jmp	LBB0_5
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_RPCAP_NETBUF_SIZE,4,2          ## @RPCAP_NETBUF_SIZE
	.comm	_SOCKBUF_CHECKONLY,4,2          ## @SOCKBUF_CHECKONLY
	.comm	_PCAP_ERRBUF_SIZE,4,2           ## @PCAP_ERRBUF_SIZE
	.comm	_RPCAP_MSG_UPDATEFILTER_REQ,4,2 ## @RPCAP_MSG_UPDATEFILTER_REQ
	.no_dead_strip	_pcap_updatefilter_remote
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcap_updatefilter_remote
_pcap_updatefilter_remote:              ; @pcap_updatefilter_remote
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #16
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	x22, [x0, #8]
Lloh3:
	adrp	x8, _RPCAP_NETBUF_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RPCAP_NETBUF_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
	mov	x9, x4
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x4, #15
	and	x9, x9, #0x1fffffff0
	sub	x21, x8, x9
	mov	sp, x21
Lloh8:
	adrp	x8, _SOCKBUF_CHECKONLY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SOCKBUF_CHECKONLY@GOTPAGEOFF]
	stur	wzr, [x29, #-60]
Lloh10:
	ldr	w5, [x8]
	ldr	w6, [x0]
Lloh11:
	adrp	x23, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh12:
	ldr	x23, [x23, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
	ldr	w7, [x23]
	sub	x3, x29, #60
	mov	x0, #0
	mov	w1, #4
	mov	x2, #0
                                        ; kill: def $w4 killed $w4 killed $x4
	bl	_sock_bufferize
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w1, [x22, #4]
Lloh13:
	adrp	x24, _RPCAP_MSG_UPDATEFILTER_REQ@GOTPAGE
Lloh14:
	ldr	x24, [x24, _RPCAP_MSG_UPDATEFILTER_REQ@GOTPAGEOFF]
	ldr	w2, [x24]
	ldr	w8, [x20]
	lsl	w8, w8, #2
	add	w4, w8, #4
	mov	x0, x21
	mov	w3, #0
	bl	_rpcap_createhdr
	ldursw	x8, [x29, #-60]
	add	x1, x21, x8
	sub	x2, x29, #60
	mov	x0, x19
	mov	x3, x20
	bl	_pcap_pack_bpffilter
	cbz	x0, LBB0_5
LBB0_2:
	mov	w0, #-1
LBB0_3:
	ldur	x8, [x29, #-56]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.4:
	sub	sp, x29, #48
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	w0, [x22]
	ldur	w2, [x29, #-60]
	ldr	w3, [x19]
	ldr	w4, [x23]
	mov	x1, x21
	bl	_sock_send
	tbnz	x0, #63, LBB0_2
; %bb.6:
	ldp	w0, w1, [x22]
	ldr	w2, [x24]
	ldr	w4, [x19]
	sub	x3, x29, #64
	bl	_rpcap_process_msg_header
	cmn	w0, #1
	b.eq	LBB0_3
; %bb.7:
	ldr	w0, [x22]
	ldur	w1, [x29, #-64]
	ldr	w2, [x19]
	bl	_rpcap_discard
	cmn	w0, #1
	csetm	w0, eq
	b	LBB0_3
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_RPCAP_NETBUF_SIZE,4,2          ; @RPCAP_NETBUF_SIZE
	.comm	_SOCKBUF_CHECKONLY,4,2          ; @SOCKBUF_CHECKONLY
	.comm	_PCAP_ERRBUF_SIZE,4,2           ; @PCAP_ERRBUF_SIZE
	.comm	_RPCAP_MSG_UPDATEFILTER_REQ,4,2 ; @RPCAP_MSG_UPDATEFILTER_REQ
	.no_dead_strip	_pcap_updatefilter_remote
.subsections_via_symbols
