	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dump_packet                    ## -- Begin function dump_packet
	.p2align	4, 0x90
_dump_packet:                           ## @dump_packet
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movslq	(%rsi), %rax
	leaq	24(%rax), %r15
	movq	_cur_snaplen@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$-25, %rax
	ja	LBB0_2
## %bb.1:
	cmpq	%rax, %rcx
	jb	LBB0_2
## %bb.3:
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	_bufleft@GOTPCREL(%rip), %r13
	cmpq	(%r13), %r15
	jbe	LBB0_8
## %bb.4:
	movq	_suspended@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_5
## %bb.6:
	movq	%rdi, %r12
	callq	_flush_buffer
	testq	%rax, %rax
	je	LBB0_7
LBB0_5:
	movq	_packets_dropped@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_2:
	movq	_LOG_NOTICE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_snaplen@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdx
	callq	_logmsg
	movq	_packets_dropped@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	cmpq	(%r13), %r15
	jbe	LBB0_8
## %bb.10:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dump_packet_nobuf              ## TAILCALL
LBB0_8:
	movq	_bufpos@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	movq	%rbx, %rsi
	movl	$24, %edx
	callq	_memcpy
	movq	(%r12), %rdi
	addq	$24, %rdi
	movl	(%rbx), %edx
	movq	%r14, %rsi
	callq	_memcpy
	addq	%r15, (%r12)
	subq	%r15, (%r13)
	movq	_bufpkt@GOTPCREL(%rip), %rax
LBB0_9:
	incl	(%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cur_snaplen,8,3                ## @cur_snaplen
	.comm	_LOG_NOTICE,4,2                 ## @LOG_NOTICE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid size %u (%u/%u), packet dropped"

	.comm	_snaplen,4,2                    ## @snaplen
	.comm	_packets_dropped,4,2            ## @packets_dropped
	.comm	_bufleft,8,3                    ## @bufleft
	.comm	_suspended,8,3                  ## @suspended
	.comm	_bufpos,8,3                     ## @bufpos
	.comm	_bufpkt,4,2                     ## @bufpkt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dump_packet                    ; -- Begin function dump_packet
	.p2align	2
_dump_packet:                           ; @dump_packet
	.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
	ldrsw	x8, [x1]
	add	x19, x8, #24
Lloh0:
	adrp	x9, _cur_snaplen@GOTPAGE
Lloh1:
	ldr	x9, [x9, _cur_snaplen@GOTPAGEOFF]
Lloh2:
	ldr	x3, [x9]
	cmn	w8, #25
	ccmp	x3, x8, #0, ls
	b.hs	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _LOG_NOTICE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LOG_NOTICE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _snaplen@GOTPAGE
Lloh7:
	ldr	x8, [x8, _snaplen@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_logmsg
	b	LBB0_5
LBB0_2:
	mov	x20, x2
	mov	x21, x1
Lloh11:
	adrp	x23, _bufleft@GOTPAGE
Lloh12:
	ldr	x23, [x23, _bufleft@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x19, x8
	b.ls	LBB0_8
; %bb.3:
Lloh13:
	adrp	x8, _suspended@GOTPAGE
Lloh14:
	ldr	x8, [x8, _suspended@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cbnz	x8, LBB0_5
; %bb.4:
	mov	x22, x0
	bl	_flush_buffer
	cbz	x0, LBB0_6
LBB0_5:
Lloh16:
	adrp	x8, _packets_dropped@GOTPAGE
Lloh17:
	ldr	x8, [x8, _packets_dropped@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
	ldr	x8, [x23]
	cmp	x19, x8
	b.ls	LBB0_8
; %bb.7:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	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
	b	_dump_packet_nobuf
LBB0_8:
Lloh18:
	adrp	x22, _bufpos@GOTPAGE
Lloh19:
	ldr	x22, [x22, _bufpos@GOTPAGEOFF]
	ldr	x0, [x22]
	mov	x1, x21
	mov	w2, #24
	bl	_memcpy
	ldr	x8, [x22]
	add	x0, x8, #24
	ldr	w2, [x21]
	mov	x1, x20
	bl	_memcpy
	ldr	x8, [x22]
	add	x8, x8, x19
	str	x8, [x22]
	ldr	x8, [x23]
	sub	x8, x8, x19
	str	x8, [x23]
Lloh20:
	adrp	x8, _bufpkt@GOTPAGE
Lloh21:
	ldr	x8, [x8, _bufpkt@GOTPAGEOFF]
LBB0_9:
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_cur_snaplen,8,3                ; @cur_snaplen
	.comm	_LOG_NOTICE,4,2                 ; @LOG_NOTICE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid size %u (%u/%u), packet dropped"

	.comm	_snaplen,4,2                    ; @snaplen
	.comm	_packets_dropped,4,2            ; @packets_dropped
	.comm	_bufleft,8,3                    ; @bufleft
	.comm	_suspended,8,3                  ; @suspended
	.comm	_bufpos,8,3                     ; @bufpos
	.comm	_bufpkt,4,2                     ; @bufpkt
.subsections_via_symbols
