	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ssl_srv_parse_alpn_ext
_ssl_srv_parse_alpn_ext:                ## @ssl_srv_parse_alpn_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %rax
	movq	(%rax), %r14
	xorl	%eax, %eax
	testq	%r14, %r14
	je	LBB0_18
## %bb.1:
	movq	%rdx, %r13
	movq	%rdi, %rbx
	cmpq	$3, %rdx
	jbe	LBB0_2
## %bb.3:
	movzwl	(%rsi), %eax
	rolw	$8, %ax
	movzwl	%ax, %eax
	leaq	-2(%r13), %rcx
	cmpq	%rcx, %rax
	jne	LBB0_2
## %bb.4:
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.5:
	leaq	2(%rsi), %r15
	addq	%rsi, %r13
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	callq	_strlen
	movq	%rax, %r12
	movq	%r15, %rbx
	movq	%r15, %rax
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=2
	addq	%r15, %rbx
	cmpq	%r13, %rbx
	je	LBB0_14
LBB0_7:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%r13, %rbx
	ja	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=2
	movzbl	(%rbx), %r15d
	testq	%r15, %r15
	je	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=2
	incq	%rbx
	cmpq	%r15, %r12
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=2
	movq	(%r14), %rsi
	movq	%rbx, %rdi
	movq	%r12, %rdx
	movq	%rax, %r14
	callq	_memcmp
	testq	%rax, %rax
	movq	%r14, %rax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_13
	jmp	LBB0_12
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%r14), %rdi
	addq	$8, %r14
	testq	%rdi, %rdi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rax, %r15
	jne	LBB0_6
LBB0_15:
	movq	_MBEDTLS_SSL_ALERT_LEVEL_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MBEDTLS_SSL_ALERT_MSG_NO_APPLICATION_PROTOCOL@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_2:
	movq	_MBEDTLS_SSL_ALERT_LEVEL_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MBEDTLS_SSL_ALERT_MSG_DECODE_ERROR@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %edx
	movq	%rbx, %rdi
LBB0_17:
	callq	_mbedtls_ssl_send_alert_message
	movq	_MBEDTLS_ERR_SSL_BAD_HS_CLIENT_HELLO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_18:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_MBEDTLS_SSL_ALERT_LEVEL_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MBEDTLS_SSL_ALERT_MSG_ILLEGAL_PARAMETER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_17
LBB0_12:
	movq	(%r14), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	xorl	%eax, %eax
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_SSL_ALERT_LEVEL_FATAL,4,2 ## @MBEDTLS_SSL_ALERT_LEVEL_FATAL
	.comm	_MBEDTLS_SSL_ALERT_MSG_DECODE_ERROR,4,2 ## @MBEDTLS_SSL_ALERT_MSG_DECODE_ERROR
	.comm	_MBEDTLS_ERR_SSL_BAD_HS_CLIENT_HELLO,4,2 ## @MBEDTLS_ERR_SSL_BAD_HS_CLIENT_HELLO
	.comm	_MBEDTLS_SSL_ALERT_MSG_ILLEGAL_PARAMETER,4,2 ## @MBEDTLS_SSL_ALERT_MSG_ILLEGAL_PARAMETER
	.comm	_MBEDTLS_SSL_ALERT_MSG_NO_APPLICATION_PROTOCOL,4,2 ## @MBEDTLS_SSL_ALERT_MSG_NO_APPLICATION_PROTOCOL
	.no_dead_strip	_ssl_srv_parse_alpn_ext
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ssl_srv_parse_alpn_ext
_ssl_srv_parse_alpn_ext:                ; @ssl_srv_parse_alpn_ext
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x8, [x0, #8]
	ldr	x22, [x8]
	cbz	x22, LBB0_15
; %bb.1:
	mov	x19, x0
	cmp	x2, #3
	b.ls	LBB0_13
; %bb.2:
	ldrh	w8, [x1]
	rev16	w8, w8
	sub	x9, x2, #2
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.3:
	ldr	x0, [x22]
	cbz	x0, LBB0_12
; %bb.4:
	add	x23, x1, #2
	add	x24, x1, x2
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	bl	_strlen
	mov	x20, x0
	mov	x21, x23
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x21, x21, x25
	cmp	x21, x24
	b.eq	LBB0_11
LBB0_7:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	x21, x24
	b.hi	LBB0_17
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldrb	w25, [x21], #1
	cbz	x25, LBB0_17
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	cmp	x20, x25
	b.ne	LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	x1, [x22]
	mov	x0, x21
	mov	x2, x20
	bl	_memcmp
	cbnz	x0, LBB0_6
	b	LBB0_18
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x22, #8]!
	cbnz	x0, LBB0_5
LBB0_12:
Lloh0:
	adrp	x8, _MBEDTLS_SSL_ALERT_LEVEL_FATAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MBEDTLS_SSL_ALERT_LEVEL_FATAL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _MBEDTLS_SSL_ALERT_MSG_NO_APPLICATION_PROTOCOL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MBEDTLS_SSL_ALERT_MSG_NO_APPLICATION_PROTOCOL@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh5:
	adrp	x8, _MBEDTLS_SSL_ALERT_LEVEL_FATAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MBEDTLS_SSL_ALERT_LEVEL_FATAL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _MBEDTLS_SSL_ALERT_MSG_DECODE_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MBEDTLS_SSL_ALERT_MSG_DECODE_ERROR@GOTPAGEOFF]
LBB0_14:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_mbedtls_ssl_send_alert_message
Lloh10:
	adrp	x8, _MBEDTLS_ERR_SSL_BAD_HS_CLIENT_HELLO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MBEDTLS_ERR_SSL_BAD_HS_CLIENT_HELLO@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	b	LBB0_16
LBB0_15:
	mov	w0, #0
LBB0_16:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_17:
Lloh13:
	adrp	x8, _MBEDTLS_SSL_ALERT_LEVEL_FATAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MBEDTLS_SSL_ALERT_LEVEL_FATAL@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x8, _MBEDTLS_SSL_ALERT_MSG_ILLEGAL_PARAMETER@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MBEDTLS_SSL_ALERT_MSG_ILLEGAL_PARAMETER@GOTPAGEOFF]
	b	LBB0_14
LBB0_18:
	ldr	x8, [x22]
	str	x8, [x19]
	b	LBB0_16
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_SSL_ALERT_LEVEL_FATAL,4,2 ; @MBEDTLS_SSL_ALERT_LEVEL_FATAL
	.comm	_MBEDTLS_SSL_ALERT_MSG_DECODE_ERROR,4,2 ; @MBEDTLS_SSL_ALERT_MSG_DECODE_ERROR
	.comm	_MBEDTLS_ERR_SSL_BAD_HS_CLIENT_HELLO,4,2 ; @MBEDTLS_ERR_SSL_BAD_HS_CLIENT_HELLO
	.comm	_MBEDTLS_SSL_ALERT_MSG_ILLEGAL_PARAMETER,4,2 ; @MBEDTLS_SSL_ALERT_MSG_ILLEGAL_PARAMETER
	.comm	_MBEDTLS_SSL_ALERT_MSG_NO_APPLICATION_PROTOCOL,4,2 ; @MBEDTLS_SSL_ALERT_MSG_NO_APPLICATION_PROTOCOL
	.no_dead_strip	_ssl_srv_parse_alpn_ext
.subsections_via_symbols
