	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_send_frame                     ## -- Begin function send_frame
	.p2align	4, 0x90
_send_frame:                            ## @send_frame
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	cmpl	$-1, %edx
	je	LBB0_1
## %bb.4:
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	_txstate@GOTPCREL(%rip), %r12
	xorl	%edi, %edi
	cmpl	$0, 4(%r12)
	sete	%dil
	callq	_assert
	movq	_send_frame.lame(%rip), %rdi
	cmpl	%ebx, _send_frame.lamelen(%rip)
	jge	LBB0_10
## %bb.5:
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	callq	_free
LBB0_7:
	movl	%ebx, %edi
	callq	_malloc
	movq	%rax, _send_frame.lame(%rip)
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rax, %rdi
	movl	%ebx, _send_frame.lamelen(%rip)
LBB0_10:
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_memcpy
	movl	$0, (%r12)
	movl	%ebx, _send_frame.lastlen(%rip)
	jmp	LBB0_11
LBB0_1:
	movq	_txstate@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leal	1(%rcx), %edx
	movl	%edx, (%rax)
	cmpl	$10, %ecx
	jl	LBB0_3
## %bb.2:
	movl	_send_frame.lastlen(%rip), %esi
	leaq	L_.str(%rip), %rdi
	callq	_time_print
	movq	_send_frame.lame(%rip), %rdi
	movl	_send_frame.lastlen(%rip), %esi
	callq	_hexdump
LBB0_3:
	movl	_send_frame.lastlen(%rip), %ebx
LBB0_11:
	movq	_send_frame.lame(%rip), %rsi
	movl	%r14d, %edi
	movl	%ebx, %edx
	callq	_inject
	movq	_txstate@GOTPCREL(%rip), %rdi
	movl	$1, 4(%rdi)
	incl	16(%rdi)
	addq	$8, %rdi
	xorl	%esi, %esi
	callq	_gettimeofday
	cmpl	$-1, %eax
	je	LBB0_12
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	_send_frame.cold.1
	jmp	LBB0_13
LBB0_8:
	callq	_send_frame.cold.2
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function send_frame.cold.1
_send_frame.cold.1:                     ## @send_frame.cold.1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	leaq	L_.str.2(%rip), %rdi
	callq	_perror
	pushq	$1
	popq	%rdi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function send_frame.cold.2
_send_frame.cold.2:                     ## @send_frame.cold.2
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	leaq	L_.str.1(%rip), %rdi
	callq	_perror
	pushq	$1
	popq	%rdi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_send_frame.lame,8,3 ## @send_frame.lame
.zerofill __DATA,__bss,_send_frame.lamelen,4,2 ## @send_frame.lamelen
.zerofill __DATA,__bss,_send_frame.lastlen,4,2 ## @send_frame.lastlen
	.comm	_txstate,20,2                   ## @txstate
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ERROR Max retransmists for (%d bytes):\n"

L_.str.1:                               ## @.str.1
	.asciz	"malloc()"

L_.str.2:                               ## @.str.2
	.asciz	"gettimeofday()"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_send_frame                     ; -- Begin function send_frame
	.p2align	2
_send_frame:                            ; @send_frame
	.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	x19, x0
	adrp	x23, _send_frame.lame@PAGE
Lloh0:
	adrp	x22, _txstate@GOTPAGE
Lloh1:
	ldr	x22, [x22, _txstate@GOTPAGEOFF]
	cmn	w2, #1
	b.eq	LBB0_7
; %bb.1:
	mov	x20, x2
	mov	x21, x1
	ldr	w8, [x22, #4]
	cmp	w8, #0
	cset	w0, eq
	bl	_assert
	adrp	x24, _send_frame.lamelen@PAGE
	ldr	w8, [x24, _send_frame.lamelen@PAGEOFF]
	ldr	x0, [x23, _send_frame.lame@PAGEOFF]
	cmp	w8, w20
	b.ge	LBB0_6
; %bb.2:
	cbz	x0, LBB0_4
; %bb.3:
	bl	_free
LBB0_4:
	mov	x0, x20
	bl	_malloc
	str	x0, [x23, _send_frame.lame@PAGEOFF]
	cbz	x0, LBB0_13
; %bb.5:
	str	w20, [x24, _send_frame.lamelen@PAGEOFF]
LBB0_6:
	mov	x1, x21
	mov	x2, x20
	bl	_memcpy
	str	wzr, [x22]
	adrp	x8, _send_frame.lastlen@PAGE
	str	w20, [x8, _send_frame.lastlen@PAGEOFF]
	b	LBB0_10
LBB0_7:
	ldr	w8, [x22]
	add	w9, w8, #1
	str	w9, [x22]
	cmp	w8, #10
	b.lt	LBB0_9
; %bb.8:
	adrp	x20, _send_frame.lastlen@PAGE
	ldr	w1, [x20, _send_frame.lastlen@PAGEOFF]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_time_print
	ldr	x0, [x23, _send_frame.lame@PAGEOFF]
	ldr	w1, [x20, _send_frame.lastlen@PAGEOFF]
	bl	_hexdump
LBB0_9:
Lloh4:
	adrp	x8, _send_frame.lastlen@PAGE
Lloh5:
	ldr	w20, [x8, _send_frame.lastlen@PAGEOFF]
LBB0_10:
	ldr	x1, [x23, _send_frame.lame@PAGEOFF]
	mov	x0, x19
	mov	x2, x20
	bl	_inject
	mov	w8, #1
	str	w8, [x22, #4]
	ldr	w8, [x22, #16]
	add	w8, w8, #1
	str	w8, [x22, #16]
	add	x0, x22, #8
	mov	x1, #0
	bl	_gettimeofday
	cmn	w0, #1
	b.eq	LBB0_12
; %bb.11:
	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
LBB0_12:
	bl	_send_frame.cold.1
LBB0_13:
	bl	_send_frame.cold.2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdr	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function send_frame.cold.1
_send_frame.cold.1:                     ; @send_frame.cold.1
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_perror
	mov	w0, #1
	bl	_exit
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function send_frame.cold.2
_send_frame.cold.2:                     ; @send_frame.cold.2
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_perror
	mov	w0, #1
	bl	_exit
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_send_frame.lame,8,3 ; @send_frame.lame
.zerofill __DATA,__bss,_send_frame.lamelen,4,2 ; @send_frame.lamelen
.zerofill __DATA,__bss,_send_frame.lastlen,4,2 ; @send_frame.lastlen
	.comm	_txstate,20,2                   ; @txstate
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ERROR Max retransmists for (%d bytes):\n"

l_.str.1:                               ; @.str.1
	.asciz	"malloc()"

l_.str.2:                               ; @.str.2
	.asciz	"gettimeofday()"

.subsections_via_symbols
