	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pk_get_rsapubkey
_pk_get_rsapubkey:                      ## @pk_get_rsapubkey
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_MBEDTLS_ASN1_CONSTRUCTED@GOTPCREL(%rip), %rax
	movq	_MBEDTLS_ASN1_SEQUENCE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	leaq	-32(%rbp), %rdx
	callq	_mbedtls_asn1_get_tag
	testl	%eax, %eax
	je	LBB0_2
LBB0_1:
	movq	_MBEDTLS_ERR_PK_INVALID_PUBKEY@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_2:
	movq	(%rbx), %rax
	addq	-32(%rbp), %rax
	cmpq	%r15, %rax
	je	LBB0_6
LBB0_3:
	movq	_MBEDTLS_ERR_PK_INVALID_PUBKEY@GOTPCREL(%rip), %rcx
	movq	_MBEDTLS_ERR_ASN1_LENGTH_MISMATCH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	addl	(%rcx), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_mbedtls_asn1_get_mpi
	testl	%eax, %eax
	jne	LBB0_1
## %bb.7:
	leaq	8(%r14), %rdx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_mbedtls_asn1_get_mpi
	testl	%eax, %eax
	jne	LBB0_1
## %bb.8:
	cmpq	%r15, (%rbx)
	jne	LBB0_3
## %bb.9:
	movq	%r14, %rdi
	callq	_mbedtls_rsa_check_pubkey
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movq	_MBEDTLS_ERR_PK_INVALID_PUBKEY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_5
LBB0_11:
	movq	%r14, %rdi
	callq	_mbedtls_mpi_size
	movl	%eax, 4(%r14)
	xorl	%eax, %eax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_ASN1_CONSTRUCTED,4,2   ## @MBEDTLS_ASN1_CONSTRUCTED
	.comm	_MBEDTLS_ASN1_SEQUENCE,4,2      ## @MBEDTLS_ASN1_SEQUENCE
	.comm	_MBEDTLS_ERR_PK_INVALID_PUBKEY,4,2 ## @MBEDTLS_ERR_PK_INVALID_PUBKEY
	.comm	_MBEDTLS_ERR_ASN1_LENGTH_MISMATCH,4,2 ## @MBEDTLS_ERR_ASN1_LENGTH_MISMATCH
	.no_dead_strip	_pk_get_rsapubkey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pk_get_rsapubkey
_pk_get_rsapubkey:                      ; @pk_get_rsapubkey
	.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, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _MBEDTLS_ASN1_CONSTRUCTED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MBEDTLS_ASN1_CONSTRUCTED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MBEDTLS_ASN1_SEQUENCE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MBEDTLS_ASN1_SEQUENCE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w3, w9, w8
	add	x2, sp, #8
	bl	_mbedtls_asn1_get_tag
	cbz	w0, LBB0_2
LBB0_1:
Lloh6:
	adrp	x8, _MBEDTLS_ERR_PK_INVALID_PUBKEY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MBEDTLS_ERR_PK_INVALID_PUBKEY@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	add	w0, w8, w0
	b	LBB0_4
LBB0_2:
	ldr	x8, [x21]
	ldr	x9, [sp, #8]
	add	x8, x8, x9
	cmp	x8, x20
	b.eq	LBB0_5
LBB0_3:
Lloh9:
	adrp	x8, _MBEDTLS_ERR_PK_INVALID_PUBKEY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MBEDTLS_ERR_PK_INVALID_PUBKEY@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _MBEDTLS_ERR_ASN1_LENGTH_MISMATCH@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MBEDTLS_ERR_ASN1_LENGTH_MISMATCH@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	add	w0, w9, w8
LBB0_4:
	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
LBB0_5:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_mbedtls_asn1_get_mpi
	cbnz	w0, LBB0_1
; %bb.6:
	add	x2, x19, #8
	mov	x0, x21
	mov	x1, x20
	bl	_mbedtls_asn1_get_mpi
	cbnz	w0, LBB0_1
; %bb.7:
	ldr	x8, [x21]
	cmp	x8, x20
	b.ne	LBB0_3
; %bb.8:
	mov	x0, x19
	bl	_mbedtls_rsa_check_pubkey
	cbz	w0, LBB0_10
; %bb.9:
Lloh15:
	adrp	x8, _MBEDTLS_ERR_PK_INVALID_PUBKEY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MBEDTLS_ERR_PK_INVALID_PUBKEY@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	b	LBB0_4
LBB0_10:
	mov	x0, x19
	bl	_mbedtls_mpi_size
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19, #4]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_ASN1_CONSTRUCTED,4,2   ; @MBEDTLS_ASN1_CONSTRUCTED
	.comm	_MBEDTLS_ASN1_SEQUENCE,4,2      ; @MBEDTLS_ASN1_SEQUENCE
	.comm	_MBEDTLS_ERR_PK_INVALID_PUBKEY,4,2 ; @MBEDTLS_ERR_PK_INVALID_PUBKEY
	.comm	_MBEDTLS_ERR_ASN1_LENGTH_MISMATCH,4,2 ; @MBEDTLS_ERR_ASN1_LENGTH_MISMATCH
	.no_dead_strip	_pk_get_rsapubkey
.subsections_via_symbols
