	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pk_get_pk_alg
_pk_get_pk_alg:                         ## @pk_get_pk_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	%rcx, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r15, %rcx
	callq	_mbedtls_asn1_get_alg
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	_MBEDTLS_ERR_PK_INVALID_ALG@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	jmp	LBB0_10
LBB0_2:
	leaq	-48(%rbp), %rdi
	movq	%r14, %rsi
	callq	_mbedtls_oid_get_pk_alg
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_MBEDTLS_ERR_PK_UNKNOWN_PK_ALG@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
LBB0_10:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	(%r14), %rcx
	movq	_MBEDTLS_PK_RSA@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_10
## %bb.5:
	movq	(%r15), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.6:
	movq	_MBEDTLS_ASN1_NULL@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_8
LBB0_7:
	cmpq	$0, 8(%r15)
	je	LBB0_10
LBB0_8:
	movq	_MBEDTLS_ERR_PK_INVALID_ALG@GOTPCREL(%rip), %rax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_ERR_PK_INVALID_ALG,4,2 ## @MBEDTLS_ERR_PK_INVALID_ALG
	.comm	_MBEDTLS_ERR_PK_UNKNOWN_PK_ALG,4,2 ## @MBEDTLS_ERR_PK_UNKNOWN_PK_ALG
	.comm	_MBEDTLS_PK_RSA,8,3             ## @MBEDTLS_PK_RSA
	.comm	_MBEDTLS_ASN1_NULL,8,3          ## @MBEDTLS_ASN1_NULL
	.no_dead_strip	_pk_get_pk_alg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pk_get_pk_alg
_pk_get_pk_alg:                         ; @pk_get_pk_alg
	.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	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	mov	x0, x3
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	mov	x2, sp
	mov	x0, x22
	mov	x1, x21
	mov	x3, x19
	bl	_mbedtls_asn1_get_alg
	cbz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _MBEDTLS_ERR_PK_INVALID_ALG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MBEDTLS_ERR_PK_INVALID_ALG@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w0, w8, w0
	b	LBB0_11
LBB0_2:
	mov	x0, sp
	mov	x1, x20
	bl	_mbedtls_oid_get_pk_alg
	cbz	x0, LBB0_5
; %bb.3:
Lloh3:
	adrp	x8, _MBEDTLS_ERR_PK_UNKNOWN_PK_ALG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MBEDTLS_ERR_PK_UNKNOWN_PK_ALG@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x8]
	b	LBB0_11
LBB0_5:
	ldr	x8, [x20]
Lloh5:
	adrp	x9, _MBEDTLS_PK_RSA@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MBEDTLS_PK_RSA@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.6:
	ldr	x8, [x19]
	cbz	x8, LBB0_8
; %bb.7:
Lloh8:
	adrp	x9, _MBEDTLS_ASN1_NULL@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MBEDTLS_ASN1_NULL@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
LBB0_8:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_10
LBB0_9:
Lloh11:
	adrp	x8, _MBEDTLS_ERR_PK_INVALID_ALG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MBEDTLS_ERR_PK_INVALID_ALG@GOTPAGEOFF]
	b	LBB0_4
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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_ERR_PK_INVALID_ALG,4,2 ; @MBEDTLS_ERR_PK_INVALID_ALG
	.comm	_MBEDTLS_ERR_PK_UNKNOWN_PK_ALG,4,2 ; @MBEDTLS_ERR_PK_UNKNOWN_PK_ALG
	.comm	_MBEDTLS_PK_RSA,8,3             ; @MBEDTLS_PK_RSA
	.comm	_MBEDTLS_ASN1_NULL,8,3          ; @MBEDTLS_ASN1_NULL
	.no_dead_strip	_pk_get_pk_alg
.subsections_via_symbols
