	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ssl_cli_parse_extended_ms_ext
_ssl_cli_parse_extended_ms_ext:         ## @ssl_cli_parse_extended_ms_ext
	.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
	movq	16(%rdi), %rax
	movq	(%rax), %rax
	movq	_MBEDTLS_SSL_EXTENDED_MS_DISABLED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.1:
	testq	%rdx, %rdx
	jne	LBB0_3
## %bb.2:
	movq	_MBEDTLS_SSL_MINOR_VERSION_0@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, (%rbx)
	je	LBB0_3
## %bb.4:
	movq	_MBEDTLS_SSL_EXTENDED_MS_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%rbx), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_MBEDTLS_SSL_DEBUG_MSG
	movq	_MBEDTLS_SSL_ALERT_LEVEL_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MBEDTLS_SSL_ALERT_MSG_HANDSHAKE_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_mbedtls_ssl_send_alert_message
	movq	_MBEDTLS_ERR_SSL_BAD_HS_SERVER_HELLO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_SSL_EXTENDED_MS_DISABLED,8,3 ## @MBEDTLS_SSL_EXTENDED_MS_DISABLED
	.comm	_MBEDTLS_SSL_MINOR_VERSION_0,8,3 ## @MBEDTLS_SSL_MINOR_VERSION_0
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"non-matching extended master secret extension"

	.comm	_MBEDTLS_SSL_ALERT_LEVEL_FATAL,4,2 ## @MBEDTLS_SSL_ALERT_LEVEL_FATAL
	.comm	_MBEDTLS_SSL_ALERT_MSG_HANDSHAKE_FAILURE,4,2 ## @MBEDTLS_SSL_ALERT_MSG_HANDSHAKE_FAILURE
	.comm	_MBEDTLS_ERR_SSL_BAD_HS_SERVER_HELLO,4,2 ## @MBEDTLS_ERR_SSL_BAD_HS_SERVER_HELLO
	.comm	_MBEDTLS_SSL_EXTENDED_MS_ENABLED,4,2 ## @MBEDTLS_SSL_EXTENDED_MS_ENABLED
	.no_dead_strip	_ssl_cli_parse_extended_ms_ext
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ssl_cli_parse_extended_ms_ext
_ssl_cli_parse_extended_ms_ext:         ; @ssl_cli_parse_extended_ms_ext
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _MBEDTLS_SSL_EXTENDED_MS_DISABLED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MBEDTLS_SSL_EXTENDED_MS_DISABLED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.1:
	cbnz	x2, LBB0_4
; %bb.2:
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _MBEDTLS_SSL_MINOR_VERSION_0@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MBEDTLS_SSL_MINOR_VERSION_0@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.3:
	mov	w0, #0
Lloh6:
	adrp	x8, _MBEDTLS_SSL_EXTENDED_MS_ENABLED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MBEDTLS_SSL_EXTENDED_MS_ENABLED@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	x9, [x19, #8]
	str	w8, [x9]
	b	LBB0_5
LBB0_4:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_MBEDTLS_SSL_DEBUG_MSG
Lloh11:
	adrp	x8, _MBEDTLS_SSL_ALERT_LEVEL_FATAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MBEDTLS_SSL_ALERT_LEVEL_FATAL@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _MBEDTLS_SSL_ALERT_MSG_HANDSHAKE_FAILURE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MBEDTLS_SSL_ALERT_MSG_HANDSHAKE_FAILURE@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_mbedtls_ssl_send_alert_message
Lloh17:
	adrp	x8, _MBEDTLS_ERR_SSL_BAD_HS_SERVER_HELLO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MBEDTLS_ERR_SSL_BAD_HS_SERVER_HELLO@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_SSL_EXTENDED_MS_DISABLED,8,3 ; @MBEDTLS_SSL_EXTENDED_MS_DISABLED
	.comm	_MBEDTLS_SSL_MINOR_VERSION_0,8,3 ; @MBEDTLS_SSL_MINOR_VERSION_0
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"non-matching extended master secret extension"

	.comm	_MBEDTLS_SSL_ALERT_LEVEL_FATAL,4,2 ; @MBEDTLS_SSL_ALERT_LEVEL_FATAL
	.comm	_MBEDTLS_SSL_ALERT_MSG_HANDSHAKE_FAILURE,4,2 ; @MBEDTLS_SSL_ALERT_MSG_HANDSHAKE_FAILURE
	.comm	_MBEDTLS_ERR_SSL_BAD_HS_SERVER_HELLO,4,2 ; @MBEDTLS_ERR_SSL_BAD_HS_SERVER_HELLO
	.comm	_MBEDTLS_SSL_EXTENDED_MS_ENABLED,4,2 ; @MBEDTLS_SSL_EXTENDED_MS_ENABLED
	.no_dead_strip	_ssl_cli_parse_extended_ms_ext
.subsections_via_symbols
