	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_tcp
_handle_tcp:                            ## @handle_tcp
	.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	$1080, %rsp                     ## imm = 0x438
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movslq	%ecx, %rax
	leaq	(%rax,%rax,4), %r12
	cmpq	$0, (%rdx,%r12,8)
	je	LBB0_1
## %bb.3:
	movl	%edi, -1076(%rbp)               ## 4-byte Spill
	leaq	(%rbx,%r12,8), %r14
	movl	32(%rbx,%r12,8), %edi
	leaq	-1072(%rbp), %rsi
	movl	$1024, %edx                     ## imm = 0x400
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_recvfrom
	movl	%eax, %r13d
	movl	%eax, %edi
	callq	_rk_IS_SOCKET_ERROR
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_rk_SOCK_ERRNO@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	28(%rbx,%r12,8), %r13d
	movq	%r14, %rdi
	callq	_descr_type
	movl	%eax, %r14d
	movl	24(%rbx,%r12,8), %edi
	callq	_ntohs
	leaq	L_.str(%rip), %rdx
	movl	-1076(%rbp), %edi               ## 4-byte Reload
	movl	%r15d, %esi
	movl	%r13d, %ecx
	movl	%r14d, %r8d
	movl	%eax, %r9d
	callq	_krb5_warn
	jmp	LBB0_23
LBB0_1:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_25
## %bb.2:
	movq	%r15, %rsi
	movq	%rbx, %rdx
	addq	$1080, %rsp                     ## imm = 0x438
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_add_new_tcp                    ## TAILCALL
LBB0_5:
	testl	%r13d, %r13d
	je	LBB0_6
## %bb.7:
	movl	-1076(%rbp), %edi               ## 4-byte Reload
	movq	%r15, %rsi
	movq	%r14, %rdx
	movl	%r13d, %ecx
	callq	_grow_descr
	testq	%rax, %rax
	jne	LBB0_23
## %bb.8:
	leaq	(%rbx,%r12,8), %rax
	addq	$16, %rax
	movq	%rax, -1088(%rbp)               ## 8-byte Spill
	movslq	8(%rbx,%r12,8), %rdi
	addq	16(%rbx,%r12,8), %rdi
	leaq	-1072(%rbp), %rsi
	movl	%r13d, %edx
	callq	_memcpy
	movq	-1088(%rbp), %rcx               ## 8-byte Reload
	addl	8(%rbx,%r12,8), %r13d
	movl	%r13d, 8(%rbx,%r12,8)
	cmpl	$5, %r13d
	jl	LBB0_11
## %bb.9:
	movq	(%rcx), %rax
	cmpb	$0, (%rax)
	je	LBB0_10
LBB0_11:
	movq	_enable_http@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_18
## %bb.12:
	cmpl	$4, %r13d
	jl	LBB0_18
## %bb.13:
	movq	(%rcx), %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	$4, %edx
	movq	%rcx, %r13
	callq	_strncmp
	movq	%r13, %rcx
	testq	%rax, %rax
	jne	LBB0_18
## %bb.14:
	movq	(%rcx), %rax
	movslq	-8(%r13), %rcx
	leaq	(%rax,%rcx), %rdi
	addq	$-4, %rdi
	leaq	L_.str.3(%rip), %rsi
	movl	$4, %edx
	callq	_strncmp
	movq	%r13, %rcx
	testq	%rax, %rax
	je	LBB0_15
LBB0_18:
	cmpl	$5, -8(%rcx)
	jl	LBB0_23
## %bb.19:
	movl	28(%rbx,%r12,8), %eax
	movl	%eax, -1092(%rbp)               ## 4-byte Spill
	movq	%r14, %rdi
	callq	_descr_type
	movl	%eax, %r13d
	movl	24(%rbx,%r12,8), %edi
	callq	_ntohs
	movl	%eax, (%rsp)
	leaq	L_.str.4(%rip), %rcx
	movl	-1076(%rbp), %ebx               ## 4-byte Reload
	movl	%ebx, %edi
	movq	%r15, %rsi
	xorl	%edx, %edx
	movl	-1092(%rbp), %r8d               ## 4-byte Reload
	movl	%r13d, %r9d
	xorl	%eax, %eax
	callq	_kdc_log
	movq	-1088(%rbp), %rax               ## 8-byte Reload
	movq	(%rax), %rax
	cmpb	$0, (%rax)
	jns	LBB0_22
## %bb.20:
	leaq	L_.str.5(%rip), %rcx
	movl	%ebx, %edi
	movq	%r15, %rsi
	xorl	%edx, %edx
	xorl	%eax, %eax
	callq	_kdc_log
	movq	_KRB5KRB_ERR_FIELD_TOOLONG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-1096(%rbp), %rax
	movq	%rax, 16(%rsp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsp)
	movl	%ebx, %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_krb5_mk_error
	testl	%eax, %eax
	jne	LBB0_22
## %bb.21:
	movl	%ebx, %edi
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-1096(%rbp), %rbx
	movq	%r15, %rsi
	movq	%r14, %rcx
	movq	%rbx, %r8
	callq	_send_reply
	movq	%rbx, %rdi
	callq	_krb5_data_free
	jmp	LBB0_22
LBB0_6:
	movslq	8(%rbx,%r12,8), %rax
	movq	%rax, -1088(%rbp)               ## 8-byte Spill
	movl	28(%rbx,%r12,8), %r13d
	movq	%r14, %rdi
	callq	_descr_type
	movl	%eax, %r15d
	movl	24(%rbx,%r12,8), %edi
	callq	_ntohs
	leaq	L_.str.1(%rip), %rsi
	movl	-1076(%rbp), %edi               ## 4-byte Reload
	movq	-1088(%rbp), %rdx               ## 8-byte Reload
	movl	%r13d, %ecx
	movl	%r15d, %r8d
	movl	%eax, %r9d
	callq	_krb5_warnx
LBB0_22:
	movq	%r14, %rdi
	callq	_clear_descr
LBB0_23:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_25
## %bb.24:
	addq	$1080, %rsp                     ## imm = 0x438
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	%rcx, %r13
	movl	-1076(%rbp), %edi               ## 4-byte Reload
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_handle_vanilla_tcp
LBB0_16:
	cmpl	$1, %eax
	jne	LBB0_23
## %bb.17:
	movq	(%r13), %rdx
	movl	-8(%r13), %ecx
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	-1076(%rbp), %edi               ## 4-byte Reload
	movq	%r15, %rsi
	movq	%r14, %r9
	callq	_do_request
	jmp	LBB0_22
LBB0_15:
	movq	(%rcx), %rax
	movslq	-8(%rcx), %rcx
	movb	$0, -4(%rcx,%rax)
	movl	-1076(%rbp), %edi               ## 4-byte Reload
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_handle_http_tcp
	testl	%eax, %eax
	jns	LBB0_16
	jmp	LBB0_22
LBB0_25:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_rk_SOCK_ERRNO,4,2              ## @rk_SOCK_ERRNO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"recvfrom failed from %s to %s/%d"

L_.str.1:                               ## @.str.1
	.asciz	"connection closed before end of data after %lu bytes from %s to %s/%d"

	.comm	_enable_http,8,3                ## @enable_http
L_.str.2:                               ## @.str.2
	.asciz	"GET "

L_.str.3:                               ## @.str.3
	.asciz	"\r\n\r\n"

L_.str.4:                               ## @.str.4
	.asciz	"TCP data of strange type from %s to %s/%d"

L_.str.5:                               ## @.str.5
	.asciz	"TCP extension not supported"

	.comm	_KRB5KRB_ERR_FIELD_TOOLONG,4,2  ## @KRB5KRB_ERR_FIELD_TOOLONG
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_handle_tcp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_tcp
_handle_tcp:                            ; @handle_tcp
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #1072
                                        ; kill: def $w3 killed $w3 def $x3
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	mov	w8, #40
	smaddl	x19, w3, w8, x2
	ldr	x8, [x19]
	cbz	x8, LBB0_3
; %bb.1:
	sxtw	x25, w3
	mov	w8, #40
	madd	x8, x25, x8, x22
	ldr	w0, [x8, #32]
	add	x1, sp, #40
	mov	w2, #1024
	mov	w3, #0
	mov	x4, #0
	mov	x5, #0
	bl	_recvfrom
	mov	x23, x0
	bl	_rk_IS_SOCKET_ERROR
	cbz	x0, LBB0_5
; %bb.2:
Lloh3:
	adrp	x8, _rk_SOCK_ERRNO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _rk_SOCK_ERRNO@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	mov	w8, #40
	madd	x23, x25, x8, x22
	ldr	w22, [x23, #28]
	mov	x0, x19
	bl	_descr_type
	mov	x19, x0
	ldr	w0, [x23, #24]
	bl	_ntohs
	mov	x5, x0
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	mov	x3, x22
	mov	x4, x19
	bl	_krb5_warn
	b	LBB0_19
LBB0_3:
	ldur	x8, [x29, #-88]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_25
; %bb.4:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
                                        ; kill: def $w3 killed $w3 killed $x3
	add	sp, sp, #1072
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_add_new_tcp
LBB0_5:
	cbz	w23, LBB0_17
; %bb.6:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	mov	x3, x23
	bl	_grow_descr
	cbnz	x0, LBB0_19
; %bb.7:
	mov	w8, #40
	madd	x24, x25, x8, x22
	ldr	x8, [x24, #16]!
	mov	x26, x24
	ldrsw	x9, [x26, #-8]!
	add	x0, x8, x9
	add	x1, sp, #40
	mov	x2, x23
	bl	_memcpy
	ldr	w8, [x26]
	add	w8, w8, w23
	str	w8, [x26]
	cmp	w8, #5
	b.lt	LBB0_9
; %bb.8:
	ldr	x9, [x24]
	ldrb	w9, [x9]
	cbz	w9, LBB0_21
LBB0_9:
Lloh11:
	adrp	x9, _enable_http@GOTPAGE
Lloh12:
	ldr	x9, [x9, _enable_http@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cbz	x9, LBB0_13
; %bb.10:
	cmp	w8, #4
	b.lt	LBB0_13
; %bb.11:
	ldr	x0, [x24]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w2, #4
	bl	_strncmp
	cbnz	x0, LBB0_13
; %bb.12:
	ldr	x8, [x24]
	ldrsw	x9, [x26]
	add	x8, x8, x9
	sub	x0, x8, #4
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w2, #4
	bl	_strncmp
	cbz	x0, LBB0_24
LBB0_13:
	ldr	w8, [x26]
	cmp	w8, #4
	b.le	LBB0_19
; %bb.14:
	mov	w8, #40
	madd	x23, x25, x8, x22
	ldr	w25, [x23, #28]
	mov	x0, x19
	bl	_descr_type
	mov	x22, x0
	ldr	w0, [x23, #24]
	bl	_ntohs
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x22, x0, [sp, #8]
	str	x25, [sp]
Lloh18:
	adrp	x3, l_.str.4@PAGE
Lloh19:
	add	x3, x3, l_.str.4@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	mov	w2, #0
	bl	_kdc_log
	ldr	x8, [x24]
	ldrsb	w8, [x8]
	tbz	w8, #31, LBB0_18
; %bb.15:
Lloh20:
	adrp	x3, l_.str.5@PAGE
Lloh21:
	add	x3, x3, l_.str.5@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	mov	w2, #0
	bl	_kdc_log
Lloh22:
	adrp	x8, _KRB5KRB_ERR_FIELD_TOOLONG@GOTPAGE
Lloh23:
	ldr	x8, [x8, _KRB5KRB_ERR_FIELD_TOOLONG@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	add	x8, sp, #36
	str	x8, [sp]
	mov	x0, x20
	mov	x2, #0
	mov	x3, #0
	mov	x4, #0
	mov	x5, #0
	mov	x6, #0
	mov	x7, #0
	bl	_krb5_mk_error
	cbnz	w0, LBB0_18
; %bb.16:
Lloh25:
	adrp	x8, _TRUE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
	add	x4, sp, #36
	mov	x0, x20
	mov	x1, x21
	mov	x3, x19
	bl	_send_reply
	add	x0, sp, #36
	bl	_krb5_data_free
	b	LBB0_18
LBB0_17:
	mov	w8, #40
	madd	x24, x25, x8, x22
	ldrsw	x21, [x24, #8]
	ldr	w22, [x24, #28]
	mov	x0, x19
	bl	_descr_type
	mov	x23, x0
	ldr	w0, [x24, #24]
	bl	_ntohs
	mov	x5, x0
Lloh28:
	adrp	x1, l_.str.1@PAGE
Lloh29:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	mov	x3, x22
	mov	x4, x23
	bl	_krb5_warnx
LBB0_18:
	mov	x0, x19
	bl	_clear_descr
LBB0_19:
	ldur	x8, [x29, #-88]
Lloh30:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh31:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_25
; %bb.20:
	add	sp, sp, #1072
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_21:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_handle_vanilla_tcp
LBB0_22:
	cmp	w0, #1
	b.ne	LBB0_19
; %bb.23:
	ldr	x2, [x24]
	ldr	w3, [x26]
Lloh33:
	adrp	x8, _TRUE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh35:
	ldr	w4, [x8]
	mov	x0, x20
	mov	x1, x21
	mov	x5, x19
	bl	_do_request
	b	LBB0_18
LBB0_24:
	ldr	x8, [x24]
	ldrsw	x9, [x26]
	add	x8, x9, x8
	sturb	wzr, [x8, #-4]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_handle_http_tcp
	tbz	w0, #31, LBB0_22
	b	LBB0_18
LBB0_25:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_rk_SOCK_ERRNO,4,2              ; @rk_SOCK_ERRNO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"recvfrom failed from %s to %s/%d"

l_.str.1:                               ; @.str.1
	.asciz	"connection closed before end of data after %lu bytes from %s to %s/%d"

	.comm	_enable_http,8,3                ; @enable_http
l_.str.2:                               ; @.str.2
	.asciz	"GET "

l_.str.3:                               ; @.str.3
	.asciz	"\r\n\r\n"

l_.str.4:                               ; @.str.4
	.asciz	"TCP data of strange type from %s to %s/%d"

l_.str.5:                               ; @.str.5
	.asciz	"TCP extension not supported"

	.comm	_KRB5KRB_ERR_FIELD_TOOLONG,4,2  ; @KRB5KRB_ERR_FIELD_TOOLONG
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_handle_tcp
.subsections_via_symbols
