	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_rsa_public             ## -- Begin function mbedtls_rsa_public
	.p2align	4, 0x90
_mbedtls_rsa_public:                    ## @mbedtls_rsa_public
	.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	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	leaq	-44(%rbp), %r12
	movq	%r12, %rdi
	callq	_mbedtls_mpi_init
	movq	(%rbx), %rdx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_mbedtls_mpi_read_binary
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	leaq	16(%rbx), %r15
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_mbedtls_mpi_cmp_mpi
	testq	%rax, %rax
	js	LBB0_2
## %bb.1:
	movq	_MBEDTLS_ERR_MPI_BAD_INPUT_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_3
LBB0_2:
	movq	(%rbx), %r12
	leaq	20(%rbx), %rdx
	addq	$12, %rbx
	leaq	-44(%rbp), %r13
	movq	%r13, %rdi
	movq	%r13, %rsi
	movq	%r15, %rcx
	movq	%rbx, %r8
	callq	_mbedtls_mpi_exp_mod
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_mbedtls_mpi_write_binary
	movl	%eax, %edi
	callq	_MBEDTLS_MPI_CHK
                                        ## implicit-def: $ebx
LBB0_3:
	leaq	-44(%rbp), %rdi
	callq	_mbedtls_mpi_free
	movq	_MBEDTLS_ERR_RSA_PUBLIC_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	testl	%ebx, %ebx
	cmovel	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_ERR_MPI_BAD_INPUT_DATA,4,2 ## @MBEDTLS_ERR_MPI_BAD_INPUT_DATA
	.comm	_MBEDTLS_ERR_RSA_PUBLIC_FAILED,4,2 ## @MBEDTLS_ERR_RSA_PUBLIC_FAILED
	.comm	_MBEDTLS_ERR_THREADING_MUTEX_ERROR,4,2 ## @MBEDTLS_ERR_THREADING_MUTEX_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_rsa_public             ; -- Begin function mbedtls_rsa_public
	.p2align	2
_mbedtls_rsa_public:                    ; @mbedtls_rsa_public
	.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	x22, x1
	mov	x20, x0
	add	x0, sp, #12
	bl	_mbedtls_mpi_init
	mov	x21, x20
	ldr	x2, [x21], #16
	add	x0, sp, #12
	mov	x1, x22
	bl	_mbedtls_mpi_read_binary
	bl	_MBEDTLS_MPI_CHK
	add	x0, sp, #12
	mov	x1, x21
	bl	_mbedtls_mpi_cmp_mpi
	tbnz	x0, #63, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _MBEDTLS_ERR_MPI_BAD_INPUT_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MBEDTLS_ERR_MPI_BAD_INPUT_DATA@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	b	LBB0_3
LBB0_2:
	add	x2, x20, #20
	ldr	x22, [x20], #12
	add	x0, sp, #12
	add	x1, sp, #12
	mov	x3, x21
	mov	x4, x20
	bl	_mbedtls_mpi_exp_mod
	bl	_MBEDTLS_MPI_CHK
	add	x0, sp, #12
	mov	x1, x19
	mov	x2, x22
	bl	_mbedtls_mpi_write_binary
	bl	_MBEDTLS_MPI_CHK
                                        ; implicit-def: $w19
LBB0_3:
	add	x0, sp, #12
	bl	_mbedtls_mpi_free
Lloh3:
	adrp	x8, _MBEDTLS_ERR_RSA_PUBLIC_FAILED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MBEDTLS_ERR_RSA_PUBLIC_FAILED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w8, w8, w19
	cmp	w19, #0
	csel	w0, wzr, w8, eq
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_ERR_MPI_BAD_INPUT_DATA,4,2 ; @MBEDTLS_ERR_MPI_BAD_INPUT_DATA
	.comm	_MBEDTLS_ERR_RSA_PUBLIC_FAILED,4,2 ; @MBEDTLS_ERR_RSA_PUBLIC_FAILED
	.comm	_MBEDTLS_ERR_THREADING_MUTEX_ERROR,4,2 ; @MBEDTLS_ERR_THREADING_MUTEX_ERROR
.subsections_via_symbols
