	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tls_read
_tls_read:                              ## @tls_read
	.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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rdi, -168(%rbp)                ## 8-byte Spill
	movq	(%rdi), %r15
                                        ## implicit-def: $eax
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	cmpl	%edx, (%r15)
	jge	LBB0_51
## %bb.1:
	cmpl	$0, 4(%r15)
                                        ## implicit-def: $eax
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	je	LBB0_2
LBB0_51:
	movl	(%r15), %esi
	movl	%r12d, %edi
	callq	_FFMIN
	testl	%eax, %eax
	je	LBB0_53
## %bb.52:
	movl	%eax, %r13d
	movq	24(%r15), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_memcpy
	movq	24(%r15), %rdi
	movslq	%r13d, %rax
	leaq	(%rdi,%rax,4), %rsi
	movl	(%r15), %edx
	subl	%r13d, %edx
	callq	_memmove
	subl	%r13d, (%r15)
	jmp	LBB0_60
LBB0_53:
	movq	-152(%rbp), %rax                ## 8-byte Reload
	testl	%eax, %eax
	je	LBB0_54
## %bb.57:
	testl	%eax, %eax
	js	LBB0_59
LBB0_58:
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_59:
	movl	%eax, %r13d
	jmp	LBB0_60
LBB0_2:
	movq	_SEC_E_OK@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	_SCHANNEL_FREE_BUFFER_SIZE@GOTPCREL(%rip), %rax
	cmpl	$0, 8(%r15)
	je	LBB0_25
## %bb.3:
	movl	16(%r15), %r13d
	movq	%r14, %rax
	jmp	LBB0_4
LBB0_54:
	cmpl	$0, 8(%r15)
	je	LBB0_56
## %bb.55:
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_60:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_63
## %bb.61:
	movl	%r13d, %eax
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	movl	(%rax), %ecx
	leal	(%rcx,%r12), %eax
	movl	12(%r15), %edi
	movl	16(%r15), %esi
	movl	%edi, %edx
	subl	%esi, %edx
	cmpl	%ecx, %edx
	jl	LBB0_27
## %bb.26:
	cmpl	%eax, %edi
	jge	LBB0_29
LBB0_27:
	addl	%ecx, %esi
	cmpl	%eax, %esi
	cmovlel	%eax, %esi
	movl	%esi, 12(%r15)
	leaq	32(%r15), %rdi
	callq	_av_reallocp
	testl	%eax, %eax
	js	LBB0_62
## %bb.28:
	movl	12(%r15), %edx
	movl	16(%r15), %esi
	subl	%esi, %edx
LBB0_29:
	movl	44(%r15), %edi
	movslq	%esi, %rsi
	shlq	$2, %rsi
	addq	32(%r15), %rsi
	callq	_ffurl_read
	movl	%eax, %r13d
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_32
## %bb.30:
	movl	$1, 8(%r15)
	xorl	%r13d, %r13d
	jmp	LBB0_31
LBB0_56:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	jns	LBB0_58
	jmp	LBB0_59
LBB0_32:
	testl	%r13d, %r13d
	js	LBB0_33
LBB0_31:
	addl	16(%r15), %r13d
	movl	%r13d, 16(%r15)
	movq	_SEC_E_OK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_4:
	xorl	%ecx, %ecx
	movq	%rcx, -152(%rbp)                ## 8-byte Spill
	testl	%r13d, %r13d
	jle	LBB0_51
## %bb.5:
	cmpq	%rax, %r14
	jne	LBB0_51
## %bb.6:
	leaq	40(%r15), %rax
	movq	%rax, -184(%rbp)                ## 8-byte Spill
	leaq	24(%r15), %rax
	movq	%rax, -176(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	movq	%rbx, -160(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r12d, (%r15)
	jge	LBB0_51
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	_SECBUFFER_DATA@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	32(%r15), %rdx
	leaq	-144(%rbp), %r14
	movq	%r14, %rdi
	movl	%r13d, %ecx
	callq	_init_sec_buffer
	movq	_SECBUFFER_EMPTY@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	leaq	-120(%rbp), %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_init_sec_buffer
	movq	(%rbx), %rsi
	leaq	-96(%rbp), %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_init_sec_buffer
	movq	(%rbx), %rsi
	leaq	-72(%rbp), %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_init_sec_buffer
	leaq	-188(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_init_sec_buffer_desc
	movq	-184(%rbp), %rdi                ## 8-byte Reload
	movq	%rbx, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_DecryptMessage
	movq	%rax, %r14
	movq	_SEC_E_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	_SEC_I_RENEGOTIATE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_SEC_I_CONTEXT_EXPIRED@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_44
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-120(%rbp), %rax
	movq	_SECBUFFER_DATA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_18
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	-112(%rbp), %ebx
	movq	_SCHANNEL_FREE_BUFFER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ebx
	cmovgl	%ebx, %eax
	movl	(%r15), %esi
	movl	20(%r15), %ecx
	cmpl	%r12d, %ecx
	jl	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	subl	%esi, %ecx
	cmpl	%eax, %ecx
	jge	LBB0_16
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=1
	addl	%eax, %esi
	cmpl	%r12d, %esi
	cmovlel	%r12d, %esi
	movl	%esi, 20(%r15)
	movq	-176(%rbp), %rdi                ## 8-byte Reload
	callq	_av_reallocp
	testl	%eax, %eax
	js	LBB0_34
## %bb.15:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	-112(%rbp), %ebx
LBB0_16:                                ##   in Loop: Header=BB0_7 Depth=1
	testl	%ebx, %ebx
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_7 Depth=1
	movslq	(%r15), %rdi
	shlq	$2, %rdi
	addq	24(%r15), %rdi
	movq	-104(%rbp), %rsi
	movl	%ebx, %edx
	callq	_memcpy
	addl	%ebx, (%r15)
LBB0_18:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-72(%rbp), %rax
	movq	_SECBUFFER_EXTRA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_39
## %bb.19:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	-64(%rbp), %edx
	testl	%edx, %edx
	jle	LBB0_39
## %bb.20:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	16(%r15), %r13d
	cmpl	%edx, %r13d
	jle	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_7 Depth=1
	movslq	%r13d, %rax
	movq	32(%r15), %rdi
	leaq	(%rdi,%rax,4), %rsi
	movq	%rdx, %rax
	shlq	$2, %rax
	subq	%rax, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memmove
	movl	-64(%rbp), %r13d
	movl	%r13d, 16(%r15)
LBB0_22:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_SEC_I_RENEGOTIATE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_40
## %bb.23:                              ##   in Loop: Header=BB0_7 Depth=1
	testl	%r13d, %r13d
	je	LBB0_35
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_39:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	$0, 16(%r15)
	xorl	%r13d, %r13d
	movq	_SEC_I_RENEGOTIATE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_40
LBB0_35:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_AV_LOG_VERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-168(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	leaq	L_.str.2(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_tls_client_handshake_loop
	testl	%eax, %eax
	js	LBB0_48
## %bb.36:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_SEC_E_OK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	16(%r15), %r13d
	movq	%rax, %r14
	jmp	LBB0_37
	.p2align	4, 0x90
LBB0_40:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_SEC_I_CONTEXT_EXPIRED@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	je	LBB0_42
## %bb.41:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_SEC_E_OK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_37:                                ##   in Loop: Header=BB0_7 Depth=1
	testl	%r13d, %r13d
	jle	LBB0_50
## %bb.38:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpq	%rax, %r14
	movq	-160(%rbp), %rbx                ## 8-byte Reload
	je	LBB0_7
	jmp	LBB0_51
LBB0_44:
	movq	_SEC_E_INCOMPLETE_MESSAGE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_46
## %bb.45:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	jmp	LBB0_47
LBB0_62:
	movl	%eax, %r13d
	movq	$0, 12(%r15)
	jmp	LBB0_60
LBB0_33:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	-168(%rbp), %rdi                ## 8-byte Reload
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_60
LBB0_46:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	movq	-168(%rbp), %rdi                ## 8-byte Reload
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_av_log
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_47:
	movl	(%rax), %edi
	callq	_AVERROR
LBB0_48:
                                        ## kill: def $eax killed $eax def $rax
LBB0_49:
	movq	%rax, -152(%rbp)                ## 8-byte Spill
LBB0_50:
	movq	-160(%rbp), %rbx                ## 8-byte Reload
	jmp	LBB0_51
LBB0_42:
	movl	$1, 4(%r15)
	cmpl	$0, 8(%r15)
	movq	-160(%rbp), %rbx                ## 8-byte Reload
	jne	LBB0_51
## %bb.43:
	movl	$1, 8(%r15)
	movq	_AV_LOG_VERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	xorl	%eax, %eax
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	movq	-168(%rbp), %rdi                ## 8-byte Reload
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_51
LBB0_34:
	movl	%eax, %r13d
	movl	$0, (%r15)
	movl	$0, 20(%r15)
	jmp	LBB0_60
LBB0_24:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	-168(%rbp), %rdi                ## 8-byte Reload
	xorl	%eax, %eax
	callq	_av_log
	movq	_AVERROR_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_49
LBB0_63:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SEC_E_OK,8,3                   ## @SEC_E_OK
	.comm	_SCHANNEL_FREE_BUFFER_SIZE,4,2  ## @SCHANNEL_FREE_BUFFER_SIZE
	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to read from socket\n"

	.comm	_SECBUFFER_DATA,8,3             ## @SECBUFFER_DATA
	.comm	_SECBUFFER_EMPTY,8,3            ## @SECBUFFER_EMPTY
	.comm	_SEC_I_RENEGOTIATE,8,3          ## @SEC_I_RENEGOTIATE
	.comm	_SEC_I_CONTEXT_EXPIRED,8,3      ## @SEC_I_CONTEXT_EXPIRED
	.comm	_SECBUFFER_EXTRA,8,3            ## @SECBUFFER_EXTRA
L_.str.1:                               ## @.str.1
	.asciz	"Cannot renegotiate, encrypted data buffer not empty\n"

	.comm	_AVERROR_UNKNOWN,4,2            ## @AVERROR_UNKNOWN
	.comm	_AV_LOG_VERBOSE,4,2             ## @AV_LOG_VERBOSE
L_.str.2:                               ## @.str.2
	.asciz	"Re-negotiating security context\n"

L_.str.3:                               ## @.str.3
	.asciz	"Server closed the connection\n"

	.comm	_SEC_E_INCOMPLETE_MESSAGE,8,3   ## @SEC_E_INCOMPLETE_MESSAGE
	.comm	_EAGAIN,4,2                     ## @EAGAIN
L_.str.4:                               ## @.str.4
	.asciz	"Unable to decrypt message (error 0x%x)\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_tls_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tls_read
_tls_read:                              ; @tls_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #256
	.cfi_def_cfa_offset 256
	stp	x28, x27, [sp, #160]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #176]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #192]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #208]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #224]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #240]            ; 16-byte Folded Spill
	add	x29, sp, #240
	.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
	mov	x20, x2
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	ldr	x22, [x0]
	ldr	w8, [x22]
                                        ; implicit-def: $w26
	cmp	w8, w2
	b.ge	LBB0_43
; %bb.1:
	ldr	w8, [x22, #4]
                                        ; implicit-def: $w26
	cbnz	w8, LBB0_43
; %bb.2:
	mov	x21, x0
Lloh3:
	adrp	x27, _SEC_E_OK@GOTPAGE
Lloh4:
	ldr	x27, [x27, _SEC_E_OK@GOTPAGEOFF]
	ldr	x23, [x27]
Lloh5:
	adrp	x24, _SCHANNEL_FREE_BUFFER_SIZE@GOTPAGE
Lloh6:
	ldr	x24, [x24, _SCHANNEL_FREE_BUFFER_SIZE@GOTPAGEOFF]
	ldr	w8, [x22, #8]
	cbz	w8, LBB0_4
; %bb.3:
	ldr	w3, [x22, #16]
	mov	x8, x23
	b	LBB0_11
LBB0_4:
	mov	x8, x24
	mov	x24, x27
	mov	x25, x8
	ldr	w10, [x8]
	add	w9, w10, w20
	ldp	w11, w8, [x22, #12]
	sub	w2, w11, w8
	cmp	w2, w10
	ccmp	w11, w9, #8, ge
	b.ge	LBB0_7
; %bb.5:
	add	w8, w8, w10
	cmp	w8, w9
	csel	w1, w8, w9, gt
	str	w1, [x22, #12]
	add	x0, x22, #32
	bl	_av_reallocp
	tbnz	w0, #31, LBB0_38
; %bb.6:
	ldp	w9, w8, [x22, #12]
	sub	w2, w9, w8
LBB0_7:
	ldr	w0, [x22, #44]
	ldr	x9, [x22, #32]
	add	x1, x9, w8, sxtw #2
	bl	_ffurl_read
Lloh7:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_9
; %bb.8:
	mov	w27, #0
	mov	w8, #1
	str	w8, [x22, #8]
	b	LBB0_10
LBB0_9:
	mov	x27, x0
	tbnz	w0, #31, LBB0_39
LBB0_10:
	ldr	w8, [x22, #16]
	add	w3, w8, w27
	str	w3, [x22, #16]
	mov	x27, x24
	ldr	x8, [x24]
	mov	x24, x25
LBB0_11:
	cmp	w3, #1
	ccmp	x23, x8, #0, ge
	b.eq	LBB0_13
LBB0_12:
	mov	w26, #0
	b	LBB0_43
LBB0_13:
	add	x8, sp, #48
	add	x25, x8, #24
	add	x23, x8, #48
	add	x9, x8, #72
	add	x8, x22, #40
	stp	x8, x9, [sp, #24]               ; 16-byte Folded Spill
	add	x8, x22, #24
	stp	x21, x8, [sp, #8]               ; 16-byte Folded Spill
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22]
	cmp	w8, w20
	b.ge	LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
Lloh10:
	adrp	x26, _SECBUFFER_DATA@GOTPAGE
Lloh11:
	ldr	x26, [x26, _SECBUFFER_DATA@GOTPAGEOFF]
	ldr	x1, [x26]
	ldr	x2, [x22, #32]
	add	x0, sp, #48
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_init_sec_buffer
Lloh12:
	adrp	x28, _SECBUFFER_EMPTY@GOTPAGE
Lloh13:
	ldr	x28, [x28, _SECBUFFER_EMPTY@GOTPAGEOFF]
	ldr	x1, [x28]
	mov	x0, x25
	mov	x2, #0
	mov	w3, #0
	bl	_init_sec_buffer
	ldr	x1, [x28]
	mov	x0, x23
	mov	x2, #0
	mov	w3, #0
	bl	_init_sec_buffer
	ldr	x1, [x28]
	ldr	x0, [sp, #32]                   ; 8-byte Folded Reload
	mov	x2, #0
	mov	w3, #0
	bl	_init_sec_buffer
	add	x0, sp, #44
	add	x1, sp, #48
	mov	w2, #4
	bl	_init_sec_buffer_desc
	add	x1, sp, #44
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	mov	w2, #0
	mov	x3, #0
	bl	_DecryptMessage
	mov	x28, x0
	ldr	x8, [x27]
Lloh14:
	adrp	x9, _SEC_I_RENEGOTIATE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _SEC_I_RENEGOTIATE@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
Lloh17:
	adrp	x10, _SEC_I_CONTEXT_EXPIRED@GOTPAGE
Lloh18:
	ldr	x10, [x10, _SEC_I_CONTEXT_EXPIRED@GOTPAGEOFF]
Lloh19:
	ldr	x10, [x10]
	cmp	x0, x8
	ccmp	x0, x9, #4, ne
	ccmp	x0, x10, #4, ne
	b.ne	LBB0_36
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [sp, #72]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_23
; %bb.17:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w26, [sp, #80]
	ldr	w8, [x24]
	cmp	w26, w8
	csel	w8, w26, w8, gt
	ldr	w10, [x22, #20]
	ldr	w9, [x22]
	cmp	w10, w20
	b.lt	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_14 Depth=1
	sub	w10, w10, w9
	cmp	w10, w8
	b.ge	LBB0_21
LBB0_19:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	x21, x23
	mov	x23, x19
	mov	x19, x25
	mov	x25, x24
	mov	x24, x27
	add	w8, w9, w8
	cmp	w8, w20
	csel	w1, w8, w20, gt
	str	w1, [x22, #20]
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	bl	_av_reallocp
	tbnz	w0, #31, LBB0_54
; %bb.20:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w26, [sp, #80]
	mov	x27, x24
	mov	x24, x25
	mov	x25, x19
	mov	x19, x23
	mov	x23, x21
	ldr	x21, [sp, #8]                   ; 8-byte Folded Reload
LBB0_21:                                ;   in Loop: Header=BB0_14 Depth=1
	cbz	w26, LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [x22, #24]
	ldrsw	x9, [x22]
	add	x0, x8, x9, lsl #2
	ldr	x1, [sp, #88]
	mov	x2, x26
	bl	_memcpy
	ldr	w8, [x22]
	add	w8, w8, w26
	str	w8, [x22]
LBB0_23:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [sp, #120]
Lloh20:
	adrp	x9, _SECBUFFER_EXTRA@GOTPAGE
Lloh21:
	ldr	x9, [x9, _SECBUFFER_EXTRA@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_29
; %bb.24:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w2, [sp, #128]
	cmp	w2, #1
	b.lt	LBB0_29
; %bb.25:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w3, [x22, #16]
	cmp	w3, w2
	b.le	LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_14 Depth=1
	sxtw	x8, w3
	ldr	x0, [x22, #32]
	add	x8, x0, x8, lsl #2
	sub	x1, x8, x2, lsl #2
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_memmove
	ldr	w3, [sp, #128]
	str	w3, [x22, #16]
LBB0_27:                                ;   in Loop: Header=BB0_14 Depth=1
Lloh23:
	adrp	x8, _SEC_I_RENEGOTIATE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SEC_I_RENEGOTIATE@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	cmp	x28, x8
	b.ne	LBB0_32
; %bb.28:                               ;   in Loop: Header=BB0_14 Depth=1
	cbz	w3, LBB0_30
	b	LBB0_55
LBB0_29:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	w3, #0
	str	wzr, [x22, #16]
Lloh26:
	adrp	x8, _SEC_I_RENEGOTIATE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SEC_I_RENEGOTIATE@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	cmp	x28, x8
	b.ne	LBB0_32
LBB0_30:                                ;   in Loop: Header=BB0_14 Depth=1
Lloh29:
	adrp	x8, _AV_LOG_VERBOSE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _AV_LOG_VERBOSE@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x21
Lloh32:
	adrp	x2, l_.str.2@PAGE
Lloh33:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_av_log
	mov	x0, x21
	mov	w1, #0
	bl	_tls_client_handshake_loop
	tbnz	w0, #31, LBB0_42
; %bb.31:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [x27]
	ldr	w3, [x22, #16]
	mov	x28, x8
	b	LBB0_34
LBB0_32:                                ;   in Loop: Header=BB0_14 Depth=1
Lloh34:
	adrp	x8, _SEC_I_CONTEXT_EXPIRED@GOTPAGE
Lloh35:
	ldr	x8, [x8, _SEC_I_CONTEXT_EXPIRED@GOTPAGEOFF]
Lloh36:
	ldr	x8, [x8]
	cmp	x28, x8
	b.eq	LBB0_52
; %bb.33:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [x27]
LBB0_34:                                ;   in Loop: Header=BB0_14 Depth=1
	mov	w26, #0
	cmp	w3, #1
	b.lt	LBB0_43
; %bb.35:                               ;   in Loop: Header=BB0_14 Depth=1
	cmp	x28, x8
	b.eq	LBB0_14
	b	LBB0_43
LBB0_36:
Lloh37:
	adrp	x8, _SEC_E_INCOMPLETE_MESSAGE@GOTPAGE
Lloh38:
	ldr	x8, [x8, _SEC_E_INCOMPLETE_MESSAGE@GOTPAGEOFF]
Lloh39:
	ldr	x8, [x8]
	cmp	x28, x8
	b.ne	LBB0_40
; %bb.37:
Lloh40:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh41:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
	b	LBB0_41
LBB0_38:
	mov	x27, x0
	stp	wzr, wzr, [x22, #12]
	b	LBB0_49
LBB0_39:
Lloh42:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh43:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x8]
Lloh45:
	adrp	x2, l_.str@PAGE
Lloh46:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	bl	_av_log
	b	LBB0_49
LBB0_40:
Lloh47:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh48:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh49:
	ldr	w1, [x8]
	str	x28, [sp]
Lloh50:
	adrp	x2, l_.str.4@PAGE
Lloh51:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_av_log
Lloh52:
	adrp	x8, _EIO@GOTPAGE
Lloh53:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_41:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_42:
	mov	x26, x0
LBB0_43:
	ldr	w1, [x22]
	mov	x0, x20
	bl	_FFMIN
	cbz	w0, LBB0_45
; %bb.44:
	mov	x27, x0
	ldr	x1, [x22, #24]
	mov	x0, x19
	mov	x2, x27
	bl	_memcpy
	ldr	x0, [x22, #24]
	add	x1, x0, w27, sxtw #2
	ldr	w8, [x22]
	sub	w2, w8, w27
	bl	_memmove
	ldr	w8, [x22]
	sub	w8, w8, w27
	str	w8, [x22]
	b	LBB0_49
LBB0_45:
	cbz	w26, LBB0_47
LBB0_46:
Lloh54:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh55:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
Lloh56:
	ldr	w8, [x8]
	cmp	w26, #0
	csel	w27, w26, w8, lt
	b	LBB0_49
LBB0_47:
	ldr	w8, [x22, #8]
	cbz	w8, LBB0_51
; %bb.48:
Lloh57:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh58:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
Lloh59:
	ldr	w27, [x8]
LBB0_49:
	ldur	x8, [x29, #-96]
Lloh60:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh61:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh62:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_56
; %bb.50:
	mov	x0, x27
	ldp	x29, x30, [sp, #240]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #224]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #208]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #192]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #176]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #160]            ; 16-byte Folded Reload
	add	sp, sp, #256
	ret
LBB0_51:
Lloh63:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh64:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh65:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x26, x0
	b	LBB0_46
LBB0_52:
	mov	w8, #1
	str	w8, [x22, #4]
	ldr	w9, [x22, #8]
	cbnz	w9, LBB0_12
; %bb.53:
	str	w8, [x22, #8]
Lloh66:
	adrp	x8, _AV_LOG_VERBOSE@GOTPAGE
Lloh67:
	ldr	x8, [x8, _AV_LOG_VERBOSE@GOTPAGEOFF]
Lloh68:
	ldr	w1, [x8]
Lloh69:
	adrp	x2, l_.str.3@PAGE
Lloh70:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_av_log
	mov	w26, #0
	b	LBB0_43
LBB0_54:
	mov	x27, x0
	str	wzr, [x22]
	str	wzr, [x22, #20]
	b	LBB0_49
LBB0_55:
Lloh71:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh72:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh73:
	ldr	w1, [x8]
Lloh74:
	adrp	x2, l_.str.1@PAGE
Lloh75:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_av_log
Lloh76:
	adrp	x8, _AVERROR_UNKNOWN@GOTPAGE
Lloh77:
	ldr	x8, [x8, _AVERROR_UNKNOWN@GOTPAGEOFF]
Lloh78:
	ldr	w26, [x8]
	b	LBB0_43
LBB0_56:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpAdd	Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.cfi_endproc
                                        ; -- End function
	.comm	_SEC_E_OK,8,3                   ; @SEC_E_OK
	.comm	_SCHANNEL_FREE_BUFFER_SIZE,4,2  ; @SCHANNEL_FREE_BUFFER_SIZE
	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to read from socket\n"

	.comm	_SECBUFFER_DATA,8,3             ; @SECBUFFER_DATA
	.comm	_SECBUFFER_EMPTY,8,3            ; @SECBUFFER_EMPTY
	.comm	_SEC_I_RENEGOTIATE,8,3          ; @SEC_I_RENEGOTIATE
	.comm	_SEC_I_CONTEXT_EXPIRED,8,3      ; @SEC_I_CONTEXT_EXPIRED
	.comm	_SECBUFFER_EXTRA,8,3            ; @SECBUFFER_EXTRA
l_.str.1:                               ; @.str.1
	.asciz	"Cannot renegotiate, encrypted data buffer not empty\n"

	.comm	_AVERROR_UNKNOWN,4,2            ; @AVERROR_UNKNOWN
	.comm	_AV_LOG_VERBOSE,4,2             ; @AV_LOG_VERBOSE
l_.str.2:                               ; @.str.2
	.asciz	"Re-negotiating security context\n"

l_.str.3:                               ; @.str.3
	.asciz	"Server closed the connection\n"

	.comm	_SEC_E_INCOMPLETE_MESSAGE,8,3   ; @SEC_E_INCOMPLETE_MESSAGE
	.comm	_EAGAIN,4,2                     ; @EAGAIN
l_.str.4:                               ; @.str.4
	.asciz	"Unable to decrypt message (error 0x%x)\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_tls_read
.subsections_via_symbols
