	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function php_openssl_server_sni_callback
_php_openssl_server_sni_callback:       ## @php_openssl_server_sni_callback
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_TLSEXT_NAMETYPE_host_name@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SSL_get_servername
	movq	_SSL_TLSEXT_ERR_NOACK@GOTPCREL(%rip), %r15
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %r12
	xorl	%eax, %eax
	callq	_php_openssl_get_ssl_stream_data_index
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_SSL_get_ex_data
	movq	(%rax), %r13
	cmpl	$0, (%r13)
	je	LBB0_6
## %bb.2:
	movq	8(%r13), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movl	4(%rax), %esi
	movq	%r12, %rdi
	callq	_php_openssl_matches_wildcard_name
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_7:
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	leaq	1(%rcx), %rbx
	movl	(%r13), %eax
	cmpq	%rax, %rbx
	jae	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	8(%r13), %rax
	movl	12(%rax,%rcx,8), %esi
	movq	%r12, %rdi
	callq	_php_openssl_matches_wildcard_name
	movq	%rbx, %rcx
	testq	%rax, %rax
	je	LBB0_8
LBB0_5:
	movq	8(%r13), %rax
	movl	(%rax,%rbx,8), %esi
	movq	%r14, %rdi
	callq	_SSL_set_SSL_CTX
	movq	_SSL_TLSEXT_ERR_OK@GOTPCREL(%rip), %r15
LBB0_6:
	movl	(%r15), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TLSEXT_NAMETYPE_host_name,4,2  ## @TLSEXT_NAMETYPE_host_name
	.comm	_SSL_TLSEXT_ERR_NOACK,4,2       ## @SSL_TLSEXT_ERR_NOACK
	.comm	_SSL_TLSEXT_ERR_OK,4,2          ## @SSL_TLSEXT_ERR_OK
	.no_dead_strip	_php_openssl_server_sni_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function php_openssl_server_sni_callback
_php_openssl_server_sni_callback:       ; @php_openssl_server_sni_callback
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _TLSEXT_NAMETYPE_host_name@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TLSEXT_NAMETYPE_host_name@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_SSL_get_servername
	cbz	x0, LBB0_8
; %bb.1:
	mov	x20, x0
	bl	_php_openssl_get_ssl_stream_data_index
	mov	x1, x0
	mov	x0, x19
	bl	_SSL_get_ex_data
	ldr	x21, [x0]
	ldr	w8, [x21]
	cbz	w8, LBB0_8
; %bb.2:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_8
; %bb.3:
	ldr	w1, [x8, #4]
	mov	x0, x20
	bl	_php_openssl_matches_wildcard_name
	mov	x23, #0
	cbnz	x0, LBB0_7
; %bb.4:
	mov	w24, #12
Lloh3:
	adrp	x22, _SSL_TLSEXT_ERR_NOACK@GOTPAGE
Lloh4:
	ldr	x22, [x22, _SSL_TLSEXT_ERR_NOACK@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x23, x23, #1
	ldr	w8, [x21]
	cmp	x23, x8
	b.hs	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x21, #8]
	ldr	w1, [x8, x24]
	mov	x0, x20
	bl	_php_openssl_matches_wildcard_name
	add	x24, x24, #8
	cbz	x0, LBB0_5
LBB0_7:
	ldr	x8, [x21, #8]
	lsl	x9, x23, #3
	ldr	w1, [x8, x9]
	mov	x0, x19
	bl	_SSL_set_SSL_CTX
Lloh5:
	adrp	x22, _SSL_TLSEXT_ERR_OK@GOTPAGE
Lloh6:
	ldr	x22, [x22, _SSL_TLSEXT_ERR_OK@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh7:
	adrp	x22, _SSL_TLSEXT_ERR_NOACK@GOTPAGE
Lloh8:
	ldr	x22, [x22, _SSL_TLSEXT_ERR_NOACK@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x22]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_TLSEXT_NAMETYPE_host_name,4,2  ; @TLSEXT_NAMETYPE_host_name
	.comm	_SSL_TLSEXT_ERR_NOACK,4,2       ; @SSL_TLSEXT_ERR_NOACK
	.comm	_SSL_TLSEXT_ERR_OK,4,2          ; @SSL_TLSEXT_ERR_OK
	.no_dead_strip	_php_openssl_server_sni_callback
.subsections_via_symbols
