	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function send_and_recv_tcp
_send_and_recv_tcp:                     ## @send_and_recv_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movl	%esi, %r15d
	movl	%edi, %r12d
	movl	(%rdx), %esi
	leaq	-68(%rbp), %r13
	movq	%r13, %rdi
	movl	$4, %edx
	callq	__krb5_put_int
	movl	%r12d, %edi
	movq	%r13, %rsi
	movl	$4, %edx
	callq	_net_write
	testq	%rax, %rax
	js	LBB0_7
## %bb.1:
	movq	8(%rbx), %rsi
	movl	(%rbx), %edx
	movl	%r12d, %edi
	callq	_net_write
	testq	%rax, %rax
	js	LBB0_7
## %bb.2:
	leaq	-64(%rbp), %r13
	movl	$4, %ecx
	movl	%r12d, %edi
	movl	%r15d, %esi
	xorl	%edx, %edx
	movq	%r13, %r8
	callq	_recv_loop
	testq	%rax, %rax
	js	LBB0_7
## %bb.3:
	cmpl	$4, -64(%rbp)
	jne	LBB0_6
## %bb.4:
	movq	-56(%rbp), %rdi
	leaq	-48(%rbp), %rsi
	movl	$4, %edx
	callq	__krb5_get_int
	leaq	-64(%rbp), %rdi
	callq	_krb5_data_free
	movq	-48(%rbp), %rcx
	xorl	%ebx, %ebx
	movl	%r12d, %edi
	movl	%r15d, %esi
	xorl	%edx, %edx
	movq	%r14, %r8
	callq	_recv_loop
	testq	%rax, %rax
	js	LBB0_7
## %bb.5:
	movslq	(%r14), %rax
	movq	%r14, %r13
	cmpq	%rax, -48(%rbp)
	je	LBB0_8
LBB0_6:
	movq	%r13, %rdi
	callq	_krb5_data_free
LBB0_7:
	movl	$-1, %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_send_and_recv_tcp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function send_and_recv_tcp
_send_and_recv_tcp:                     ; @send_and_recv_tcp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x3
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w1, [x2]
	add	x0, sp, #28
	mov	w2, #4
	bl	__krb5_put_int
	add	x1, sp, #28
	mov	x0, x21
	mov	w2, #4
	bl	_net_write
	tbnz	x0, #63, LBB0_9
; %bb.1:
	ldr	x1, [x22, #8]
	ldr	w2, [x22]
	mov	x0, x21
	bl	_net_write
	tbnz	x0, #63, LBB0_9
; %bb.2:
	mov	x4, sp
	mov	x0, x21
	mov	x1, x20
	mov	w2, #0
	mov	w3, #4
	bl	_recv_loop
	tbnz	x0, #63, LBB0_9
; %bb.3:
	ldr	w8, [sp]
	cmp	w8, #4
	b.ne	LBB0_7
; %bb.4:
	ldr	x0, [sp, #8]
	add	x1, sp, #16
	mov	w2, #4
	bl	__krb5_get_int
	mov	x0, sp
	bl	_krb5_data_free
	ldr	x3, [sp, #16]
	mov	x0, x21
	mov	x1, x20
	mov	w2, #0
	mov	x4, x19
	bl	_recv_loop
	tbnz	x0, #63, LBB0_9
; %bb.5:
	ldrsw	x8, [x19]
	ldr	x9, [sp, #16]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.6:
	mov	w0, #0
	b	LBB0_10
LBB0_7:
	mov	x19, sp
LBB0_8:
	mov	x0, x19
	bl	_krb5_data_free
LBB0_9:
	mov	w0, #-1
LBB0_10:
	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
	add	sp, sp, #80
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_send_and_recv_tcp
.subsections_via_symbols
