	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brain_send_all                 ## -- Begin function brain_send_all
	.p2align	4, 0x90
_brain_send_all:                        ## @brain_send_all
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movq	%r8, %rbx
	movl	%ecx, %r13d
	movq	%rdx, %r12
	movl	%edi, %eax
	testq	%r8, %r8
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	je	LBB0_1
## %bb.2:
	movl	$1, (%rbx)
	movq	8(%rbx), %rdi
	shlq	$2, %rdi
	addq	24(%rbx), %rdi
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movl	%eax, %r14d
	movq	%rsi, %r15
	callq	_hc_timer_set
	movl	%r14d, %edi
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	%r12, %rdx
	movl	%r13d, %ecx
	callq	_send
	movq	%rax, %r13
	movq	8(%rbx), %rax
	movq	16(%rbx), %rcx
	movq	%r13, (%rcx,%rax,8)
	movq	8(%rbx), %rax
	leaq	1(%rax), %rcx
	movq	_LINK_SPEED_COUNT@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	xorl	%esi, %esi
	cmpq	%rdx, %rax
	cmovneq	%rcx, %rsi
	movq	%rsi, 8(%rbx)
	addl	%r13d, 4(%rbx)
	jmp	LBB0_3
LBB0_1:
	movl	%eax, %edi
	movq	%r12, %rdx
	movl	%r13d, %ecx
	callq	_send
	movq	%rax, %r13
LBB0_3:
	xorl	%eax, %eax
	testq	%r13, %r13
	jle	LBB0_17
## %bb.4:
	testq	%r14, %r14
	je	LBB0_6
## %bb.5:
	cmpl	$0, (%r14)
	je	LBB0_17
LBB0_6:
	cmpq	%r12, %r13
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	jl	LBB0_7
LBB0_15:
	movl	$1, %eax
	testq	%rbx, %rbx
	je	LBB0_17
## %bb.16:
	movl	$0, (%rbx)
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=1
	addq	%rax, %r13
	cmpq	%r12, %r13
	jge	LBB0_15
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%rbx), %rdi
	shlq	$2, %rdi
	addq	24(%rbx), %rdi
	callq	_hc_timer_set
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r13), %rsi
	movq	%r12, %rdx
	subq	%r13, %rdx
	movl	%r15d, %edi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_send
	movq	8(%rbx), %rcx
	movq	16(%rbx), %rdx
	movq	%rax, (%rdx,%rcx,8)
	movq	8(%rbx), %rcx
	leaq	1(%rcx), %rdx
	movq	_LINK_SPEED_COUNT@GOTPCREL(%rip), %rsi
	movslq	(%rsi), %rsi
	cmpq	%rsi, %rcx
	movl	$0, %ecx
	cmoveq	%rcx, %rdx
	movq	%rdx, 8(%rbx)
	addl	%eax, 4(%rbx)
	testq	%rax, %rax
	jg	LBB0_12
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r13), %rsi
	movq	%r12, %rdx
	subq	%r13, %rdx
	movl	%r15d, %edi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_send
	testq	%rax, %rax
	jle	LBB0_11
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	testq	%r14, %r14
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$0, (%r14)
	jne	LBB0_14
	jmp	LBB0_15
LBB0_11:
	xorl	%eax, %eax
LBB0_17:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LINK_SPEED_COUNT,4,2           ## @LINK_SPEED_COUNT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brain_send_all                 ; -- Begin function brain_send_all
	.p2align	2
_brain_send_all:                        ; @brain_send_all
	.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	x20, x5
	mov	x19, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
	cbz	x4, LBB0_2
; %bb.1:
	mov	w8, #1
	str	w8, [x19]
	ldr	x8, [x19, #24]
	ldr	x9, [x19, #8]
	add	x0, x8, x9, lsl #2
	bl	_hc_timer_set
	mov	x0, x24
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	bl	_send
	mov	x25, x0
	ldp	x9, x8, [x19, #8]
	str	x0, [x8, x9, lsl #3]
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _LINK_SPEED_COUNT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LINK_SPEED_COUNT@GOTPAGEOFF]
Lloh2:
	ldrsw	x9, [x9]
	cmp	x8, x9
	csinc	x8, xzr, x8, eq
	str	x8, [x19, #8]
	ldr	w8, [x19, #4]
	add	w8, w8, w25
	str	w8, [x19, #4]
	cmp	x25, #1
	b.ge	LBB0_3
	b	LBB0_16
LBB0_2:
	mov	x0, x24
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	bl	_send
	mov	x25, x0
	cmp	x25, #1
	b.lt	LBB0_16
LBB0_3:
	cbz	x20, LBB0_5
; %bb.4:
	ldr	w8, [x20]
	cbz	w8, LBB0_16
LBB0_5:
	cmp	x25, x22
	b.ge	LBB0_13
; %bb.6:
Lloh3:
	adrp	x26, _LINK_SPEED_COUNT@GOTPAGE
Lloh4:
	ldr	x26, [x26, _LINK_SPEED_COUNT@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x25, x0, x25
	cmp	x25, x22
	b.ge	LBB0_13
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x19, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x19, #24]
	ldr	x9, [x19, #8]
	add	x0, x8, x9, lsl #2
	bl	_hc_timer_set
	add	x1, x23, x25
	sub	x2, x22, x25
	mov	x0, x24
	mov	x3, x21
	bl	_send
	ldp	x9, x8, [x19, #8]
	str	x0, [x8, x9, lsl #3]
	ldr	x8, [x19, #8]
	ldrsw	x9, [x26]
	cmp	x8, x9
	csinc	x8, xzr, x8, eq
	str	x8, [x19, #8]
	ldr	w8, [x19, #4]
	add	w8, w8, w0
	str	w8, [x19, #4]
	cmp	x0, #1
	b.ge	LBB0_11
	b	LBB0_16
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x1, x23, x25
	sub	x2, x22, x25
	mov	x0, x24
	mov	x3, x21
	bl	_send
	cmp	x0, #1
	b.lt	LBB0_16
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	cbz	x20, LBB0_7
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x20]
	cbnz	w8, LBB0_7
LBB0_13:
	cbz	x19, LBB0_15
; %bb.14:
	str	wzr, [x19]
LBB0_15:
	mov	w0, #1
	b	LBB0_17
LBB0_16:
	mov	w0, #0
LBB0_17:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_LINK_SPEED_COUNT,4,2           ; @LINK_SPEED_COUNT
.subsections_via_symbols
