	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tls_client_handshake
_tls_client_handshake:                  ## @tls_client_handshake
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	movq	_SECBUFFER_EMPTY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %r15
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_init_sec_buffer
	leaq	-44(%rbp), %r12
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_init_sec_buffer_desc
	movq	_ISC_REQ_SEQUENCE_DETECT@GOTPCREL(%rip), %rax
	movq	_ISC_REQ_REPLAY_DETECT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_ISC_REQ_CONFIDENTIALITY@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_ISC_REQ_ALLOCATE_MEMORY@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_ISC_REQ_STREAM@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%rbx)
	leaq	16(%rbx), %rdi
	movl	24(%rbx), %edx
	leaq	4(%rbx), %r15
	leaq	12(%rbx), %r10
	leaq	8(%rbx), %rax
	xorl	%esi, %esi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	%r10
	pushq	%r12
	pushq	%r15
	pushq	$0
	pushq	$0
	callq	_InitializeSecurityContext
	addq	$48, %rsp
	movq	_SEC_I_CONTINUE_NEEDED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movl	20(%rbx), %edi
	movl	-40(%rbp), %edx
	movl	-36(%rbp), %esi
	callq	_ffurl_write
	movl	%eax, %ebx
	movl	-36(%rbp), %edi
	callq	_FreeContextBuffer
	testl	%ebx, %ebx
	js	LBB0_4
## %bb.3:
	cmpl	-40(%rbp), %ebx
	jne	LBB0_4
## %bb.7:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_tls_client_handshake_loop
	movl	%eax, %ebx
	jmp	LBB0_6
LBB0_1:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_av_log
	movq	_AVERROR_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_5
LBB0_4:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %ebx
LBB0_5:
	movq	%r15, %rdi
	callq	_DeleteSecurityContext
LBB0_6:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SECBUFFER_EMPTY,4,2            ## @SECBUFFER_EMPTY
	.comm	_ISC_REQ_SEQUENCE_DETECT,4,2    ## @ISC_REQ_SEQUENCE_DETECT
	.comm	_ISC_REQ_REPLAY_DETECT,4,2      ## @ISC_REQ_REPLAY_DETECT
	.comm	_ISC_REQ_CONFIDENTIALITY,4,2    ## @ISC_REQ_CONFIDENTIALITY
	.comm	_ISC_REQ_ALLOCATE_MEMORY,4,2    ## @ISC_REQ_ALLOCATE_MEMORY
	.comm	_ISC_REQ_STREAM,4,2             ## @ISC_REQ_STREAM
	.comm	_SEC_I_CONTINUE_NEEDED,8,3      ## @SEC_I_CONTINUE_NEEDED
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to create initial security context (0x%lx)\n"

	.comm	_AVERROR_UNKNOWN,4,2            ## @AVERROR_UNKNOWN
L_.str.1:                               ## @.str.1
	.asciz	"Failed to send initial handshake data\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tls_client_handshake
_tls_client_handshake:                  ; @tls_client_handshake
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x0
	ldr	x21, [x0]
Lloh0:
	adrp	x8, _SECBUFFER_EMPTY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SECBUFFER_EMPTY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x0, sp, #40
	mov	x2, #0
	mov	w3, #0
	bl	_init_sec_buffer
	add	x22, sp, #36
	add	x0, sp, #36
	add	x1, sp, #40
	mov	w2, #1
	bl	_init_sec_buffer_desc
Lloh3:
	adrp	x8, _ISC_REQ_SEQUENCE_DETECT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ISC_REQ_SEQUENCE_DETECT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _ISC_REQ_REPLAY_DETECT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ISC_REQ_REPLAY_DETECT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _ISC_REQ_CONFIDENTIALITY@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ISC_REQ_CONFIDENTIALITY@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _ISC_REQ_ALLOCATE_MEMORY@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ISC_REQ_ALLOCATE_MEMORY@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh15:
	adrp	x9, _ISC_REQ_STREAM@GOTPAGE
Lloh16:
	ldr	x9, [x9, _ISC_REQ_STREAM@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w3, w8, w9
	str	w3, [x21]
	add	x0, x21, #16
	ldr	w2, [x21, #24]
	add	x20, x21, #4
	add	x8, x21, #12
	add	x9, x21, #8
	stp	x8, x9, [sp, #16]
	stp	x20, x22, [sp]
	mov	x1, #0
	mov	w4, #0
	mov	w5, #0
	mov	x6, #0
	mov	w7, #0
	bl	_InitializeSecurityContext
Lloh18:
	adrp	x8, _SEC_I_CONTINUE_NEEDED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SEC_I_CONTINUE_NEEDED@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.1:
	ldr	w0, [x21, #20]
	ldp	w2, w1, [sp, #40]
	bl	_ffurl_write
	mov	x21, x0
	ldr	w0, [sp, #44]
	bl	_FreeContextBuffer
	tbnz	w21, #31, LBB0_5
; %bb.2:
	ldr	w8, [sp, #40]
	cmp	w21, w8
	b.ne	LBB0_5
; %bb.3:
	mov	x0, x19
	mov	w1, #1
	bl	_tls_client_handshake_loop
	mov	x19, x0
	b	LBB0_7
LBB0_4:
Lloh21:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	str	x0, [sp]
Lloh24:
	adrp	x2, l_.str@PAGE
Lloh25:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
Lloh26:
	adrp	x8, _AVERROR_UNKNOWN@GOTPAGE
Lloh27:
	ldr	x8, [x8, _AVERROR_UNKNOWN@GOTPAGEOFF]
Lloh28:
	ldr	w19, [x8]
	b	LBB0_6
LBB0_5:
Lloh29:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh30:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
Lloh32:
	adrp	x2, l_.str.1@PAGE
Lloh33:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_av_log
Lloh34:
	adrp	x8, _EIO@GOTPAGE
Lloh35:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x19, x0
LBB0_6:
	mov	x0, x20
	bl	_DeleteSecurityContext
LBB0_7:
	mov	x0, x19
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_SECBUFFER_EMPTY,4,2            ; @SECBUFFER_EMPTY
	.comm	_ISC_REQ_SEQUENCE_DETECT,4,2    ; @ISC_REQ_SEQUENCE_DETECT
	.comm	_ISC_REQ_REPLAY_DETECT,4,2      ; @ISC_REQ_REPLAY_DETECT
	.comm	_ISC_REQ_CONFIDENTIALITY,4,2    ; @ISC_REQ_CONFIDENTIALITY
	.comm	_ISC_REQ_ALLOCATE_MEMORY,4,2    ; @ISC_REQ_ALLOCATE_MEMORY
	.comm	_ISC_REQ_STREAM,4,2             ; @ISC_REQ_STREAM
	.comm	_SEC_I_CONTINUE_NEEDED,8,3      ; @SEC_I_CONTINUE_NEEDED
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to create initial security context (0x%lx)\n"

	.comm	_AVERROR_UNKNOWN,4,2            ; @AVERROR_UNKNOWN
l_.str.1:                               ; @.str.1
	.asciz	"Failed to send initial handshake data\n"

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