	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _packetout
__packetout:                            ## @_packetout
	.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	%rbx
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %r9d
	xorl	%eax, %eax
	cmpl	%r9d, 4(%rdi)
	jle	LBB0_12
## %bb.1:
	movslq	%r9d, %rcx
	movq	8(%rdi), %rbx
	movl	(%rbx,%rcx,4), %r8d
	movl	$-1, %eax
	testl	$1024, %r8d                     ## imm = 0x400
	jne	LBB0_11
## %bb.2:
	movl	$1, %eax
	testq	%rsi, %rsi
	jne	LBB0_4
## %bb.3:
	testl	%edx, %edx
	je	LBB0_12
LBB0_4:
	movzbl	%r8b, %r10d
	movl	%r8d, %r11d
	andl	$512, %r11d                     ## imm = 0x200
	cmpl	$255, %r10d
	jne	LBB0_7
## %bb.5:
	leaq	(%rbx,%rcx,4), %rcx
	addq	$4, %rcx
	movl	$255, %r10d
	movl	$512, %r14d                     ## imm = 0x200
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rcx), %ebx
	movzbl	%bl, %r15d
	testl	$512, %ebx                      ## imm = 0x200
	cmovnel	%r14d, %r11d
	addq	%r15, %r10
	incl	%r9d
	addq	$4, %rcx
	cmpl	$255, %r15d
	je	LBB0_6
LBB0_7:
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.8:
	andl	$256, %r8d                      ## imm = 0x100
	movl	%r11d, (%rsi)
	movl	%r8d, 4(%rsi)
	movq	24(%rdi), %rcx
	addq	40(%rdi), %rcx
	movq	%rcx, 32(%rsi)
	movq	16(%rdi), %rcx
	movq	%rcx, 24(%rsi)
	movq	32(%rdi), %rcx
	movslq	%r9d, %rbx
	movl	(%rcx,%rbx,4), %ecx
	movl	%ecx, 16(%rsi)
	movq	%r10, 8(%rsi)
LBB0_9:
	testl	%edx, %edx
	je	LBB0_12
## %bb.10:
	addq	%r10, 24(%rdi)
	movl	$1, %eax
LBB0_11:
	incl	%r9d
	movl	%r9d, (%rdi)
	incq	16(%rdi)
LBB0_12:
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	__packetout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _packetout
__packetout:                            ; @_packetout
	.cfi_startproc
; %bb.0:
	ldp	w9, w8, [x0]
	cmp	w8, w9
	b.le	LBB0_11
; %bb.1:
	sxtw	x12, w9
	ldr	x13, [x0, #8]
	ldr	w10, [x13, x12, lsl #2]
	tbnz	w10, #10, LBB0_12
; %bb.2:
	cbnz	x1, LBB0_4
; %bb.3:
	cbz	w2, LBB0_14
LBB0_4:
	and	x8, x10, #0xff
	and	w11, w10, #0x200
	cmp	w8, #255
	b.ne	LBB0_7
; %bb.5:
	add	x8, x13, x12, lsl #2
	add	x12, x8, #4
	mov	w8, #255
	mov	w13, #512
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w14, [x12], #4
	and	x15, x14, #0xff
	tst	w14, #0x200
	csel	w11, w11, w13, eq
	add	x8, x8, x15
	add	w9, w9, #1
	cmp	w15, #255
	b.eq	LBB0_6
LBB0_7:
	cbz	x1, LBB0_9
; %bb.8:
	and	w10, w10, #0x100
	stp	w11, w10, [x1]
	ldp	x11, x10, [x0, #16]
	ldp	x13, x12, [x0, #32]
	add	x10, x10, x12
	stp	x11, x10, [x1, #24]
	ldr	w10, [x13, w9, sxtw #2]
	str	w10, [x1, #16]
	str	x8, [x1, #8]
LBB0_9:
	cbz	w2, LBB0_14
; %bb.10:
	ldr	x10, [x0, #24]
	add	x8, x10, x8
	str	x8, [x0, #24]
	mov	w8, #1
	b	LBB0_13
LBB0_11:
	mov	w0, #0
	ret
LBB0_12:
	mov	w8, #-1
LBB0_13:
	add	w9, w9, #1
	str	w9, [x0]
	ldr	x9, [x0, #16]
	add	x9, x9, #1
	str	x9, [x0, #16]
	mov	x0, x8
	ret
LBB0_14:
	mov	w0, #1
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	__packetout
.subsections_via_symbols
