	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssl_set_client_hello_version   ## -- Begin function ssl_set_client_hello_version
	.p2align	4, 0x90
_ssl_set_client_hello_version:          ## @ssl_set_client_hello_version
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_SSL_IS_FIRST_HANDSHAKE
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	leaq	-16(%rbp), %rsi
	leaq	-12(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_ssl_get_min_max_version
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movl	-12(%rbp), %eax
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_SSL_IS_DTLS
	movl	-12(%rbp), %ecx
	movq	_TLS1_2_VERSION@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpl	%edx, %ecx
	cmovll	%ecx, %edx
	testl	%eax, %eax
	cmovnel	%ecx, %edx
	movl	%edx, 4(%rbx)
LBB0_3:
	xorl	%eax, %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TLS1_2_VERSION,4,2             ## @TLS1_2_VERSION
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssl_set_client_hello_version   ; -- Begin function ssl_set_client_hello_version
	.p2align	2
_ssl_set_client_hello_version:          ; @ssl_set_client_hello_version
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	bl	_SSL_IS_FIRST_HANDSHAKE
	cbz	w0, LBB0_3
; %bb.1:
	add	x1, sp, #12
	add	x2, sp, #8
	mov	x0, x19
	mov	x3, #0
	bl	_ssl_get_min_max_version
	cbnz	w0, LBB0_3
; %bb.2:
	ldr	w8, [sp, #8]
	str	w8, [x19]
	mov	x0, x19
	bl	_SSL_IS_DTLS
	mov	x8, x0
	mov	w0, #0
	ldr	w9, [sp, #8]
Lloh0:
	adrp	x10, _TLS1_2_VERSION@GOTPAGE
Lloh1:
	ldr	x10, [x10, _TLS1_2_VERSION@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	cmp	w9, w10
	csel	w10, w9, w10, lt
	cmp	w8, #0
	csel	w8, w10, w9, eq
	str	w8, [x19, #4]
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TLS1_2_VERSION,4,2             ; @TLS1_2_VERSION
.subsections_via_symbols
