	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_sig_alg
_find_sig_alg:                          ## @find_sig_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	cmpq	$0, (%rdi)
	je	LBB0_23
## %bb.1:
	movq	%rdi, %r14
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	$-1, -44(%rbp)                  ## 4-byte Folded Spill
	xorl	%r12d, %r12d
	movq	_NID_sha1@GOTPCREL(%rip), %r13
	movq	_NID_sha224@GOTPCREL(%rip), %r15
	movq	_EVP_PKEY_DSA@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	_EVP_PKEY_DSA@GOTPCREL(%rip), %rcx
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r12
	cmpq	(%r14), %r12
	jae	LBB0_22
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %rax
	movq	(%rax,%r12,8), %rbx
	movq	(%rbx), %rax
	cmpq	(%r13), %rax
	je	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	(%r15), %rax
	je	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%rbx), %rax
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_EVP_PKEY_RSA@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_3
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_tls1_lookup_md
	testl	%eax, %eax
	je	LBB0_2
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%rbx, %rsi
	testq	%rcx, %rcx
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%r15, %r13
	movq	%rcx, %r15
	callq	_is_cert_usable
	movq	%r15, %rdi
	movq	%r13, %r15
	movq	_NID_sha1@GOTPCREL(%rip), %r13
	testl	%eax, %eax
	jne	LBB0_14
	jmp	LBB0_2
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	$-1, %edx
	callq	_has_usable_cert
	testl	%eax, %eax
	je	LBB0_2
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movq	16(%rbx), %rcx
	movq	(%rax,%rcx,8), %rdi
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%rbx), %rax
	movq	_EVP_PKEY_EC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_19
## %bb.15:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$-1, -44(%rbp)                  ## 4-byte Folded Reload
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_4 Depth=1
	callq	_EVP_PKEY_get0_EC_KEY
	movq	%rax, %rdi
	callq	_EC_KEY_get0_group
	movl	%eax, %edi
	callq	_EC_GROUP_get_curve_name
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_17:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	24(%rbx), %eax
	movq	_NID_undef@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_22
## %bb.18:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%eax, -44(%rbp)                 ## 4-byte Folded Reload
	movq	_EVP_PKEY_DSA@GOTPCREL(%rip), %rcx
	jne	LBB0_3
	jmp	LBB0_22
LBB0_19:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_EVP_PKEY_RSA_PSS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_4 Depth=1
	callq	_EVP_PKEY_get0
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_rsa_pss_check_min_key_size
	testl	%eax, %eax
	movq	_EVP_PKEY_DSA@GOTPCREL(%rip), %rcx
	je	LBB0_3
LBB0_22:
	movq	(%r14), %rcx
	jmp	LBB0_24
LBB0_23:
	xorl	%ecx, %ecx
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
LBB0_24:
	xorl	%eax, %eax
	cmpq	%rcx, %r12
	cmovneq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NID_sha1,8,3                   ## @NID_sha1
	.comm	_NID_sha224,8,3                 ## @NID_sha224
	.comm	_EVP_PKEY_DSA,8,3               ## @EVP_PKEY_DSA
	.comm	_EVP_PKEY_RSA,8,3               ## @EVP_PKEY_RSA
	.comm	_EVP_PKEY_EC,8,3                ## @EVP_PKEY_EC
	.comm	_NID_undef,4,2                  ## @NID_undef
	.comm	_EVP_PKEY_RSA_PSS,8,3           ## @EVP_PKEY_RSA_PSS
	.no_dead_strip	_find_sig_alg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_sig_alg
_find_sig_alg:                          ; @find_sig_alg
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x8, [x0]
	cbz	x8, LBB0_17
; %bb.1:
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	mov	x24, #0
	mov	w23, #-1
Lloh0:
	adrp	x25, _NID_sha1@GOTPAGE
Lloh1:
	ldr	x25, [x25, _NID_sha1@GOTPAGEOFF]
Lloh2:
	adrp	x26, _NID_sha224@GOTPAGE
Lloh3:
	ldr	x26, [x26, _NID_sha224@GOTPAGEOFF]
Lloh4:
	adrp	x27, _EVP_PKEY_DSA@GOTPAGE
Lloh5:
	ldr	x27, [x27, _EVP_PKEY_DSA@GOTPAGEOFF]
Lloh6:
	adrp	x28, _EVP_PKEY_RSA@GOTPAGE
Lloh7:
	ldr	x28, [x28, _EVP_PKEY_RSA@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmn	w23, #1
	b.eq	LBB0_15
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x20, #24]
Lloh8:
	adrp	x9, _NID_undef@GOTPAGE
Lloh9:
	ldr	x9, [x9, _NID_undef@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w8, w9
	ccmp	w23, w8, #4, ne
	b.eq	LBB0_16
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x24, x24, #1
	ldr	x8, [x19]
	cmp	x24, x8
	b.hs	LBB0_16
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	x20, [x8, x24, lsl #3]
	ldr	x8, [x20]
	ldr	x9, [x25]
	ldr	x10, [x26]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20, #8]
	ldr	x9, [x27]
	ldr	x10, [x28]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	x1, #0
	bl	_tls1_lookup_md
	cbz	w0, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	mov	x1, x20
	cbz	x21, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x2, x22
	mov	x3, x21
	bl	_is_cert_usable
	mov	x8, x0
	mov	x0, x21
	cbnz	w8, LBB0_12
	b	LBB0_4
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w2, #-1
	bl	_has_usable_cert
	cbz	w0, LBB0_4
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x9, [x20, #16]
	ldr	x0, [x8, x9, lsl #3]
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20, #8]
Lloh11:
	adrp	x9, _EVP_PKEY_EC@GOTPAGE
Lloh12:
	ldr	x9, [x9, _EVP_PKEY_EC@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
Lloh14:
	adrp	x9, _EVP_PKEY_RSA_PSS@GOTPAGE
Lloh15:
	ldr	x9, [x9, _EVP_PKEY_RSA_PSS@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	bl	_EVP_PKEY_get0
	mov	x1, x20
	bl	_rsa_pss_check_min_key_size
	cbz	w0, LBB0_4
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_EVP_PKEY_get0_EC_KEY
	bl	_EC_KEY_get0_group
	bl	_EC_GROUP_get_curve_name
	mov	x23, x0
	b	LBB0_3
LBB0_16:
	ldr	x8, [x19]
	b	LBB0_18
LBB0_17:
	mov	x24, #0
	mov	x20, #0
LBB0_18:
	cmp	x24, x8
	csel	x0, xzr, x20, eq
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_NID_sha1,8,3                   ; @NID_sha1
	.comm	_NID_sha224,8,3                 ; @NID_sha224
	.comm	_EVP_PKEY_DSA,8,3               ; @EVP_PKEY_DSA
	.comm	_EVP_PKEY_RSA,8,3               ; @EVP_PKEY_RSA
	.comm	_EVP_PKEY_EC,8,3                ; @EVP_PKEY_EC
	.comm	_NID_undef,4,2                  ; @NID_undef
	.comm	_EVP_PKEY_RSA_PSS,8,3           ; @EVP_PKEY_RSA_PSS
	.no_dead_strip	_find_sig_alg
.subsections_via_symbols
