	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function php_openssl_set_server_dh_param
_php_openssl_set_server_dh_param:       ## @php_openssl_set_server_dh_param
	.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	%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
	movq	_SUCCESS@GOTPCREL(%rip), %r13
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_try_convert_to_string
	movq	_FAILURE@GOTPCREL(%rip), %r12
	testl	%eax, %eax
	je	LBB0_11
## %bb.2:
	movq	%rbx, %rdi
	callq	_Z_STRVAL_P
	movl	%eax, %ebx
	movq	_PKCS7_BINARY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PHP_OPENSSL_BIO_MODE_R
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_BIO_new_file
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_PEM_read_bio_DHparams
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_BIO_free
	testq	%r15, %r15
	je	LBB0_6
## %bb.7:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_SSL_CTX_set_tmp_dh
	testq	%rax, %rax
	js	LBB0_8
## %bb.9:
	movq	%r15, %rdi
	callq	_DH_free
LBB0_10:
	movq	%r13, %r12
	jmp	LBB0_11
LBB0_3:
	movq	_E_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_4
LBB0_6:
	movq	_E_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
LBB0_4:
	xorl	%edi, %edi
	callq	_php_error_docref
	jmp	LBB0_11
LBB0_8:
	movq	_E_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	xorl	%edi, %edi
	callq	_php_error_docref
	movq	%r15, %rdi
	callq	_DH_free
LBB0_11:
	movl	(%r12), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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	"dh_param"

	.comm	_SUCCESS,4,2                    ## @SUCCESS
	.comm	_FAILURE,4,2                    ## @FAILURE
	.comm	_PKCS7_BINARY,4,2               ## @PKCS7_BINARY
	.comm	_E_WARNING,4,2                  ## @E_WARNING
L_.str.2:                               ## @.str.2
	.asciz	"invalid dh_param"

L_.str.3:                               ## @.str.3
	.asciz	"failed reading DH params"

L_.str.4:                               ## @.str.4
	.asciz	"failed assigning DH params"

	.no_dead_strip	_php_openssl_set_server_dh_param
.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_dh_param
_php_openssl_set_server_dh_param:       ; @php_openssl_set_server_dh_param
	.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	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_6
; %bb.1:
	mov	x20, x0
	bl	_try_convert_to_string
	cbz	w0, LBB0_11
; %bb.2:
	mov	x0, x20
	bl	_Z_STRVAL_P
	mov	x20, x0
Lloh4:
	adrp	x8, _PKCS7_BINARY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PKCS7_BINARY@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_PHP_OPENSSL_BIO_MODE_R
	mov	x1, x0
	mov	x0, x20
	bl	_BIO_new_file
	cbz	x0, LBB0_7
; %bb.3:
	mov	x21, x0
	mov	x1, #0
	mov	x2, #0
	mov	x3, #0
	bl	_PEM_read_bio_DHparams
	mov	x20, x0
	mov	x0, x21
	bl	_BIO_free
	cbz	x20, LBB0_8
; %bb.4:
	mov	x0, x19
	mov	x1, x20
	bl	_SSL_CTX_set_tmp_dh
	tbnz	x0, #63, LBB0_10
; %bb.5:
	mov	x0, x20
	bl	_DH_free
LBB0_6:
Lloh7:
	adrp	x8, _SUCCESS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SUCCESS@GOTPAGEOFF]
	b	LBB0_12
LBB0_7:
Lloh9:
	adrp	x8, _E_WARNING@GOTPAGE
Lloh10:
	ldr	x8, [x8, _E_WARNING@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x2, l_.str.2@PAGE
Lloh13:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh14:
	adrp	x8, _E_WARNING@GOTPAGE
Lloh15:
	ldr	x8, [x8, _E_WARNING@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x2, l_.str.3@PAGE
Lloh18:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, #0
LBB0_9:
	bl	_php_error_docref
	b	LBB0_11
LBB0_10:
Lloh19:
	adrp	x8, _E_WARNING@GOTPAGE
Lloh20:
	ldr	x8, [x8, _E_WARNING@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x2, l_.str.4@PAGE
Lloh23:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, #0
	bl	_php_error_docref
	mov	x0, x20
	bl	_DH_free
LBB0_11:
Lloh24:
	adrp	x8, _FAILURE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _FAILURE@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x8]
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ssl"

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

	.comm	_SUCCESS,4,2                    ; @SUCCESS
	.comm	_FAILURE,4,2                    ; @FAILURE
	.comm	_PKCS7_BINARY,4,2               ; @PKCS7_BINARY
	.comm	_E_WARNING,4,2                  ; @E_WARNING
l_.str.2:                               ; @.str.2
	.asciz	"invalid dh_param"

l_.str.3:                               ; @.str.3
	.asciz	"failed reading DH params"

l_.str.4:                               ; @.str.4
	.asciz	"failed assigning DH params"

	.no_dead_strip	_php_openssl_set_server_dh_param
.subsections_via_symbols
