	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SSL_select_next_proto          ## -- Begin function SSL_select_next_proto
	.p2align	4, 0x90
_SSL_select_next_proto:                 ## @SSL_select_next_proto
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movq	_OPENSSL_NPN_NO_OVERLAP@GOTPCREL(%rip), %rax
	testl	%ecx, %ecx
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_13
## %bb.1:
	movl	%r9d, %r12d
	xorl	%eax, %eax
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	-48(%rbp), %esi                 ## 4-byte Reload
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movzbl	(%rdx,%rax), %eax
	addl	%esi, %eax
	cmpl	%ecx, %eax
	jae	LBB0_12
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movl	%eax, %eax
	testl	%r12d, %r12d
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%rdx,%rax), %r14
	leal	1(%rax), %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	addq	%rdx, %rax
	incq	%rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=2
	movzbl	(%rbx,%r15), %ecx
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=2
	movzbl	%cl, %eax
	addl	%eax, %r13d
	cmpl	%r12d, %r13d
	jae	LBB0_10
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%r14), %eax
	movl	%r13d, %r15d
	movzbl	(%rbx,%r15), %ecx
	incl	%r13d
	cmpb	%cl, %al
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movl	%r13d, %esi
	addq	%rbx, %rsi
	movzbl	%al, %edx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_8
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	leal	1(%rax), %esi
	jmp	LBB0_11
LBB0_7:
	movq	%r14, %rbx
	movq	_OPENSSL_NPN_NEGOTIATED@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %eax
	leaq	1(%rbx), %rcx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%rcx, (%rdx)
	movb	(%rbx), %cl
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movb	%cl, (%rdx)
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_OPENSSL_NPN_NO_OVERLAP@GOTPCREL(%rip), %rax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_OPENSSL_NPN_UNSUPPORTED,4,2    ## @OPENSSL_NPN_UNSUPPORTED
	.comm	_OPENSSL_NPN_NEGOTIATED,4,2     ## @OPENSSL_NPN_NEGOTIATED
	.comm	_OPENSSL_NPN_NO_OVERLAP,4,2     ## @OPENSSL_NPN_NO_OVERLAP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SSL_select_next_proto          ; -- Begin function SSL_select_next_proto
	.p2align	2
_SSL_select_next_proto:                 ; @SSL_select_next_proto
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x4
	mov	x9, x0
	cbz	w3, LBB0_11
; %bb.1:
	mov	x22, x5
	mov	x23, x3
	mov	x24, x2
	stp	x9, x1, [sp]                    ; 16-byte Folded Spill
	mov	w8, #0
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w27, w28, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w8, [x24, x28]
	add	w8, w27, w8
	cmp	w8, w23
	b.hs	LBB0_13
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	mov	w28, w8
	cbz	w22, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #0
	add	x19, x24, x28
	add	w27, w28, #1
	add	x25, x24, x27
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=2
	ldrb	w9, [x20, x26]
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	w8, w21, w9
	cmp	w8, w22
	b.hs	LBB0_3
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w2, [x19]
	mov	w26, w8
	ldrb	w9, [x20, x26]
	add	w21, w8, #1
	cmp	w2, w9
	b.ne	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	add	x1, x20, w21, uxtw
	mov	x0, x25
	bl	_memcmp
	cbnz	x0, LBB0_6
; %bb.10:
	mov	x20, x19
	ldp	x9, x1, [sp]                    ; 16-byte Folded Reload
Lloh0:
	adrp	x8, _OPENSSL_NPN_NEGOTIATED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OPENSSL_NPN_NEGOTIATED@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh2:
	adrp	x8, _OPENSSL_NPN_NO_OVERLAP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _OPENSSL_NPN_NO_OVERLAP@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x8]
	add	x8, x20, #1
	str	x8, [x9]
	ldrb	w8, [x20]
	strb	w8, [x1]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_13:
Lloh4:
	adrp	x8, _OPENSSL_NPN_NO_OVERLAP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _OPENSSL_NPN_NO_OVERLAP@GOTPAGEOFF]
	ldp	x9, x1, [sp]                    ; 16-byte Folded Reload
	b	LBB0_12
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_OPENSSL_NPN_UNSUPPORTED,4,2    ; @OPENSSL_NPN_UNSUPPORTED
	.comm	_OPENSSL_NPN_NEGOTIATED,4,2     ; @OPENSSL_NPN_NEGOTIATED
	.comm	_OPENSSL_NPN_NO_OVERLAP,4,2     ; @OPENSSL_NPN_NO_OVERLAP
.subsections_via_symbols
