	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sendrecv                       ## -- Begin function sendrecv
	.p2align	4, 0x90
_sendrecv:                              ## @sendrecv
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rcx, %rbx
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	_MINTMO@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	xorl	%eax, %eax
	callq	_getsecs
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_getsecs
	movq	%rax, %r15
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_getsecs
	addq	%r15, %r14
	subq	%rax, %r14
	movq	%rax, %rcx
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %r15
	movq	%r14, %r13
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
                                        ##       Child Loop BB0_15 Depth 3
	movq	%r12, %r14
	.p2align	4, 0x90
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_15 Depth 3
	movq	_MAXWAIT@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=2
	xorl	%eax, %eax
	callq	_getsecs
	subq	-80(%rbp), %rax                 ## 8-byte Folded Reload
	movq	_MAXWAIT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_17
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=2
	testq	%r13, %r13
	jg	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=2
	movq	_MAXTMO@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jge	LBB0_17
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=2
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	*-88(%rbp)                      ## 8-byte Folded Reload
	cmpl	$-1, %eax
	je	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=2
	movslq	%eax, %rcx
	cmpq	%rbx, %rcx
	jb	LBB0_9
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=2
	movq	_MINTMO@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r12
	addq	%r14, %r12
	movq	_MAXTMO@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %r12
	cmovgeq	%rcx, %r12
	cmpl	$-1, %eax
	jne	LBB0_10
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_1 Depth=1
                                        ##     Parent Loop BB0_2 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	xorl	%eax, %eax
	callq	_getsecs
	subq	%r15, %rax
	cmpq	%r12, %rax
	jl	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=2
	movq	%r12, %r14
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %r12
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r13, %r14
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	_panic
	movq	_MINTMO@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	addq	%r14, %r12
	movq	_MAXTMO@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %r12
	cmovgeq	%rax, %r12
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	16(%rbp), %rdx
	movq	%r14, %rcx
	movq	24(%rbp), %r8
	callq	*-64(%rbp)                      ## 8-byte Folded Reload
	cmpl	$-1, %eax
	jne	LBB0_19
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_13
	jmp	LBB0_18
LBB0_17:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_errno@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_18:
	movl	$-1, %eax
LBB0_19:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MINTMO,8,3                     ## @MINTMO
	.comm	_MAXWAIT,8,3                    ## @MAXWAIT
	.comm	_ETIMEDOUT,8,3                  ## @ETIMEDOUT
	.comm	_errno,8,3                      ## @errno
	.comm	_MAXTMO,8,3                     ## @MAXTMO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sendrecv: short write! (%zd < %zd)"

	.comm	_debug,8,3                      ## @debug
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sendrecv                       ; -- Begin function sendrecv
	.p2align	2
_sendrecv:                              ; @sendrecv
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	stp	x6, x7, [sp, #16]               ; 16-byte Folded Spill
	stp	x4, x5, [sp]                    ; 16-byte Folded Spill
	mov	x23, x3
	mov	x24, x2
	mov	x25, x1
	mov	x26, x0
Lloh0:
	adrp	x8, _MINTMO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MINTMO@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
	bl	_getsecs
	str	x0, [sp, #40]                   ; 8-byte Folded Spill
	bl	_getsecs
	mov	x28, x0
	str	xzr, [sp, #32]                  ; 8-byte Folded Spill
	mov	x21, #0
Lloh3:
	adrp	x22, _MAXWAIT@GOTPAGE
Lloh4:
	ldr	x22, [x22, _MAXWAIT@GOTPAGEOFF]
Lloh5:
	adrp	x20, _MAXTMO@GOTPAGE
Lloh6:
	ldr	x20, [x20, _MAXTMO@GOTPAGEOFF]
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	mov	x27, x19
	ldr	x8, [x22]
	cmp	x8, #1
	b.lt	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	bl	_getsecs
	ldr	x8, [x22]
	ldr	x9, [sp, #40]                   ; 8-byte Folded Reload
	sub	x9, x0, x9
	cmp	x9, x8
	b.ge	LBB0_15
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	cmp	x21, #0
	b.gt	LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x20]
	cmp	x27, x8
	b.ge	LBB0_15
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x26
	mov	x1, x24
	mov	x2, x23
	blr	x25
	mov	x1, x0
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	sxtw	x8, w1
	cmp	x8, x23
	b.lo	LBB0_11
LBB0_7:                                 ;   in Loop: Header=BB0_1 Depth=1
Lloh7:
	adrp	x8, _MINTMO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MINTMO@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	ldr	x9, [x20]
	add	x8, x8, x27
	cmp	x8, x9
	csel	x19, x8, x9, lt
	cmn	w1, #1
	b.ne	LBB0_12
LBB0_8:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	bl	_getsecs
	sub	x8, x0, x28
	cmp	x8, x19
	b.lt	LBB0_8
; %bb.9:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x21, #0
	b	LBB0_1
LBB0_10:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x19, x27
	ldr	x28, [sp, #32]                  ; 8-byte Folded Reload
	mov	x27, x21
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x2, x23
	bl	_panic
Lloh12:
	adrp	x8, _MINTMO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MINTMO@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	ldr	x9, [x20]
	add	x8, x8, x27
	cmp	x8, x9
	csel	x19, x8, x9, lt
LBB0_12:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x26
	ldp	x1, x2, [sp, #8]                ; 16-byte Folded Reload
	mov	x3, x27
	ldr	x4, [sp, #24]                   ; 8-byte Folded Reload
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	blr	x8
	cmn	w0, #1
	b.ne	LBB0_17
; %bb.13:                               ;   in Loop: Header=BB0_1 Depth=1
Lloh15:
	adrp	x8, _errno@GOTPAGE
Lloh16:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
Lloh18:
	adrp	x9, _ETIMEDOUT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _ETIMEDOUT@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, #0
	ccmp	x8, x9, #4, ne
	b.ne	LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_1 Depth=1
	bl	_getsecs
	add	x8, x27, x28
	sub	x21, x8, x0
	str	x0, [sp, #32]                   ; 8-byte Folded Spill
	mov	x28, x0
	b	LBB0_1
LBB0_15:
Lloh21:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
Lloh24:
	adrp	x9, _errno@GOTPAGE
Lloh25:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh26:
	str	x8, [x9]
LBB0_16:
	mov	w0, #-1
LBB0_17:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotStr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_MINTMO,8,3                     ; @MINTMO
	.comm	_MAXWAIT,8,3                    ; @MAXWAIT
	.comm	_ETIMEDOUT,8,3                  ; @ETIMEDOUT
	.comm	_errno,8,3                      ; @errno
	.comm	_MAXTMO,8,3                     ; @MAXTMO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sendrecv: short write! (%zd < %zd)"

	.comm	_debug,8,3                      ; @debug
.subsections_via_symbols
