	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function php_openssl_is_private_key
_php_openssl_is_private_key:            ## @php_openssl_is_private_key
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_assert
	movq	%rbx, %rdi
	callq	_EVP_PKEY_id
                                        ## kill: def $eax killed $eax def $rax
	leal	-131(%rax), %ecx
	cmpl	$5, %ecx
	jae	LBB0_6
## %bb.1:
	movq	%rbx, %rdi
	callq	_EVP_PKEY_get0_DSA
	movl	$1, %r14d
	testq	%rax, %rax
	je	LBB0_17
## %bb.2:
	movq	%rax, %rbx
	leaq	-24(%rbp), %rsi
	leaq	-32(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	movq	%rax, %rdi
	callq	_DSA_get0_pqg
	cmpq	$0, -24(%rbp)
	je	LBB0_14
## %bb.3:
	cmpq	$0, -32(%rbp)
	je	LBB0_14
## %bb.4:
	leaq	-48(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_DSA_get0_key
	cmpq	$0, -40(%rbp)
	jne	LBB0_17
	jmp	LBB0_14
LBB0_6:
	leal	-128(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_10
## %bb.7:
	movq	%rbx, %rdi
	callq	_EVP_PKEY_get0_RSA
	testq	%rax, %rax
	je	LBB0_16
## %bb.8:
	leaq	-24(%rbp), %rsi
	leaq	-32(%rbp), %rdx
	movq	%rax, %rdi
	callq	_RSA_get0_factors
	xorl	%r14d, %r14d
	cmpq	$0, -24(%rbp)
	je	LBB0_17
## %bb.9:
	cmpq	$0, -32(%rbp)
	jne	LBB0_16
	jmp	LBB0_17
LBB0_10:
	cmpl	$136, %eax
	jne	LBB0_15
## %bb.11:
	movq	%rbx, %rdi
	callq	_EVP_PKEY_get0_DH
	movl	$1, %r14d
	testq	%rax, %rax
	je	LBB0_17
## %bb.12:
	movq	%rax, %rbx
	leaq	-24(%rbp), %rsi
	leaq	-32(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	movq	%rax, %rdi
	callq	_DH_get0_pqg
	cmpq	$0, -24(%rbp)
	je	LBB0_14
## %bb.13:
	leaq	-48(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_DH_get0_key
	cmpq	$0, -40(%rbp)
	jne	LBB0_17
LBB0_14:
	xorl	%r14d, %r14d
	jmp	LBB0_17
LBB0_15:
	movq	_E_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%edi, %edi
	callq	_php_error_docref
LBB0_16:
	movl	$1, %r14d
LBB0_17:
	movl	%r14d, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_E_WARNING,4,2                  ## @E_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"key type not supported in this PHP build!"

	.no_dead_strip	_php_openssl_is_private_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function php_openssl_is_private_key
_php_openssl_is_private_key:            ; @php_openssl_is_private_key
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	mov	x0, x19
	bl	_EVP_PKEY_id
	sub	w8, w0, #131
	cmp	w8, #5
	b.hs	LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_EVP_PKEY_get0_DSA
	cbz	x0, LBB0_15
; %bb.2:
	mov	x19, x0
	sub	x1, x29, #24
	add	x2, sp, #32
	add	x3, sp, #24
	bl	_DSA_get0_pqg
	ldur	x8, [x29, #-24]
	cbz	x8, LBB0_13
; %bb.3:
	ldr	x8, [sp, #32]
	cbz	x8, LBB0_13
; %bb.4:
	add	x1, sp, #16
	add	x2, sp, #8
	mov	x0, x19
	bl	_DSA_get0_key
	ldr	x8, [sp, #8]
	cbnz	x8, LBB0_15
	b	LBB0_13
LBB0_5:
	sub	w8, w0, #128
	cmp	w8, #2
	b.hs	LBB0_9
; %bb.6:
	mov	x0, x19
	bl	_EVP_PKEY_get0_RSA
	cbz	x0, LBB0_15
; %bb.7:
	sub	x1, x29, #24
	add	x2, sp, #32
	bl	_RSA_get0_factors
	mov	w0, #0
	ldur	x8, [x29, #-24]
	cbz	x8, LBB0_16
; %bb.8:
	ldr	x8, [sp, #32]
	cbnz	x8, LBB0_15
	b	LBB0_16
LBB0_9:
	cmp	w0, #136
	b.ne	LBB0_14
; %bb.10:
	mov	x0, x19
	bl	_EVP_PKEY_get0_DH
	cbz	x0, LBB0_15
; %bb.11:
	mov	x19, x0
	sub	x1, x29, #24
	add	x2, sp, #32
	add	x3, sp, #24
	bl	_DH_get0_pqg
	ldur	x8, [x29, #-24]
	cbz	x8, LBB0_13
; %bb.12:
	add	x1, sp, #16
	add	x2, sp, #8
	mov	x0, x19
	bl	_DH_get0_key
	ldr	x8, [sp, #8]
	cbnz	x8, LBB0_15
LBB0_13:
	mov	w0, #0
	b	LBB0_16
LBB0_14:
Lloh0:
	adrp	x8, _E_WARNING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _E_WARNING@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, #0
	bl	_php_error_docref
LBB0_15:
	mov	w0, #1
LBB0_16:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_E_WARNING,4,2                  ; @E_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"key type not supported in this PHP build!"

	.no_dead_strip	_php_openssl_is_private_key
.subsections_via_symbols
