	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_suite_b
_check_suite_b:                         ## @check_suite_b
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_X509_V_ERR_SUITE_B_INVALID_ALGORITHM@GOTPCREL(%rip), %r12
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.1:
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_EVP_PKEY_id
	movq	_EVP_PKEY_EC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_18
## %bb.2:
	movq	%rbx, %rdi
	callq	_EVP_PKEY_get0_EC_KEY
	movl	%eax, %edi
	callq	_EC_KEY_get0_group
	testq	%rax, %rax
	je	LBB0_18
## %bb.3:
	movq	%rax, %rdi
	callq	_EC_GROUP_get_curve_name
	movq	_NID_secp384r1@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_7
## %bb.4:
	cmpl	$-1, %r15d
	je	LBB0_11
## %bb.5:
	movq	_NID_ecdsa_with_SHA384@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_6
LBB0_11:
	movq	(%r14), %rax
	movq	_X509_V_FLAG_SUITEB_192_LOS@GOTPCREL(%rip), %rcx
	testq	%rax, (%rcx)
	je	LBB0_17
## %bb.12:
	movq	_X509_V_FLAG_SUITEB_128_LOS_ONLY@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	notq	%rcx
	andq	%rcx, %rax
	movq	%rax, (%r14)
	jmp	LBB0_15
LBB0_7:
	movq	_NID_X9_62_prime256v1@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_13
## %bb.8:
	cmpl	$-1, %r15d
	je	LBB0_14
## %bb.9:
	movq	_NID_ecdsa_with_SHA256@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	je	LBB0_14
LBB0_6:
	movq	_X509_V_ERR_SUITE_B_INVALID_SIGNATURE_ALGORITHM@GOTPCREL(%rip), %r12
	jmp	LBB0_18
LBB0_13:
	movq	_X509_V_ERR_SUITE_B_INVALID_CURVE@GOTPCREL(%rip), %r12
	jmp	LBB0_18
LBB0_14:
	movq	_X509_V_FLAG_SUITEB_128_LOS_ONLY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, (%r14)
	je	LBB0_17
LBB0_15:
	movq	_X509_V_OK@GOTPCREL(%rip), %r12
	jmp	LBB0_18
LBB0_17:
	movq	_X509_V_ERR_SUITE_B_LOS_NOT_ALLOWED@GOTPCREL(%rip), %r12
LBB0_18:
	movl	(%r12), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EVP_PKEY_EC,8,3                ## @EVP_PKEY_EC
	.comm	_X509_V_ERR_SUITE_B_INVALID_ALGORITHM,4,2 ## @X509_V_ERR_SUITE_B_INVALID_ALGORITHM
	.comm	_NID_secp384r1,4,2              ## @NID_secp384r1
	.comm	_NID_ecdsa_with_SHA384,4,2      ## @NID_ecdsa_with_SHA384
	.comm	_X509_V_ERR_SUITE_B_INVALID_SIGNATURE_ALGORITHM,4,2 ## @X509_V_ERR_SUITE_B_INVALID_SIGNATURE_ALGORITHM
	.comm	_X509_V_FLAG_SUITEB_192_LOS,8,3 ## @X509_V_FLAG_SUITEB_192_LOS
	.comm	_X509_V_ERR_SUITE_B_LOS_NOT_ALLOWED,4,2 ## @X509_V_ERR_SUITE_B_LOS_NOT_ALLOWED
	.comm	_X509_V_FLAG_SUITEB_128_LOS_ONLY,8,3 ## @X509_V_FLAG_SUITEB_128_LOS_ONLY
	.comm	_NID_X9_62_prime256v1,4,2       ## @NID_X9_62_prime256v1
	.comm	_NID_ecdsa_with_SHA256,4,2      ## @NID_ecdsa_with_SHA256
	.comm	_X509_V_ERR_SUITE_B_INVALID_CURVE,4,2 ## @X509_V_ERR_SUITE_B_INVALID_CURVE
	.comm	_X509_V_OK,4,2                  ## @X509_V_OK
	.no_dead_strip	_check_suite_b
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_suite_b
_check_suite_b:                         ; @check_suite_b
	.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
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_EVP_PKEY_id
Lloh0:
	adrp	x8, _EVP_PKEY_EC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EVP_PKEY_EC@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.2:
	mov	x0, x21
	bl	_EVP_PKEY_get0_EC_KEY
	bl	_EC_KEY_get0_group
	cbz	x0, LBB0_8
; %bb.3:
	bl	_EC_GROUP_get_curve_name
Lloh3:
	adrp	x8, _NID_secp384r1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NID_secp384r1@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_10
; %bb.4:
	cmn	w20, #1
	b.eq	LBB0_6
; %bb.5:
Lloh6:
	adrp	x8, _NID_ecdsa_with_SHA384@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NID_ecdsa_with_SHA384@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_13
LBB0_6:
	ldr	x8, [x19]
Lloh9:
	adrp	x9, _X509_V_FLAG_SUITEB_192_LOS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _X509_V_FLAG_SUITEB_192_LOS@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	tst	x9, x8
	b.eq	LBB0_17
; %bb.7:
Lloh12:
	adrp	x9, _X509_V_FLAG_SUITEB_128_LOS_ONLY@GOTPAGE
Lloh13:
	ldr	x9, [x9, _X509_V_FLAG_SUITEB_128_LOS_ONLY@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	bic	x8, x8, x9
	str	x8, [x19]
	b	LBB0_16
LBB0_8:
Lloh15:
	adrp	x8, _X509_V_ERR_SUITE_B_INVALID_ALGORITHM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _X509_V_ERR_SUITE_B_INVALID_ALGORITHM@GOTPAGEOFF]
LBB0_9:
	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
LBB0_10:
Lloh17:
	adrp	x8, _NID_X9_62_prime256v1@GOTPAGE
Lloh18:
	ldr	x8, [x8, _NID_X9_62_prime256v1@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_14
; %bb.11:
	cmn	w20, #1
	b.eq	LBB0_15
; %bb.12:
Lloh20:
	adrp	x8, _NID_ecdsa_with_SHA256@GOTPAGE
Lloh21:
	ldr	x8, [x8, _NID_ecdsa_with_SHA256@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cmp	w8, w20
	b.eq	LBB0_15
LBB0_13:
Lloh23:
	adrp	x8, _X509_V_ERR_SUITE_B_INVALID_SIGNATURE_ALGORITHM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _X509_V_ERR_SUITE_B_INVALID_SIGNATURE_ALGORITHM@GOTPAGEOFF]
	b	LBB0_9
LBB0_14:
Lloh25:
	adrp	x8, _X509_V_ERR_SUITE_B_INVALID_CURVE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _X509_V_ERR_SUITE_B_INVALID_CURVE@GOTPAGEOFF]
	b	LBB0_9
LBB0_15:
	ldr	x8, [x19]
Lloh27:
	adrp	x9, _X509_V_FLAG_SUITEB_128_LOS_ONLY@GOTPAGE
Lloh28:
	ldr	x9, [x9, _X509_V_FLAG_SUITEB_128_LOS_ONLY@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	tst	x9, x8
	b.eq	LBB0_17
LBB0_16:
Lloh30:
	adrp	x8, _X509_V_OK@GOTPAGE
Lloh31:
	ldr	x8, [x8, _X509_V_OK@GOTPAGEOFF]
	b	LBB0_9
LBB0_17:
Lloh32:
	adrp	x8, _X509_V_ERR_SUITE_B_LOS_NOT_ALLOWED@GOTPAGE
Lloh33:
	ldr	x8, [x8, _X509_V_ERR_SUITE_B_LOS_NOT_ALLOWED@GOTPAGEOFF]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_EVP_PKEY_EC,8,3                ; @EVP_PKEY_EC
	.comm	_X509_V_ERR_SUITE_B_INVALID_ALGORITHM,4,2 ; @X509_V_ERR_SUITE_B_INVALID_ALGORITHM
	.comm	_NID_secp384r1,4,2              ; @NID_secp384r1
	.comm	_NID_ecdsa_with_SHA384,4,2      ; @NID_ecdsa_with_SHA384
	.comm	_X509_V_ERR_SUITE_B_INVALID_SIGNATURE_ALGORITHM,4,2 ; @X509_V_ERR_SUITE_B_INVALID_SIGNATURE_ALGORITHM
	.comm	_X509_V_FLAG_SUITEB_192_LOS,8,3 ; @X509_V_FLAG_SUITEB_192_LOS
	.comm	_X509_V_ERR_SUITE_B_LOS_NOT_ALLOWED,4,2 ; @X509_V_ERR_SUITE_B_LOS_NOT_ALLOWED
	.comm	_X509_V_FLAG_SUITEB_128_LOS_ONLY,8,3 ; @X509_V_FLAG_SUITEB_128_LOS_ONLY
	.comm	_NID_X9_62_prime256v1,4,2       ; @NID_X9_62_prime256v1
	.comm	_NID_ecdsa_with_SHA256,4,2      ; @NID_ecdsa_with_SHA256
	.comm	_X509_V_ERR_SUITE_B_INVALID_CURVE,4,2 ; @X509_V_ERR_SUITE_B_INVALID_CURVE
	.comm	_X509_V_OK,4,2                  ; @X509_V_OK
	.no_dead_strip	_check_suite_b
.subsections_via_symbols
