	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sendpkt                        ## -- Begin function sendpkt
	.p2align	4, 0x90
_sendpkt:                               ## @sendpkt
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r15d
	movq	%rcx, %r14
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	$0, -112(%rbp)
	callq	_IS_MCAST
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movq	%rbx, %rdi
	callq	_IS_IPV4
	testq	%rax, %rax
	jne	LBB0_2
## %bb.3:
	movq	_mc6_list@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_mc4_list@GOTPCREL(%rip), %rax
LBB0_4:
	movq	(%rax), %r12
LBB0_5:
	testq	%r12, %r12
	je	LBB0_15
## %bb.6:
	movslq	%r15d, %r15
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_stoa
	leaq	4(%r12), %rdi
	callq	_stoa
	movl	$2, %edi
	movq	%r15, %rsi
	callq	_DPRINTF
	movl	24(%r12), %r13d
	movq	%rbx, %rdi
	callq	_SOCKLEN
	movl	%r13d, %edi
	movq	%r14, %rsi
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	movq	%rbx, %r8
	movl	%eax, %r9d
	callq	_sendto
	cmpl	$-1, %eax
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	incl	16(%r12)
	movq	_packets_sent@GOTPCREL(%rip), %rax
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_7 Depth=1
	incl	20(%r12)
	movq	_packets_notsent@GOTPCREL(%rip), %rax
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	incl	(%rax)
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%r12), %r12
	testq	%r12, %r12
	jne	LBB0_7
## %bb.13:
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_15:
	movq	%rbx, %rdi
	callq	_stoa
	movslq	%r15d, %rsi
	movl	$2, %edi
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DPRINTF                        ## TAILCALL
LBB0_11:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
LBB0_14:
	addq	$4, %rax
	xorl	%ecx, %ecx
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	cmoveq	%rax, %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	leaq	40(%r14), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	leaq	36(%r14), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	leaq	32(%r14), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	28(%r14), %edi
	callq	_PKT_MODE
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	28(%r14), %edi
	callq	_PKT_VERSION
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	28(%r14), %edi
	callq	_PKT_LEAP
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	24(%r14), %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	20(%r14), %r11d
	movl	16(%r14), %r12d
	movl	12(%r14), %r13d
	movl	4(%r14), %r10d
	movl	8(%r14), %eax
	movq	_MIN_V4_PKT_LEN@GOTPCREL(%rip), %rcx
	subq	(%rcx), %r15
	subq	$8, %rsp
	leaq	-112(%rbp), %r9
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	-88(%rbp), %r8                  ## 8-byte Reload
	pushq	%r14
	pushq	%r15
	pushq	%r10
	pushq	%rax
	pushq	%r13
	pushq	%r12
	pushq	%r11
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	pushq	-48(%rbp)                       ## 8-byte Folded Reload
	callq	_record_raw_stats
	addq	$168, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mc4_list,8,3                   ## @mc4_list
	.comm	_mc6_list,8,3                   ## @mc6_list
	.comm	_packets_notsent,4,2            ## @packets_notsent
	.comm	_packets_sent,4,2               ## @packets_sent
	.comm	_MIN_V4_PKT_LEN,8,3             ## @MIN_V4_PKT_LEN
	.comm	_IPPROTO_IP,4,2                 ## @IPPROTO_IP
	.comm	_IPPROTO_IPV6,4,2               ## @IPPROTO_IPV6
	.comm	_IPV6_MULTICAST_HOPS,4,2        ## @IPV6_MULTICAST_HOPS
	.comm	_IP_MULTICAST_TTL,4,2           ## @IP_MULTICAST_TTL
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sendpkt                        ; -- Begin function sendpkt
	.p2align	2
_sendpkt:                               ; @sendpkt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x4
	mov	x20, x3
	mov	x24, x1
	mov	x19, x0
	str	xzr, [sp, #56]
	bl	_IS_MCAST
	mov	x23, x0
	cbz	w0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_IS_IPV4
Lloh0:
	adrp	x8, _mc4_list@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mc4_list@GOTPAGEOFF]
Lloh2:
	adrp	x9, _mc6_list@GOTPAGE
Lloh3:
	ldr	x9, [x9, _mc6_list@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	x24, [x8]
LBB0_2:
	cbz	x24, LBB0_11
; %bb.3:
	sxtw	x21, w22
Lloh4:
	adrp	x26, _packets_notsent@GOTPAGE
Lloh5:
	ldr	x26, [x26, _packets_notsent@GOTPAGEOFF]
Lloh6:
	adrp	x27, _packets_sent@GOTPAGE
Lloh7:
	ldr	x27, [x27, _packets_sent@GOTPAGEOFF]
	mov	x28, x24
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_stoa
	add	x0, x28, #4
	bl	_stoa
	mov	w0, #2
	mov	x1, x21
	bl	_DPRINTF
	ldr	w25, [x28, #24]
	mov	x0, x19
	bl	_SOCKLEN
	mov	x5, x0
	mov	x0, x25
	mov	x1, x20
	mov	x2, x22
	mov	w3, #0
	mov	x4, x19
	bl	_sendto
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x28, #16]
	add	w8, w8, #1
	str	w8, [x28, #16]
	mov	x8, x27
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x28, #20]
	add	w8, w8, #1
	str	w8, [x28, #20]
	mov	x8, x26
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	cbz	w23, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x28, [x28, #8]
	cbnz	x28, LBB0_4
; %bb.9:
	mov	x24, #0
LBB0_10:
	add	x8, x24, #4
	cmp	w23, #0
	csel	x22, x8, xzr, eq
	add	x23, x20, #40
	add	x24, x20, #36
	add	x25, x20, #32
	ldr	w0, [x20, #28]
	bl	_PKT_MODE
	mov	x26, x0
	ldr	w0, [x20, #28]
	bl	_PKT_VERSION
	mov	x27, x0
	ldr	w0, [x20, #28]
	bl	_PKT_LEAP
	ldp	w9, w8, [x20, #20]
	ldp	w11, w10, [x20, #12]
	ldp	w13, w12, [x20, #4]
Lloh8:
	adrp	x14, _MIN_V4_PKT_LEN@GOTPAGE
Lloh9:
	ldr	x14, [x14, _MIN_V4_PKT_LEN@GOTPAGEOFF]
Lloh10:
	ldr	x14, [x14]
	sub	x14, x21, x14
	stp	x14, x20, [sp, #32]
	stp	w12, w13, [sp, #20]
	stp	w10, w11, [sp, #12]
	add	x5, sp, #56
	stp	w8, w9, [sp, #4]
	str	w0, [sp]
	mov	x0, x22
	mov	x1, x19
	mov	x2, x23
	mov	x3, x24
	mov	x4, x25
	mov	x6, x26
	mov	x7, x27
	bl	_record_raw_stats
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_11:
	mov	x0, x19
	bl	_stoa
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	sxtw	x1, w22
	mov	w0, #2
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	b	_DPRINTF
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_mc4_list,8,3                   ; @mc4_list
	.comm	_mc6_list,8,3                   ; @mc6_list
	.comm	_packets_notsent,4,2            ; @packets_notsent
	.comm	_packets_sent,4,2               ; @packets_sent
	.comm	_MIN_V4_PKT_LEN,8,3             ; @MIN_V4_PKT_LEN
	.comm	_IPPROTO_IP,4,2                 ; @IPPROTO_IP
	.comm	_IPPROTO_IPV6,4,2               ; @IPPROTO_IPV6
	.comm	_IPV6_MULTICAST_HOPS,4,2        ; @IPV6_MULTICAST_HOPS
	.comm	_IP_MULTICAST_TTL,4,2           ; @IP_MULTICAST_TTL
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
.subsections_via_symbols
