	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function recv_loop
_recv_loop:                             ## @recv_loop
	.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	_FD_SETSIZE@GOTPCREL(%rip), %rax
	movl	$-1, %r12d
	cmpq	%rdi, (%rax)
	jle	LBB0_17
## %bb.1:
	movq	%r8, %rbx
	movq	%rcx, %r14
	movl	%edx, %r15d
	movq	%rdi, %r13
	movl	%esi, -56(%rbp)                 ## 4-byte Spill
	movq	%r8, %rdi
	callq	_krb5_data_zero
	leaq	1(%r13), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	testl	%r15d, %r15d
	setne	-41(%rbp)                       ## 1-byte Folded Spill
	leaq	-68(%rbp), %r15
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_FD_ZERO
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_FD_SET
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -80(%rbp)
	movq	$0, -88(%rbp)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	leaq	-88(%rbp), %r8
	callq	_select
	testl	%eax, %eax
	js	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%eax, %eax
	je	LBB0_17
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_FIONREAD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	leaq	-48(%rbp), %rdx
	callq	_rk_SOCK_IOCTL
	testq	%rax, %rax
	js	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-48(%rbp), %eax
	testl	%eax, %eax
	jle	LBB0_17
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	testq	%r14, %r14
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rsi
	subq	(%rbx), %rsi
	movq	%rax, %rdi
	callq	_min
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, -48(%rbp)
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rbx), %rdi
	movslq	%eax, %rsi
	addq	(%rbx), %rsi
	callq	_realloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, 8(%rbx)
	addq	(%rbx), %rax
	movl	-48(%rbp), %edx
	movq	%r13, %rdi
	movq	%rax, %rsi
	xorl	%ecx, %ecx
	callq	_recv
	testl	%eax, %eax
	js	LBB0_7
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %eax
	addq	%rax, (%rbx)
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_14
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EINTR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	setne	%dl
	orb	-41(%rbp), %dl                  ## 1-byte Folded Reload
	jne	LBB0_4
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	testq	%r14, %r14
	je	LBB0_2
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r14, (%rbx)
	jb	LBB0_2
## %bb.16:
	xorl	%r12d, %r12d
	jmp	LBB0_17
LBB0_7:
	movq	%rbx, %rdi
	callq	_krb5_data_free
	movl	$-1, %r12d
LBB0_17:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	xorl	%r12d, %r12d
	cmpq	%rcx, %rax
	setne	%r12b
	negl	%r12d
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_FD_SETSIZE,8,3                 ## @FD_SETSIZE
	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
	.comm	_FIONREAD,4,2                   ## @FIONREAD
	.no_dead_strip	_recv_loop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function recv_loop
_recv_loop:                             ; @recv_loop
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
Lloh0:
	adrp	x8, _FD_SETSIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FD_SETSIZE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x0
	b.le	LBB0_15
; %bb.1:
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	mov	x0, x4
	bl	_krb5_data_zero
	add	x24, x23, #1
	cmp	w21, #0
	cset	w25, ne
Lloh3:
	adrp	x26, _errno@GOTPAGE
Lloh4:
	ldr	x26, [x26, _errno@GOTPAGEOFF]
Lloh5:
	adrp	x27, _EINTR@GOTPAGE
Lloh6:
	ldr	x27, [x27, _EINTR@GOTPAGEOFF]
Lloh7:
	adrp	x28, _FIONREAD@GOTPAGE
Lloh8:
	ldr	x28, [x28, _FIONREAD@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #28
	bl	_FD_ZERO
	add	x1, sp, #28
	mov	x0, x23
	bl	_FD_SET
	str	w22, [sp, #16]
	str	xzr, [sp, #8]
	add	x1, sp, #28
	add	x4, sp, #8
	mov	x0, x24
	mov	x2, #0
	mov	x3, #0
	bl	_select
	tbnz	w0, #31, LBB0_11
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cbz	w0, LBB0_17
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x28]
	add	x2, sp, #4
	mov	x0, x23
	bl	_rk_SOCK_IOCTL
	tbnz	x0, #63, LBB0_16
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [sp, #4]
	cmp	w0, #1
	b.lt	LBB0_14
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	cbz	x20, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19]
	sub	x1, x20, x8
	bl	_min
                                        ; kill: def $w0 killed $w0 def $x0
	str	w0, [sp, #4]
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldp	x9, x8, [x19]
	add	x1, x9, w0, sxtw
	mov	x0, x8
	bl	_realloc
	cbz	x0, LBB0_16
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	str	x0, [x19, #8]
	ldr	x8, [x19]
	add	x1, x0, x8
	ldr	w2, [sp, #4]
	mov	x0, x23
	mov	w3, #0
	bl	_recv
	tbnz	w0, #31, LBB0_16
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19]
	add	x8, x8, w0, uxtw
	str	x8, [x19]
	cbz	w21, LBB0_12
	b	LBB0_14
LBB0_11:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x26]
	ldr	x9, [x27]
	cmp	x8, x9
	cset	w8, ne
	orr	w8, w8, w25
	tbnz	w8, #0, LBB0_18
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
	cbz	x20, LBB0_2
; %bb.13:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19]
	cmp	x8, x20
	b.lo	LBB0_2
LBB0_14:
	mov	w0, #0
	b	LBB0_17
LBB0_15:
	mov	w0, #-1
	b	LBB0_17
LBB0_16:
	mov	x0, x19
	bl	_krb5_data_free
	mov	w0, #-1
LBB0_17:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_18:
	csetm	w0, ne
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_FD_SETSIZE,8,3                 ; @FD_SETSIZE
	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
	.comm	_FIONREAD,4,2                   ; @FIONREAD
	.no_dead_strip	_recv_loop
.subsections_via_symbols
