	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcap_setsampling_remote
_pcap_setsampling_remote:               ## @pcap_setsampling_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	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	16(%rdi), %r15
	movq	_RPCAP_NETBUF_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rdx
	movl	$0, -52(%rbp)
	movl	4(%r12), %ecx
	movq	_PCAP_SAMP_NOSAMP@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	cmpl	(%rax), %ecx
	je	LBB0_11
## %bb.1:
	cmpl	$256, %ecx                      ## imm = 0x100
	jb	LBB0_4
## %bb.2:
	movl	(%r12), %edi
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_3
LBB0_4:
	movl	8(%r12), %ecx
	cmpl	$65536, %ecx                    ## imm = 0x10000
	jb	LBB0_6
## %bb.5:
	movl	(%r12), %edi
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
LBB0_3:
	callq	_pcap_snprintf
	movl	$-1, %r14d
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	movl	%r14d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	_SOCKBUF_CHECKONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	(%r12), %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_11
## %bb.7:
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movl	4(%r15), %esi
	movq	_RPCAP_MSG_SETSAMPLING_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	movl	$16, %r8d
	callq	_rpcap_createhdr
	movslq	-52(%rbp), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	(%r13), %r8d
	movq	_SOCKBUF_CHECKONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	(%r12), %eax
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	leaq	-52(%rbp), %rcx
	xorl	%edi, %edi
	movl	$16, %esi
	xorl	%edx, %edx
	pushq	%rbx
	pushq	%rax
	callq	_sock_bufferize
	addq	$16, %rsp
	testq	%rax, %rax
	jne	LBB0_11
## %bb.8:
	movq	%r15, %rdi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	addq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movslq	4(%r12), %rax
	movq	%rax, 8(%r15,%rbx)
	movl	8(%r12), %edi
	callq	_htonl
	movq	%rax, (%r15,%rbx)
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %edi
	movl	-52(%rbp), %edx
	movl	(%r12), %ecx
	movl	(%r13), %r8d
	movq	%r15, %rsi
	callq	_sock_send
	testq	%rax, %rax
	js	LBB0_11
## %bb.9:
	movl	(%rbx), %edi
	movl	4(%rbx), %esi
	movq	_RPCAP_MSG_SETSAMPLING_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r12), %r8d
	leaq	-56(%rbp), %rcx
	callq	_rpcap_process_msg_header
	cmpl	$-1, %eax
	je	LBB0_11
## %bb.10:
	movl	(%rbx), %edi
	movl	-56(%rbp), %esi
	movl	(%r12), %edx
	callq	_rpcap_discard
	xorl	%r14d, %r14d
	cmpl	$-1, %eax
	sete	%r14b
	negl	%r14d
	jmp	LBB0_11
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_RPCAP_NETBUF_SIZE,4,2          ## @RPCAP_NETBUF_SIZE
	.comm	_PCAP_SAMP_NOSAMP,4,2           ## @PCAP_SAMP_NOSAMP
	.comm	_PCAP_ERRBUF_SIZE,4,2           ## @PCAP_ERRBUF_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid sampling method %d"

L_.str.1:                               ## @.str.1
	.asciz	"Invalid sampling value %d"

	.comm	_SOCKBUF_CHECKONLY,4,2          ## @SOCKBUF_CHECKONLY
	.comm	_RPCAP_MSG_SETSAMPLING_REQ,4,2  ## @RPCAP_MSG_SETSAMPLING_REQ
	.no_dead_strip	_pcap_setsampling_remote
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcap_setsampling_remote
_pcap_setsampling_remote:               ; @pcap_setsampling_remote
	.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, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	ldr	x22, [x0, #16]
Lloh3:
	adrp	x21, _RPCAP_NETBUF_SIZE@GOTPAGE
Lloh4:
	ldr	x21, [x21, _RPCAP_NETBUF_SIZE@GOTPAGEOFF]
	ldr	w4, [x21]
	mov	x9, x4
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x4, #15
	and	x9, x9, #0x1fffffff0
	sub	x20, x8, x9
	mov	sp, x20
	mov	w0, #0
	stur	wzr, [x29, #-76]
	ldr	w3, [x19, #4]
Lloh7:
	adrp	x8, _PCAP_SAMP_NOSAMP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PCAP_SAMP_NOSAMP@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w3, w8
	b.eq	LBB0_7
; %bb.1:
	cmp	w3, #256
	b.lo	LBB0_3
; %bb.2:
	ldr	w0, [x19]
Lloh10:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x2, l_.str@PAGE
Lloh14:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_5
LBB0_3:
	ldr	w3, [x19, #8]
	cmp	w3, #16, lsl #12                ; =65536
	b.lo	LBB0_9
; %bb.4:
	ldr	w0, [x19]
Lloh15:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x2, l_.str.1@PAGE
Lloh19:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_5:
	bl	_pcap_snprintf
LBB0_6:
	mov	w0, #-1
LBB0_7:
	ldur	x8, [x29, #-72]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.8:
	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_9:
Lloh23:
	adrp	x25, _SOCKBUF_CHECKONLY@GOTPAGE
Lloh24:
	ldr	x25, [x25, _SOCKBUF_CHECKONLY@GOTPAGEOFF]
	ldr	w5, [x25]
	ldr	w6, [x19]
Lloh25:
	adrp	x23, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh26:
	ldr	x23, [x23, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
	ldr	w7, [x23]
	sub	x3, x29, #76
	mov	x0, #0
	mov	w1, #4
	mov	x2, #0
                                        ; kill: def $w4 killed $w4 killed $x4
	bl	_sock_bufferize
	cbnz	x0, LBB0_6
; %bb.10:
	ldr	w1, [x22, #4]
Lloh27:
	adrp	x24, _RPCAP_MSG_SETSAMPLING_REQ@GOTPAGE
Lloh28:
	ldr	x24, [x24, _RPCAP_MSG_SETSAMPLING_REQ@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x0, x20
	mov	w3, #0
	mov	w4, #16
	bl	_rpcap_createhdr
	ldursw	x26, [x29, #-76]
	ldr	w4, [x21]
	ldr	w5, [x25]
	ldr	w6, [x19]
	ldr	w7, [x23]
	sub	x3, x29, #76
	mov	x0, #0
	mov	w1, #16
	mov	x2, #0
	bl	_sock_bufferize
	cbnz	x0, LBB0_6
; %bb.11:
	add	x21, x20, x26
	mov	x0, x21
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldp	w8, w0, [x19, #4]
                                        ; kill: def $w8 killed $w8 def $x8
	sxtw	x8, w8
	str	x8, [x21, #8]
	bl	_htonl
	str	x0, [x21]
	ldr	w0, [x22]
	ldur	w2, [x29, #-76]
	ldr	w3, [x19]
	ldr	w4, [x23]
	mov	x1, x20
	bl	_sock_send
	tbnz	x0, #63, LBB0_6
; %bb.12:
	ldp	w0, w1, [x22]
	ldr	w2, [x24]
	ldr	w4, [x19]
	sub	x3, x29, #80
	bl	_rpcap_process_msg_header
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.13:
	ldr	w0, [x22]
	ldur	w1, [x29, #-80]
	ldr	w2, [x19]
	bl	_rpcap_discard
	cmn	w0, #1
	csetm	w0, eq
	b	LBB0_7
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_RPCAP_NETBUF_SIZE,4,2          ; @RPCAP_NETBUF_SIZE
	.comm	_PCAP_SAMP_NOSAMP,4,2           ; @PCAP_SAMP_NOSAMP
	.comm	_PCAP_ERRBUF_SIZE,4,2           ; @PCAP_ERRBUF_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid sampling method %d"

l_.str.1:                               ; @.str.1
	.asciz	"Invalid sampling value %d"

	.comm	_SOCKBUF_CHECKONLY,4,2          ; @SOCKBUF_CHECKONLY
	.comm	_RPCAP_MSG_SETSAMPLING_REQ,4,2  ; @RPCAP_MSG_SETSAMPLING_REQ
	.no_dead_strip	_pcap_setsampling_remote
.subsections_via_symbols
