	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_cert_usable
_check_cert_usable:                     ## @check_cert_usable
	.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	%rcx, %rbx
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r13
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_ERR_set_mark
	leaq	-44(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_EVP_PKEY_get_default_digest_nid
	cmpl	$2, %eax
	jne	LBB0_2
## %bb.1:
	movl	(%r12), %eax
	cmpl	-44(%rbp), %eax
	jne	LBB0_13
LBB0_2:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_ERR_pop_to_mark
	movq	(%r13), %rcx
	movq	8(%rcx), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:
	cmpq	$0, (%rcx)
	je	LBB0_13
## %bb.4:
	movl	$1, %r15d
	leaq	-48(%rbp), %r12
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	-4(%rax,%r15,4), %edi
	callq	_tls1_lookup_sigalg
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %rbx
	movq	%r14, %rdi
	leaq	-52(%rbp), %rsi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_X509_get_signature_info
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	-52(%rbp), %eax
	cmpl	(%rbx), %eax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	-48(%rbp), %eax
	cmpl	4(%rbx), %eax
	je	LBB0_11
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r13), %rax
	cmpq	(%rax), %r15
	jae	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%rax), %rax
	incq	%r15
	jmp	LBB0_5
LBB0_11:
	movl	$1, %r15d
	jmp	LBB0_13
LBB0_12:
	xorl	%r15d, %r15d
LBB0_13:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_check_cert_usable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_cert_usable
_check_cert_usable:                     ; @check_cert_usable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x22, x3
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	bl	_ERR_set_mark
	add	x1, sp, #4
	mov	x0, x22
	bl	_EVP_PKEY_get_default_digest_nid
	cmp	w0, #2
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x21]
	ldr	w9, [sp, #4]
	cmp	w8, w9
	b.ne	LBB0_11
LBB0_2:
	bl	_ERR_pop_to_mark
	ldr	x9, [x20]
	ldr	x8, [x9, #8]
	cbz	x8, LBB0_12
; %bb.3:
	ldr	x9, [x9]
	cbz	x9, LBB0_11
; %bb.4:
	mov	x22, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x8, x22, lsl #2]
	bl	_tls1_lookup_sigalg
	cbz	x0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x21, x0
	add	x1, sp, #12
	add	x2, sp, #8
	mov	x0, x19
	mov	x3, #0
	mov	x4, #0
	bl	_X509_get_signature_info
	cbz	w0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [sp, #12]
	ldr	w9, [x21]
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [sp, #8]
	ldr	w9, [x21, #4]
	cmp	w8, w9
	b.eq	LBB0_12
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x22, x22, #1
	ldr	x8, [x20]
	ldr	x9, [x8]
	cmp	x22, x9
	b.hs	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x8, #8]
	b	LBB0_5
LBB0_11:
	mov	w0, #0
	b	LBB0_13
LBB0_12:
	mov	w0, #1
LBB0_13:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_check_cert_usable
.subsections_via_symbols
