	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %rbx
	movq	%rsi, %r13
	movq	%rdi, %r15
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_ERR_set_mark
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_EVP_PKEY_supports_digest_nid
	movl	%eax, %r12d
	xorl	%eax, %eax
	callq	_ERR_pop_to_mark
	testl	%r12d, %r12d
	je	LBB0_12
## %bb.1:
	cmpq	$0, 8(%r15)
	je	LBB0_10
## %bb.2:
	xorl	%r14d, %r14d
	leaq	-48(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_X509_get_signature_info
	testl	%eax, %eax
	je	LBB0_12
## %bb.3:
	cmpq	$0, (%r15)
	je	LBB0_12
## %bb.4:
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	cmpq	(%r15), %rbx
	jae	LBB0_11
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_tls1_lookup_sigalg
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	-48(%rbp), %ecx
	cmpl	(%rax), %ecx
	jne	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	-44(%rbp), %ecx
	cmpl	4(%rax), %ecx
	jne	LBB0_5
LBB0_10:
	movl	$1, %r14d
	jmp	LBB0_12
LBB0_11:
	xorl	%r14d, %r14d
LBB0_12:
	movl	%r14d, %eax
	addq	$8, %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	x21, x3
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
	bl	_ERR_set_mark
	ldr	w1, [x22]
	mov	x0, x21
	bl	_EVP_PKEY_supports_digest_nid
	mov	x21, x0
	bl	_ERR_pop_to_mark
	cbz	w21, LBB0_10
; %bb.1:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_9
; %bb.2:
	add	x1, sp, #12
	add	x2, sp, #8
	mov	x0, x20
	mov	x3, #0
	mov	x4, #0
	bl	_X509_get_signature_info
	cbz	w0, LBB0_11
; %bb.3:
	ldr	x8, [x19]
	cbz	x8, LBB0_10
; %bb.4:
	mov	x20, #0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x20, x20, #1
	ldr	x8, [x19]
	cmp	x20, x8
	b.hs	LBB0_10
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	w0, [x8, x20, lsl #2]
	bl	_tls1_lookup_sigalg
	cbz	x0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [sp, #12]
	ldr	w9, [x0]
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [sp, #8]
	ldr	w9, [x0, #4]
	cmp	w8, w9
	b.ne	LBB0_5
LBB0_9:
	mov	w0, #1
	b	LBB0_11
LBB0_10:
	mov	w0, #0
LBB0_11:
	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
