	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_for_downgrade
_check_for_downgrade:                   ## @check_for_downgrade
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	_TLS1_2_VERSION@GOTPCREL(%rip), %r12
	cmpl	%esi, (%r12)
	jne	LBB0_3
## %bb.1:
	movq	_TLS1_3_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_ssl_version_supported
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_DOWNGRADE_TO_1_2@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_3:
	movq	%r15, %rdi
	callq	_SSL_IS_DTLS
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	movl	(%r12), %esi
	cmpl	%ebx, %esi
	jle	LBB0_7
## %bb.5:
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_ssl_version_supported
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_DOWNGRADE_TO_1_1@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	movq	_DOWNGRADE_NONE@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	movl	%eax, (%r14)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TLS1_2_VERSION,4,2             ## @TLS1_2_VERSION
	.comm	_TLS1_3_VERSION,4,2             ## @TLS1_3_VERSION
	.comm	_DOWNGRADE_TO_1_2,4,2           ## @DOWNGRADE_TO_1_2
	.comm	_DOWNGRADE_TO_1_1,4,2           ## @DOWNGRADE_TO_1_1
	.comm	_DOWNGRADE_NONE,4,2             ## @DOWNGRADE_NONE
	.no_dead_strip	_check_for_downgrade
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_for_downgrade
_check_for_downgrade:                   ; @check_for_downgrade
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _TLS1_2_VERSION@GOTPAGE
Lloh1:
	ldr	x22, [x22, _TLS1_2_VERSION@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, w1
	b.ne	LBB0_3
; %bb.1:
Lloh2:
	adrp	x8, _TLS1_3_VERSION@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TLS1_3_VERSION@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, #0
	bl	_ssl_version_supported
	cbz	x0, LBB0_3
; %bb.2:
Lloh5:
	adrp	x8, _DOWNGRADE_TO_1_2@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DOWNGRADE_TO_1_2@GOTPAGEOFF]
	b	LBB0_8
LBB0_3:
	mov	x0, x20
	bl	_SSL_IS_DTLS
	cbnz	w0, LBB0_7
; %bb.4:
	ldr	w1, [x22]
	cmp	w1, w21
	b.le	LBB0_7
; %bb.5:
	mov	x0, x20
	mov	x2, #0
	bl	_ssl_version_supported
	cbz	x0, LBB0_7
; %bb.6:
Lloh7:
	adrp	x8, _DOWNGRADE_TO_1_1@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DOWNGRADE_TO_1_1@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh9:
	adrp	x8, _DOWNGRADE_NONE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DOWNGRADE_NONE@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	str	w8, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_TLS1_2_VERSION,4,2             ; @TLS1_2_VERSION
	.comm	_TLS1_3_VERSION,4,2             ; @TLS1_3_VERSION
	.comm	_DOWNGRADE_TO_1_2,4,2           ; @DOWNGRADE_TO_1_2
	.comm	_DOWNGRADE_TO_1_1,4,2           ; @DOWNGRADE_TO_1_1
	.comm	_DOWNGRADE_NONE,4,2             ; @DOWNGRADE_NONE
	.no_dead_strip	_check_for_downgrade
.subsections_via_symbols
