	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kttcp_send
_kttcp_send:                            ## @kttcp_send
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	leaq	-152(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$40, %esi
	callq	_bzero
	leaq	-112(%rbp), %rdi
	movl	$40, %esi
	callq	_bzero
	movq	%rbx, -80(%rbp)
	movq	_UIO_NOCOPY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -88(%rbp)
	movl	20(%r14), %esi
	leaq	-64(%rbp), %rdx
	movq	%r15, %rdi
	callq	_fget
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_1
LBB0_11:
	movl	%r12d, %eax
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	-64(%rbp), %rdi
	movq	_FWRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_2
## %bb.3:
	movq	8(%rdi), %rax
	movq	_DTYPE_SOCKET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.4:
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	(%r14), %rbx
	leaq	-56(%rbp), %rdi
	callq	_microtime
	movq	_nbyte@GOTPCREL(%rip), %r14
	leaq	-112(%rbp), %r13
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rsi
	movq	%rbx, %rdi
	callq	_MIN
	movq	%rax, (%r14)
	movq	%rax, -136(%rbp)
	movq	%rax, -104(%rbp)
	movq	$0, -112(%rbp)
	movq	-64(%rbp), %rax
	movq	16(%rax), %rdi
	movq	%r15, (%rsp)
	xorl	%esi, %esi
	movq	%r13, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_sosend
	movl	%eax, %r12d
	subq	-112(%rbp), %rbx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	testq	%rbx, %rbx
	jne	LBB0_5
LBB0_7:
	leaq	-48(%rbp), %rdi
	callq	_microtime
	movq	-64(%rbp), %rdi
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_9
LBB0_2:
	movq	%r15, %rsi
	callq	_fdrop
	movq	_EBADF@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_11
LBB0_8:
	movq	_EFTYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	xorl	%ebx, %ebx
LBB0_9:
	movq	%r15, %rsi
	callq	_fdrop
	testl	%r12d, %r12d
	jne	LBB0_11
## %bb.10:
	leaq	16(%r14), %rdx
	leaq	-48(%rbp), %rdi
	leaq	-56(%rbp), %rsi
	callq	_timersub
	movq	(%r14), %rax
	subq	%rbx, %rax
	movq	%rax, 8(%r14)
	xorl	%r12d, %r12d
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_UIO_NOCOPY,4,2                 ## @UIO_NOCOPY
	.comm	_FWRITE,4,2                     ## @FWRITE
	.comm	_EBADF,4,2                      ## @EBADF
	.comm	_DTYPE_SOCKET,8,3               ## @DTYPE_SOCKET
	.comm	_nbyte,8,3                      ## @nbyte
	.comm	_EFTYPE,4,2                     ## @EFTYPE
	.no_dead_strip	_kttcp_send
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kttcp_send
_kttcp_send:                            ; @kttcp_send
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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, x1
	mov	x20, x0
	add	x21, sp, #8
	add	x0, sp, #8
	mov	w1, #40
	bl	_bzero
	add	x0, sp, #48
	mov	w1, #40
	bl	_bzero
	str	x21, [sp, #80]
Lloh0:
	adrp	x8, _UIO_NOCOPY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UIO_NOCOPY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #72]
	ldr	w1, [x19, #20]
	sub	x2, x29, #56
	mov	x0, x20
	bl	_fget
	mov	x22, x0
	cbz	w0, LBB0_2
LBB0_1:
	mov	x0, x22
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_2:
	ldur	x0, [x29, #-56]
	ldr	w8, [x0]
Lloh3:
	adrp	x9, _FWRITE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FWRITE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.3:
	ldr	x8, [x0, #8]
Lloh6:
	adrp	x9, _DTYPE_SOCKET@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DTYPE_SOCKET@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.4:
	ldr	x21, [x19]
	sub	x0, x29, #64
	bl	_microtime
Lloh9:
	adrp	x23, _nbyte@GOTPAGE
Lloh10:
	ldr	x23, [x23, _nbyte@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x23]
	mov	x0, x21
	bl	_MIN
	str	x0, [x23]
	str	x0, [sp, #24]
	stp	xzr, x0, [sp, #48]
	ldur	x8, [x29, #-56]
	ldr	x0, [x8, #16]
	add	x2, sp, #48
	mov	x1, #0
	mov	x3, #0
	mov	x4, #0
	mov	w5, #0
	mov	x6, x20
	bl	_sosend
	ldr	x8, [sp, #48]
	sub	x21, x21, x8
	cmp	w0, #0
	ccmp	x21, #0, #4, eq
	b.ne	LBB0_5
; %bb.6:
	mov	x22, x0
	sub	x0, x29, #72
	bl	_microtime
	ldur	x0, [x29, #-56]
	b	LBB0_9
LBB0_7:
	mov	x1, x20
	bl	_fdrop
Lloh11:
	adrp	x8, _EBADF@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EBADF@GOTPAGEOFF]
Lloh13:
	ldr	w22, [x8]
	b	LBB0_1
LBB0_8:
	mov	x21, #0
Lloh14:
	adrp	x8, _EFTYPE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EFTYPE@GOTPAGEOFF]
Lloh16:
	ldr	w22, [x8]
LBB0_9:
	mov	x1, x20
	bl	_fdrop
	cbnz	w22, LBB0_1
; %bb.10:
	add	x2, x19, #16
	sub	x0, x29, #72
	sub	x1, x29, #64
	bl	_timersub
	ldr	x8, [x19]
	sub	x8, x8, x21
	str	x8, [x19, #8]
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_UIO_NOCOPY,4,2                 ; @UIO_NOCOPY
	.comm	_FWRITE,4,2                     ; @FWRITE
	.comm	_EBADF,4,2                      ; @EBADF
	.comm	_DTYPE_SOCKET,8,3               ; @DTYPE_SOCKET
	.comm	_nbyte,8,3                      ; @nbyte
	.comm	_EFTYPE,4,2                     ; @EFTYPE
	.no_dead_strip	_kttcp_send
.subsections_via_symbols
