	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_send_packet
_do_send_packet:                        ## @do_send_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
	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
	movl	(%rsi), %eax
	movq	8(%rsi), %rcx
	xorl	%r12d, %r12d
	movl	$0, %esi
	movl	$0, %ebx
	testq	%rcx, %rcx
	jne	LBB0_2
## %bb.1:
	movq	_NL_FIRST_PACKET@GOTPCREL(%rip), %rdx
	movzbl	%al, %esi
	movl	(%rdx), %ebx
LBB0_2:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	%eax, %r13d
	andl	$65280, %r13d                   ## imm = 0xFF00
	testq	%rcx, %rcx
	movq	_NL_FOLLOWING_PACKET_HEADER_SIZE@GOTPCREL(%rip), %rcx
	cmoveq	_NL_FIRST_PACKET_HEADER_SIZE@GOTPCREL(%rip), %rcx
	movzwl	4(%r15), %edx
	cmovneq	%r12, %r13
	subl	%edx, %eax
	movzwl	(%rcx), %ecx
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %r14d
	subl	%ecx, %r14d
	cmpw	%r14w, %ax
	cmovbl	%eax, %r14d
	movq	%rbx, %rax
	shlq	$32, %rax
	leaq	(%rsi,%r13), %rdi
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	addq	%rcx, %rdi
	orq	%rax, %rdi
	leaq	(%r15,%rdx), %rsi
	addq	$48, %rsi
	movzwl	%r14w, %ebx
	movl	%ebx, %edx
	callq	_memcpy
	addw	4(%r15), %bx
	movw	%bx, 4(%r15)
	incq	8(%r15)
	movzwl	%bx, %eax
	cmpl	%eax, (%r15)
	jne	LBB0_4
## %bb.3:
	movq	_NL_LAST_PACKET@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_4:
	orl	-48(%rbp), %r12d                ## 4-byte Folded Reload
	shlq	$32, %r12
	orq	%r13, %r12
	addq	-56(%rbp), %r12                 ## 8-byte Folded Reload
	addl	-64(%rbp), %r14d                ## 4-byte Folded Reload
	movzwl	%r14w, %edx
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_do_send_fragment
	movzwl	4(%r15), %eax
	movl	(%r15), %esi
	cmpl	%eax, %esi
	jle	LBB0_5
## %bb.8:
	leaq	4(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	addq	$32, %r15
	movq	16(%rbx), %rsi
	movq	%r15, %rdi
	callq	_list_add
	incl	8(%rbx)
	movq	%r14, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
LBB0_5:
	movq	24(%r15), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	16(%r15), %edi
	callq	*%rax
LBB0_7:
	movq	%r15, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NL_FIRST_PACKET_HEADER_SIZE,2,1 ## @NL_FIRST_PACKET_HEADER_SIZE
	.comm	_NL_FOLLOWING_PACKET_HEADER_SIZE,2,1 ## @NL_FOLLOWING_PACKET_HEADER_SIZE
	.comm	_NL_FIRST_PACKET,4,2            ## @NL_FIRST_PACKET
	.comm	_NL_LAST_PACKET,4,2             ## @NL_LAST_PACKET
	.no_dead_strip	_do_send_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_send_packet
_do_send_packet:                        ; @do_send_packet
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x1]
	ldrh	w9, [x1, #4]
	sub	w10, w8, w9
	and	w10, w10, #0xffff
Lloh0:
	adrp	x11, _NL_FIRST_PACKET_HEADER_SIZE@GOTPAGE
Lloh1:
	ldr	x11, [x11, _NL_FIRST_PACKET_HEADER_SIZE@GOTPAGEOFF]
	ldr	x12, [x1, #8]
Lloh2:
	adrp	x13, _NL_FOLLOWING_PACKET_HEADER_SIZE@GOTPAGE
Lloh3:
	ldr	x13, [x13, _NL_FOLLOWING_PACKET_HEADER_SIZE@GOTPAGEOFF]
	cmp	x12, #0
	csel	x11, x11, x13, eq
	ldrh	w22, [x11]
	ldrh	w11, [x0]
Lloh4:
	adrp	x12, _NL_FIRST_PACKET@GOTPAGE
Lloh5:
	ldr	x12, [x12, _NL_FIRST_PACKET@GOTPAGEOFF]
Lloh6:
	ldr	w12, [x12]
	and	x13, x8, #0xff00
	and	x8, x8, #0xff
	csel	x23, x13, xzr, eq
	csel	x24, x8, xzr, eq
	csel	w25, w12, wzr, eq
	sub	w8, w11, w22
	and	w8, w8, #0xffff
	cmp	w10, w8
	csel	w21, w10, w8, lo
	orr	x8, x24, x23
	add	x0, x8, x22
	bfi	x0, x25, #32, #32
	add	x8, x1, x9
	add	x1, x8, #48
	mov	x2, x21
	bl	_memcpy
	ldrh	w8, [x19, #4]
	add	w8, w8, w21
	strh	w8, [x19, #4]
	ldr	x9, [x19, #8]
	add	x9, x9, #1
	str	x9, [x19, #8]
	ldr	w9, [x19]
Lloh7:
	adrp	x10, _NL_LAST_PACKET@GOTPAGE
Lloh8:
	ldr	x10, [x10, _NL_LAST_PACKET@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x10]
	cmp	w9, w8, uxth
	csel	w8, w10, wzr, eq
	orr	w8, w8, w25
	bfi	x23, x8, #32, #32
	orr	x1, x23, x24
	add	w8, w21, w22
	and	w2, w8, #0xffff
	mov	x0, x20
	bl	_do_send_fragment
	ldrh	w8, [x19, #4]
	ldr	w1, [x19]
	cmp	w1, w8
	b.le	LBB0_2
; %bb.1:
	add	x21, x20, #4
	mov	x0, x21
	bl	_spin_lock_irqsave
	add	x0, x19, #32
	ldr	x1, [x20, #16]
	bl	_list_add
	ldr	w8, [x20, #8]
	add	w8, w8, #1
	str	w8, [x20, #8]
	mov	x0, x21
	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
	b	_spin_unlock_irqrestore
LBB0_2:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w0, [x19, #16]
	blr	x8
LBB0_4:
	mov	x0, x19
	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
	b	_kfree
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_NL_FIRST_PACKET_HEADER_SIZE,2,1 ; @NL_FIRST_PACKET_HEADER_SIZE
	.comm	_NL_FOLLOWING_PACKET_HEADER_SIZE,2,1 ; @NL_FOLLOWING_PACKET_HEADER_SIZE
	.comm	_NL_FIRST_PACKET,4,2            ; @NL_FIRST_PACKET
	.comm	_NL_LAST_PACKET,4,2             ; @NL_LAST_PACKET
	.no_dead_strip	_do_send_packet
.subsections_via_symbols
