	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function php_openssl_create_sni_server_ctx
_php_openssl_create_sni_server_ctx:     ## @php_openssl_create_sni_server_ctx
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	xorl	%eax, %eax
	callq	_SSLv23_server_method
	movl	%eax, %edi
	callq	_SSL_CTX_new
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_SSL_CTX_use_certificate_chain_file
	cmpl	$1, %eax
	jne	LBB0_1
## %bb.2:
	movq	_SSL_FILETYPE_PEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_SSL_CTX_use_PrivateKey_file
	cmpl	$1, %eax
	je	LBB0_5
## %bb.3:
	movq	_E_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	xorl	%edi, %edi
	movq	%r14, %rcx
	jmp	LBB0_4
LBB0_1:
	movq	_E_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%edi, %edi
	movq	%r15, %rcx
LBB0_4:
	callq	_php_error_docref
	movq	%rbx, %rdi
	callq	_SSL_CTX_free
	xorl	%ebx, %ebx
LBB0_5:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_E_WARNING,4,2                  ## @E_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed setting local cert chain file `%s'; check that your cafile/capath settings include details of your certificate and its issuer"

	.comm	_SSL_FILETYPE_PEM,4,2           ## @SSL_FILETYPE_PEM
L_.str.1:                               ## @.str.1
	.asciz	"failed setting private key from file `%s'"

	.no_dead_strip	_php_openssl_create_sni_server_ctx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function php_openssl_create_sni_server_ctx
_php_openssl_create_sni_server_ctx:     ; @php_openssl_create_sni_server_ctx
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x21, x0
	bl	_SSLv23_server_method
	bl	_SSL_CTX_new
	mov	x19, x0
	mov	x1, x21
	bl	_SSL_CTX_use_certificate_chain_file
	cmp	w0, #1
	b.ne	LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _SSL_FILETYPE_PEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSL_FILETYPE_PEM@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_SSL_CTX_use_PrivateKey_file
	cmp	w0, #1
	b.eq	LBB0_5
; %bb.2:
Lloh3:
	adrp	x8, _E_WARNING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _E_WARNING@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str.1@PAGE
Lloh7:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, #0
	mov	x3, x20
	b	LBB0_4
LBB0_3:
Lloh8:
	adrp	x8, _E_WARNING@GOTPAGE
Lloh9:
	ldr	x8, [x8, _E_WARNING@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, #0
	mov	x3, x21
LBB0_4:
	bl	_php_error_docref
	mov	x0, x19
	bl	_SSL_CTX_free
	mov	x19, #0
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_E_WARNING,4,2                  ; @E_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed setting local cert chain file `%s'; check that your cafile/capath settings include details of your certificate and its issuer"

	.comm	_SSL_FILETYPE_PEM,4,2           ; @SSL_FILETYPE_PEM
l_.str.1:                               ; @.str.1
	.asciz	"failed setting private key from file `%s'"

	.no_dead_strip	_php_openssl_create_sni_server_ctx
.subsections_via_symbols
