	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcap_pack_bpffilter
_pcap_pack_bpffilter:                   ## @pcap_pack_bpffilter
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r13
	cmpl	$0, (%rcx)
	jne	LBB0_3
## %bb.1:
	leaq	-56(%rbp), %r14
	movq	%r13, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_pcap_compile
	cmpl	$-1, %eax
	je	LBB0_2
LBB0_3:
	movq	_RPCAP_NETBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_SOCKBUF_CHECKONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	(%r13), %eax
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	xorl	%edi, %edi
	movl	$16, %esi
	xorl	%edx, %edx
	movq	%r12, %rcx
	pushq	%rbx
	pushq	%rax
	callq	_sock_bufferize
	addq	$16, %rsp
	movl	$-1, %ecx
	testq	%rax, %rax
	jne	LBB0_9
## %bb.4:
	movq	_RPCAP_UPDATEFILTER_BPF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movq	%rax, 8(%r15)
	movl	(%r14), %edi
	callq	_htonl
	movq	%rax, (%r15)
	movl	(%r14), %eax
	shll	$3, %eax
	leal	(%rax,%rax,2), %esi
	movq	_RPCAP_NETBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_SOCKBUF_CHECKONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	(%r13), %eax
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	xorl	%edi, %edi
	xorl	%edx, %edx
	movq	%r12, %rcx
	pushq	%rbx
	pushq	%rax
	callq	_sock_bufferize
	movl	$-1, %ecx
	addq	$16, %rsp
	testq	%rax, %rax
	jne	LBB0_9
## %bb.5:
	cmpl	$0, (%r14)
	movl	$0, %ecx
	je	LBB0_9
## %bb.6:
	movq	8(%r14), %rbx
	addq	$12, %rbx
	addq	$32, %r15
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	callq	_htons
	movq	%rax, (%r15)
	movl	-4(%rbx), %eax
	movl	%eax, -4(%r15)
	movl	-8(%rbx), %eax
	movl	%eax, -8(%r15)
	movl	-12(%rbx), %edi
	callq	_htonl
	movq	%rax, -16(%r15)
	incl	%r12d
	addq	$16, %rbx
	addq	$24, %r15
	cmpl	(%r14), %r12d
	jb	LBB0_7
## %bb.8:
	xorl	%ecx, %ecx
	jmp	LBB0_9
LBB0_2:
	movl	$-1, %ecx
LBB0_9:
	movl	%ecx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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_UPDATEFILTER_BPF,4,2     ## @RPCAP_UPDATEFILTER_BPF
	.no_dead_strip	_pcap_pack_bpffilter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcap_pack_bpffilter
_pcap_pack_bpffilter:                   ; @pcap_pack_bpffilter
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x3
	mov	x21, x2
	mov	x20, x1
	mov	x22, x0
	ldr	w8, [x3]
	cbnz	w8, LBB0_2
; %bb.1:
	mov	x19, sp
	mov	x1, sp
	mov	x0, x22
	mov	x2, #0
	mov	w3, #1
	mov	w4, #0
	bl	_pcap_compile
	cmn	w0, #1
	b.eq	LBB0_5
LBB0_2:
Lloh0:
	adrp	x23, _RPCAP_NETBUF_SIZE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _RPCAP_NETBUF_SIZE@GOTPAGEOFF]
Lloh2:
	adrp	x24, _SOCKBUF_CHECKONLY@GOTPAGE
Lloh3:
	ldr	x24, [x24, _SOCKBUF_CHECKONLY@GOTPAGEOFF]
	ldr	w4, [x23]
	ldr	w5, [x24]
	ldr	w6, [x22]
Lloh4:
	adrp	x25, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh5:
	ldr	x25, [x25, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
	ldr	w7, [x25]
	mov	x0, #0
	mov	w1, #16
	mov	x2, #0
	mov	x3, x21
	bl	_sock_bufferize
	cbnz	x0, LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _RPCAP_UPDATEFILTER_BPF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RPCAP_UPDATEFILTER_BPF@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_htons
	str	x0, [x20, #8]
	ldr	w0, [x19]
	bl	_htonl
	str	x0, [x20]
	ldr	w8, [x19]
	add	w8, w8, w8, lsl #1
	lsl	w1, w8, #3
	ldr	w4, [x23]
	ldr	w5, [x24]
	ldr	w6, [x22]
	ldr	w7, [x25]
	mov	x0, #0
	mov	x2, #0
	mov	x3, x21
	bl	_sock_bufferize
	cbz	x0, LBB0_6
LBB0_4:
	mov	w0, #-1
LBB0_5:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_6:
	ldr	w8, [x19]
	cbz	w8, LBB0_9
; %bb.7:
	mov	w21, #0
	ldr	x22, [x19, #8]
	add	x20, x20, #32
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22, #12]
	bl	_htons
	str	x0, [x20]
	ldur	d0, [x22, #4]
	stur	d0, [x20, #-8]
	ldr	w0, [x22], #16
	bl	_htonl
	stur	x0, [x20, #-16]
	add	w21, w21, #1
	ldr	w8, [x19]
	add	x20, x20, #24
	cmp	w21, w8
	b.lo	LBB0_8
LBB0_9:
	mov	w0, #0
	b	LBB0_5
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.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_UPDATEFILTER_BPF,4,2     ; @RPCAP_UPDATEFILTER_BPF
	.no_dead_strip	_pcap_pack_bpffilter
.subsections_via_symbols
