	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tls1_check_cert_param
_tls1_check_cert_param:                 ## @tls1_check_cert_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
	movl	%edx, %r15d
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_X509_get0_pubkey
	xorl	%r13d, %r13d
	testq	%rax, %rax
	je	LBB0_15
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_EVP_PKEY_id
	movq	_EVP_PKEY_EC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.2:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_tls1_check_pkey_comp
	testl	%eax, %eax
	je	LBB0_15
## %bb.3:
	movq	%rbx, %rdi
	callq	_tls1_get_group_id
	movq	%rax, %r12
	xorl	%edx, %edx
	cmpl	$0, 16(%r14)
	sete	%dl
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_tls1_check_group_id
	testl	%eax, %eax
	je	LBB0_15
## %bb.4:
	testl	%r15d, %r15d
	je	LBB0_14
## %bb.5:
	movq	%r14, %rdi
	callq	_tls1_suiteb
	testq	%rax, %rax
	je	LBB0_14
## %bb.6:
	movq	_TLSEXT_curve_P_256@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jne	LBB0_8
## %bb.7:
	movq	_NID_ecdsa_with_SHA256@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_8:
	movq	_TLSEXT_curve_P_384@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jne	LBB0_15
## %bb.9:
	movq	_NID_ecdsa_with_SHA384@GOTPCREL(%rip), %rcx
LBB0_10:
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_15
## %bb.11:
	movl	(%rcx), %ecx
	movq	8(%r14), %rdx
	xorl	%esi, %esi
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rsi,8), %rdi
	cmpl	(%rdi), %ecx
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_13 Depth=1
	incq	%rsi
	cmpq	%rsi, %rax
	jne	LBB0_13
	jmp	LBB0_15
LBB0_14:
	movl	$1, %r13d
LBB0_15:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EVP_PKEY_EC,8,3                ## @EVP_PKEY_EC
	.comm	_TLSEXT_curve_P_256,8,3         ## @TLSEXT_curve_P_256
	.comm	_NID_ecdsa_with_SHA256,4,2      ## @NID_ecdsa_with_SHA256
	.comm	_TLSEXT_curve_P_384,8,3         ## @TLSEXT_curve_P_384
	.comm	_NID_ecdsa_with_SHA384,4,2      ## @NID_ecdsa_with_SHA384
	.no_dead_strip	_tls1_check_cert_param
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tls1_check_cert_param
_tls1_check_cert_param:                 ; @tls1_check_cert_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	x20, x2
	mov	x19, x0
	mov	x0, x1
	bl	_X509_get0_pubkey
	cbz	x0, LBB0_14
; %bb.1:
	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_13
; %bb.2:
	mov	x0, x19
	mov	x1, x21
	bl	_tls1_check_pkey_comp
	cbz	w0, LBB0_14
; %bb.3:
	mov	x0, x21
	bl	_tls1_get_group_id
	mov	x21, x0
	ldr	w8, [x19, #16]
	cmp	w8, #0
	cset	w2, eq
	mov	x0, x19
	mov	x1, x21
	bl	_tls1_check_group_id
	cbz	w0, LBB0_14
; %bb.4:
	cbz	w20, LBB0_13
; %bb.5:
	mov	x0, x19
	bl	_tls1_suiteb
	cbz	x0, LBB0_13
; %bb.6:
Lloh3:
	adrp	x8, _TLSEXT_curve_P_256@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TLSEXT_curve_P_256@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x21, x8
	b.ne	LBB0_8
; %bb.7:
Lloh6:
	adrp	x9, _NID_ecdsa_with_SHA256@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NID_ecdsa_with_SHA256@GOTPAGEOFF]
	ldr	x8, [x19]
	cbnz	x8, LBB0_10
	b	LBB0_15
LBB0_8:
Lloh8:
	adrp	x8, _TLSEXT_curve_P_384@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TLSEXT_curve_P_384@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	cmp	x21, x8
	b.ne	LBB0_15
; %bb.9:
Lloh11:
	adrp	x9, _NID_ecdsa_with_SHA384@GOTPAGE
Lloh12:
	ldr	x9, [x9, _NID_ecdsa_with_SHA384@GOTPAGEOFF]
	ldr	x8, [x19]
	cbz	x8, LBB0_15
LBB0_10:
	ldr	w9, [x9]
	ldr	x10, [x19, #8]
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10]
	ldr	w11, [x11]
	cmp	w9, w11
	b.eq	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	w0, #0
	add	x10, x10, #8
	subs	x8, x8, #1
	b.ne	LBB0_11
	b	LBB0_14
LBB0_13:
	mov	w0, #1
LBB0_14:
	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_15:
	mov	w0, #0
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EVP_PKEY_EC,8,3                ; @EVP_PKEY_EC
	.comm	_TLSEXT_curve_P_256,8,3         ; @TLSEXT_curve_P_256
	.comm	_NID_ecdsa_with_SHA256,4,2      ; @NID_ecdsa_with_SHA256
	.comm	_TLSEXT_curve_P_384,8,3         ; @TLSEXT_curve_P_384
	.comm	_NID_ecdsa_with_SHA384,4,2      ; @NID_ecdsa_with_SHA384
	.no_dead_strip	_tls1_check_cert_param
.subsections_via_symbols
