	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function php_openssl_set_server_ecdh_curve
_php_openssl_set_server_ecdh_curve:     ## @php_openssl_set_server_ecdh_curve
	.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
	callq	_PHP_STREAM_CONTEXT
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	movl	%eax, %edi
	callq	_php_stream_context_get_option
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_try_convert_to_string
	movq	_FAILURE@GOTPCREL(%rip), %r15
	testl	%eax, %eax
	je	LBB0_8
## %bb.5:
	movq	%rbx, %rdi
	callq	_Z_STRVAL_P
	movl	%eax, %edi
	callq	_OBJ_sn2nid
	movl	%eax, %edi
	movq	_NID_undef@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edi
	jne	LBB0_2
## %bb.6:
	movq	_E_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	xorl	%edi, %edi
	callq	_php_error_docref
	jmp	LBB0_8
LBB0_1:
	movq	_NID_X9_62_prime256v1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
LBB0_2:
	callq	_EC_KEY_new_by_curve_name
	testq	%rax, %rax
	je	LBB0_3
## %bb.7:
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_SSL_CTX_set_tmp_ecdh
	movq	%rbx, %rdi
	callq	_EC_KEY_free
	movq	_SUCCESS@GOTPCREL(%rip), %r15
	jmp	LBB0_8
LBB0_3:
	movq	_E_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	xorl	%edi, %edi
	callq	_php_error_docref
	movq	_FAILURE@GOTPCREL(%rip), %r15
LBB0_8:
	movl	(%r15), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ssl"

L_.str.1:                               ## @.str.1
	.asciz	"ecdh_curve"

	.comm	_NID_X9_62_prime256v1,4,2       ## @NID_X9_62_prime256v1
	.comm	_FAILURE,4,2                    ## @FAILURE
	.comm	_NID_undef,4,2                  ## @NID_undef
	.comm	_E_WARNING,4,2                  ## @E_WARNING
L_.str.2:                               ## @.str.2
	.asciz	"invalid ecdh_curve specified"

L_.str.3:                               ## @.str.3
	.asciz	"failed generating ECDH curve"

	.comm	_SUCCESS,4,2                    ## @SUCCESS
	.no_dead_strip	_php_openssl_set_server_ecdh_curve
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function php_openssl_set_server_ecdh_curve
_php_openssl_set_server_ecdh_curve:     ; @php_openssl_set_server_ecdh_curve
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	bl	_PHP_STREAM_CONTEXT
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_php_stream_context_get_option
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	bl	_try_convert_to_string
	cbz	w0, LBB0_9
; %bb.2:
	mov	x0, x20
	bl	_Z_STRVAL_P
	bl	_OBJ_sn2nid
Lloh4:
	adrp	x8, _NID_undef@GOTPAGE
Lloh5:
	ldr	x8, [x8, _NID_undef@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_5
; %bb.3:
Lloh7:
	adrp	x8, _E_WARNING@GOTPAGE
Lloh8:
	ldr	x8, [x8, _E_WARNING@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x2, l_.str.2@PAGE
Lloh11:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, #0
	b	LBB0_8
LBB0_4:
Lloh12:
	adrp	x8, _NID_X9_62_prime256v1@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NID_X9_62_prime256v1@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
LBB0_5:
	bl	_EC_KEY_new_by_curve_name
	cbz	x0, LBB0_7
; %bb.6:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_SSL_CTX_set_tmp_ecdh
	mov	x0, x20
	bl	_EC_KEY_free
Lloh15:
	adrp	x8, _SUCCESS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SUCCESS@GOTPAGEOFF]
	b	LBB0_10
LBB0_7:
Lloh17:
	adrp	x8, _E_WARNING@GOTPAGE
Lloh18:
	ldr	x8, [x8, _E_WARNING@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x2, l_.str.3@PAGE
Lloh21:
	add	x2, x2, l_.str.3@PAGEOFF
LBB0_8:
	bl	_php_error_docref
LBB0_9:
Lloh22:
	adrp	x8, _FAILURE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ssl"

l_.str.1:                               ; @.str.1
	.asciz	"ecdh_curve"

	.comm	_NID_X9_62_prime256v1,4,2       ; @NID_X9_62_prime256v1
	.comm	_FAILURE,4,2                    ; @FAILURE
	.comm	_NID_undef,4,2                  ; @NID_undef
	.comm	_E_WARNING,4,2                  ; @E_WARNING
l_.str.2:                               ; @.str.2
	.asciz	"invalid ecdh_curve specified"

l_.str.3:                               ; @.str.3
	.asciz	"failed generating ECDH curve"

	.comm	_SUCCESS,4,2                    ; @SUCCESS
	.no_dead_strip	_php_openssl_set_server_ecdh_curve
.subsections_via_symbols
