	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tls12_get_cert_sigalg_idx
_tls12_get_cert_sigalg_idx:             ## @tls12_get_cert_sigalg_idx
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	(%rsi), %ebx
	movl	%ebx, %edi
	callq	_ssl_cert_lookup_by_idx
	movq	%rax, %rcx
	movl	$-1, %eax
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.1:
	movq	8(%r14), %rdx
	movl	(%rdx), %esi
	testl	%esi, (%rcx)
	je	LBB0_5
## %bb.2:
	movq	8(%rcx), %rcx
	movq	_EVP_PKEY_RSA_PSS@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	jne	LBB0_4
## %bb.3:
	movq	_SSL_kRSA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 4(%rdx)
	jne	LBB0_5
LBB0_4:
	movslq	%ebx, %rax
	movq	(%r14), %rcx
	movq	_CERT_PKEY_VALID@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	(%rcx,%rax,4), %edx
	xorl	%eax, %eax
	cmpl	$1, %edx
	sbbl	%eax, %eax
	orl	%ebx, %eax
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EVP_PKEY_RSA_PSS,8,3           ## @EVP_PKEY_RSA_PSS
	.comm	_SSL_kRSA,4,2                   ## @SSL_kRSA
	.comm	_CERT_PKEY_VALID,4,2            ## @CERT_PKEY_VALID
	.no_dead_strip	_tls12_get_cert_sigalg_idx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tls12_get_cert_sigalg_idx
_tls12_get_cert_sigalg_idx:             ; @tls12_get_cert_sigalg_idx
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w20, [x1]
	mov	x0, x20
	bl	_ssl_cert_lookup_by_idx
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w9, [x0]
	ldr	x8, [x19, #8]
	ldr	w10, [x8]
	tst	w10, w9
	b.eq	LBB0_4
; %bb.2:
	ldr	x9, [x0, #8]
Lloh0:
	adrp	x10, _EVP_PKEY_RSA_PSS@GOTPAGE
Lloh1:
	ldr	x10, [x10, _EVP_PKEY_RSA_PSS@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_5
; %bb.3:
	ldr	w8, [x8, #4]
Lloh3:
	adrp	x9, _SSL_kRSA@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SSL_kRSA@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
LBB0_4:
	mov	w0, #-1
	b	LBB0_6
LBB0_5:
	sxtw	x8, w20
	ldr	x9, [x19]
	ldr	w9, [x9, x8, lsl #2]
Lloh6:
	adrp	x10, _CERT_PKEY_VALID@GOTPAGE
Lloh7:
	ldr	x10, [x10, _CERT_PKEY_VALID@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	tst	w10, w9
	csinv	w0, w8, wzr, ne
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EVP_PKEY_RSA_PSS,8,3           ; @EVP_PKEY_RSA_PSS
	.comm	_SSL_kRSA,4,2                   ; @SSL_kRSA
	.comm	_CERT_PKEY_VALID,4,2            ; @CERT_PKEY_VALID
	.no_dead_strip	_tls12_get_cert_sigalg_idx
.subsections_via_symbols
