	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alpn_select_cb
_alpn_select_cb:                        ## @alpn_select_cb
	.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	_SSL_TLSEXT_ERR_NOACK@GOTPCREL(%rip), %rax
	testl	%r8d, %r8d
	je	LBB0_8
## %bb.1:
	movq	%rcx, %rbx
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%r8d, %r14d
	addq	%rcx, %r14
	movq	_servalpn@GOTPCREL(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rbx
	cmpq	%r14, %r13
	jae	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx), %r12d
	leaq	(%rbx,%r12), %r13
	incq	%r13
	cmpq	%r13, %r14
	jb	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %edi
	callq	_strlen
	cmpl	%r12d, %eax
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, (%rax)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movb	%r12b, (%rax)
	movq	_SSL_TLSEXT_ERR_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	movq	_SSL_TLSEXT_ERR_NOACK@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL_TLSEXT_ERR_NOACK,4,2       ## @SSL_TLSEXT_ERR_NOACK
	.comm	_servalpn,4,2                   ## @servalpn
	.comm	_SSL_TLSEXT_ERR_OK,4,2          ## @SSL_TLSEXT_ERR_OK
	.no_dead_strip	_alpn_select_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alpn_select_cb
_alpn_select_cb:                        ; @alpn_select_cb
	.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
	cbz	w4, LBB0_7
; %bb.1:
	mov	x21, x3
	mov	x19, x2
	mov	x20, x1
	add	x24, x3, w4, uxtw
Lloh0:
	adrp	x23, _SSL_TLSEXT_ERR_NOACK@GOTPAGE
Lloh1:
	ldr	x23, [x23, _SSL_TLSEXT_ERR_NOACK@GOTPAGEOFF]
Lloh2:
	adrp	x25, _servalpn@GOTPAGE
Lloh3:
	ldr	x25, [x25, _servalpn@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x21, x26
	cmp	x26, x24
	b.hs	LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w22, [x21], #1
	add	x26, x21, x22
	cmp	x24, x26
	b.lo	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x25]
	bl	_strlen
	cmp	w0, w22
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x25]
	mov	x0, x21
	mov	x2, x22
	bl	_memcmp
	cbnz	x0, LBB0_2
; %bb.6:
	str	x21, [x20]
	strb	w22, [x19]
Lloh4:
	adrp	x23, _SSL_TLSEXT_ERR_OK@GOTPAGE
Lloh5:
	ldr	x23, [x23, _SSL_TLSEXT_ERR_OK@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh6:
	adrp	x23, _SSL_TLSEXT_ERR_NOACK@GOTPAGE
Lloh7:
	ldr	x23, [x23, _SSL_TLSEXT_ERR_NOACK@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x23]
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL_TLSEXT_ERR_NOACK,4,2       ; @SSL_TLSEXT_ERR_NOACK
	.comm	_servalpn,4,2                   ; @servalpn
	.comm	_SSL_TLSEXT_ERR_OK,4,2          ; @SSL_TLSEXT_ERR_OK
	.no_dead_strip	_alpn_select_cb
.subsections_via_symbols
