	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function send_pkt
_send_pkt:                              ## @send_pkt
	.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
	movq	%rcx, %r14
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %r13
	callq	_get_clock_type
	movq	24(%r13), %rcx
	movslq	%r12d, %rbx
	movslq	%r15d, %r15
	leaq	(,%r15,4), %rsi
	addq	(%rcx,%rbx,8), %rsi
	shlq	$3, %rbx
	movl	%eax, %edi
	callq	_clock_gettime
	movq	8(%r13), %rax
	movl	(%rax,%r15,4), %edi
	addq	24(%r13), %rbx
	movl	$8, %edx
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	callq	_send
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	cmpq	$7, %rax
	jbe	LBB0_3
	jmp	LBB0_4
LBB0_1:
	movl	16(%r13), %edx
	movq	8(%r13), %rax
	movl	(%rax,%r15,4), %r8d
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movq	%r14, %rcx
	callq	_err
LBB0_3:
	movl	16(%r13), %edx
	movq	8(%r13), %rax
	movl	(%rax,%r15,4), %r8d
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	movq	%r14, %rcx
	callq	_errx
LBB0_4:
	incl	(%r13)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: %s: send(%d)"

L_.str.1:                               ## @.str.1
	.asciz	"%s: %s: send(%d): short send"

	.no_dead_strip	_send_pkt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function send_pkt
_send_pkt:                              ; @send_pkt
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	bl	_get_clock_type
	ldr	x8, [x19, #24]
	sbfiz	x23, x22, #3, #32
	ldr	x8, [x8, x23]
	sxtw	x22, w21
	sbfiz	x21, x21, #2, #32
	add	x1, x8, x21
	bl	_clock_gettime
	ldr	x8, [x19, #8]
	ldr	w0, [x8, x21]
	ldr	x8, [x19, #24]
	add	x1, x8, x23
	mov	w2, #8
	mov	w3, #0
	bl	_send
	tbnz	x0, #63, LBB0_2
; %bb.1:
	cmp	x0, #7
	b.ls	LBB0_3
	b	LBB0_4
LBB0_2:
	ldr	w2, [x19, #16]
	ldr	x8, [x19, #8]
	ldr	w4, [x8, x22, lsl #2]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	mov	x3, x20
	bl	_err
LBB0_3:
	ldr	w2, [x19, #16]
	ldr	x8, [x19, #8]
	ldr	w4, [x8, x22, lsl #2]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	x3, x20
	bl	_errx
LBB0_4:
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: %s: send(%d)"

l_.str.1:                               ; @.str.1
	.asciz	"%s: %s: send(%d): short send"

	.no_dead_strip	_send_pkt
.subsections_via_symbols
