	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssl_check_srvr_ecc_cert_and_alg ## -- Begin function ssl_check_srvr_ecc_cert_and_alg
	.p2align	4, 0x90
_ssl_check_srvr_ecc_cert_and_alg:       ## @ssl_check_srvr_ecc_cert_and_alg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rsi), %rax
	movq	_SSL_aECDSA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	$1, %ebx
	testl	%ecx, (%rax)
	je	LBB0_3
## %bb.1:
	callq	_X509_get_key_usage
	movq	_X509v3_KU_DIGITAL_SIGNATURE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_3
## %bb.2:
	movq	_SSL_F_SSL_CHECK_SRVR_ECC_CERT_AND_ALG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SSL_R_ECC_CERT_NOT_FOR_SIGNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_SSLerr
	xorl	%ebx, %ebx
LBB0_3:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSL_aECDSA,4,2                 ## @SSL_aECDSA
	.comm	_X509v3_KU_DIGITAL_SIGNATURE,4,2 ## @X509v3_KU_DIGITAL_SIGNATURE
	.comm	_SSL_F_SSL_CHECK_SRVR_ECC_CERT_AND_ALG,4,2 ## @SSL_F_SSL_CHECK_SRVR_ECC_CERT_AND_ALG
	.comm	_SSL_R_ECC_CERT_NOT_FOR_SIGNING,4,2 ## @SSL_R_ECC_CERT_NOT_FOR_SIGNING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssl_check_srvr_ecc_cert_and_alg ; -- Begin function ssl_check_srvr_ecc_cert_and_alg
	.p2align	2
_ssl_check_srvr_ecc_cert_and_alg:       ; @ssl_check_srvr_ecc_cert_and_alg
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x8, [x1]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _SSL_aECDSA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SSL_aECDSA@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	bl	_X509_get_key_usage
Lloh3:
	adrp	x8, _X509v3_KU_DIGITAL_SIGNATURE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _X509v3_KU_DIGITAL_SIGNATURE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_3
LBB0_2:
	mov	w0, #1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh6:
	adrp	x8, _SSL_F_SSL_CHECK_SRVR_ECC_CERT_AND_ALG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SSL_F_SSL_CHECK_SRVR_ECC_CERT_AND_ALG@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _SSL_R_ECC_CERT_NOT_FOR_SIGNING@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SSL_R_ECC_CERT_NOT_FOR_SIGNING@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_SSLerr
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SSL_aECDSA,4,2                 ; @SSL_aECDSA
	.comm	_X509v3_KU_DIGITAL_SIGNATURE,4,2 ; @X509v3_KU_DIGITAL_SIGNATURE
	.comm	_SSL_F_SSL_CHECK_SRVR_ECC_CERT_AND_ALG,4,2 ; @SSL_F_SSL_CHECK_SRVR_ECC_CERT_AND_ALG
	.comm	_SSL_R_ECC_CERT_NOT_FOR_SIGNING,4,2 ; @SSL_R_ECC_CERT_NOT_FOR_SIGNING
.subsections_via_symbols
