	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_rsa_rsaes_pkcs1_v15_encrypt ## -- Begin function mbedtls_rsa_rsaes_pkcs1_v15_encrypt
	.p2align	4, 0x90
_mbedtls_rsa_rsaes_pkcs1_v15_encrypt:   ## @mbedtls_rsa_rsaes_pkcs1_v15_encrypt
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	16(%rbp), %rdx
	movq	_MBEDTLS_RSA_PRIVATE@GOTPCREL(%rip), %rax
	cmpl	%ecx, (%rax)
	jne	LBB0_4
## %bb.1:
	movq	(%rdi), %rax
	movq	_MBEDTLS_RSA_PKCS_V15@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rax
	jne	LBB0_2
LBB0_4:
	testq	%r14, %r14
	je	LBB0_2
## %bb.5:
	testq	%r9, %r9
	je	LBB0_2
## %bb.6:
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.7:
	cmpq	$-12, %r8
	ja	LBB0_2
## %bb.8:
	movq	8(%rdi), %rbx
	leaq	11(%r8), %rax
	cmpq	%rax, %rbx
	jb	LBB0_2
## %bb.9:
	movq	%r9, -48(%rbp)                  ## 8-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %r12
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	subq	%r8, %r12
	addq	$-3, %r12
	movb	$0, (%rdx)
	movq	_MBEDTLS_RSA_PUBLIC@GOTPCREL(%rip), %rax
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	cmpl	%ecx, (%rax)
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	jne	LBB0_20
## %bb.10:
	movq	_MBEDTLS_RSA_CRYPT@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	leaq	2(%rdx), %r13
	movb	%al, 1(%rdx)
	.p2align	4, 0x90
LBB0_11:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	subq	$1, %r12
	jb	LBB0_21
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	$100, %ebx
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	$1, %edx
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	*%r14
	cmpb	$0, (%r13)
	jne	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=2
	leal	-1(%rbx), %ecx
	cmpl	$1, %ebx
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=2
	movl	%ecx, %ebx
	testl	%eax, %eax
	je	LBB0_13
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	%ebx, %ecx
LBB0_17:                                ##   in Loop: Header=BB0_11 Depth=1
	testl	%ecx, %ecx
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_11 Depth=1
	incq	%r13
	testl	%eax, %eax
	je	LBB0_11
LBB0_19:
	movq	_MBEDTLS_ERR_RSA_RNG_FAILED@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	jmp	LBB0_3
LBB0_2:
	movq	_MBEDTLS_ERR_RSA_BAD_INPUT_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_3:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movq	_MBEDTLS_RSA_SIGN@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	leaq	2(%rdx), %r13
	movb	%al, 1(%rdx)
	testq	%r12, %r12
	je	LBB0_21
## %bb.22:
	movq	%r13, %rdi
	movl	$255, %esi
	movq	%rdx, %r13
	movq	%r12, %rdx
	callq	_memset
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%rdx, %rax
	notq	%rax
	addq	%rax, %rbx
	addq	%r13, %rbx
	movq	%rbx, %r13
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_23
LBB0_21:
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
LBB0_23:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	_MBEDTLS_RSA_PUBLIC@GOTPCREL(%rip), %rbx
	movb	$0, (%r13)
	incq	%r13
	movq	%r13, %rdi
	callq	_memcpy
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, (%rbx)
	jne	LBB0_24
## %bb.25:
	movq	%r12, %rdi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	%rdx, %rsi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mbedtls_rsa_public             ## TAILCALL
LBB0_24:
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, %r8
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mbedtls_rsa_private            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_RSA_PRIVATE,4,2        ## @MBEDTLS_RSA_PRIVATE
	.comm	_MBEDTLS_RSA_PKCS_V15,8,3       ## @MBEDTLS_RSA_PKCS_V15
	.comm	_MBEDTLS_ERR_RSA_BAD_INPUT_DATA,4,2 ## @MBEDTLS_ERR_RSA_BAD_INPUT_DATA
	.comm	_MBEDTLS_RSA_PUBLIC,4,2         ## @MBEDTLS_RSA_PUBLIC
	.comm	_MBEDTLS_RSA_CRYPT,4,2          ## @MBEDTLS_RSA_CRYPT
	.comm	_MBEDTLS_ERR_RSA_RNG_FAILED,4,2 ## @MBEDTLS_ERR_RSA_RNG_FAILED
	.comm	_MBEDTLS_RSA_SIGN,4,2           ## @MBEDTLS_RSA_SIGN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_rsa_rsaes_pkcs1_v15_encrypt ; -- Begin function mbedtls_rsa_rsaes_pkcs1_v15_encrypt
	.p2align	2
_mbedtls_rsa_rsaes_pkcs1_v15_encrypt:   ; @mbedtls_rsa_rsaes_pkcs1_v15_encrypt
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x6
	mov	x25, x5
	mov	x24, x4
	mov	x23, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _MBEDTLS_RSA_PRIVATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MBEDTLS_RSA_PRIVATE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w3
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x22]
Lloh3:
	adrp	x9, _MBEDTLS_RSA_PKCS_V15@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MBEDTLS_RSA_PKCS_V15@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_17
LBB0_2:
	cbz	x21, LBB0_17
; %bb.3:
	cbz	x25, LBB0_17
; %bb.4:
	cbz	x19, LBB0_17
; %bb.5:
	cmn	x24, #12
	b.hi	LBB0_17
; %bb.6:
	ldr	x28, [x22, #8]
	add	x8, x24, #11
	cmp	x28, x8
	b.lo	LBB0_17
; %bb.7:
	sub	x8, x28, x24
	sub	x26, x8, #3
	strb	wzr, [x19]
Lloh6:
	adrp	x8, _MBEDTLS_RSA_PUBLIC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MBEDTLS_RSA_PUBLIC@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w23
	b.ne	LBB0_19
; %bb.8:
Lloh9:
	adrp	x8, _MBEDTLS_RSA_CRYPT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MBEDTLS_RSA_CRYPT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	add	x27, x19, #2
	strb	w8, [x19, #1]
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	cbz	x26, LBB0_21
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	sub	x26, x26, #1
	mov	w28, #100
LBB0_11:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x20
	mov	x1, x27
	mov	w2, #1
	blr	x21
	ldrb	w8, [x27]
	cbnz	w8, LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	subs	w28, w28, #1
	b.eq	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=2
	cbz	w0, LBB0_11
LBB0_14:                                ;   in Loop: Header=BB0_9 Depth=1
	cbz	w28, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x27, x27, #1
	cbz	w0, LBB0_9
LBB0_16:
Lloh12:
	adrp	x8, _MBEDTLS_ERR_RSA_RNG_FAILED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MBEDTLS_ERR_RSA_RNG_FAILED@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	add	w0, w8, w0
	b	LBB0_18
LBB0_17:
Lloh15:
	adrp	x8, _MBEDTLS_ERR_RSA_BAD_INPUT_DATA@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MBEDTLS_ERR_RSA_BAD_INPUT_DATA@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
LBB0_18:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_19:
Lloh18:
	adrp	x8, _MBEDTLS_RSA_SIGN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MBEDTLS_RSA_SIGN@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	add	x27, x19, #2
	strb	w8, [x19, #1]
	cbz	x26, LBB0_21
; %bb.20:
	mov	x0, x27
	mov	w1, #255
	mov	x2, x26
	bl	_memset
	mvn	x8, x24
	add	x8, x28, x8
	add	x27, x19, x8
LBB0_21:
Lloh21:
	adrp	x26, _MBEDTLS_RSA_PUBLIC@GOTPAGE
Lloh22:
	ldr	x26, [x26, _MBEDTLS_RSA_PUBLIC@GOTPAGEOFF]
	strb	wzr, [x27], #1
	mov	x0, x27
	mov	x1, x25
	mov	x2, x24
	bl	_memcpy
Lloh23:
	ldr	w8, [x26]
	mov	x0, x22
	cmp	w8, w23
	b.ne	LBB0_23
; %bb.22:
	mov	x1, x19
	mov	x2, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_mbedtls_rsa_public
LBB0_23:
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	mov	x4, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_mbedtls_rsa_private
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_RSA_PRIVATE,4,2        ; @MBEDTLS_RSA_PRIVATE
	.comm	_MBEDTLS_RSA_PKCS_V15,8,3       ; @MBEDTLS_RSA_PKCS_V15
	.comm	_MBEDTLS_ERR_RSA_BAD_INPUT_DATA,4,2 ; @MBEDTLS_ERR_RSA_BAD_INPUT_DATA
	.comm	_MBEDTLS_RSA_PUBLIC,4,2         ; @MBEDTLS_RSA_PUBLIC
	.comm	_MBEDTLS_RSA_CRYPT,4,2          ; @MBEDTLS_RSA_CRYPT
	.comm	_MBEDTLS_ERR_RSA_RNG_FAILED,4,2 ; @MBEDTLS_ERR_RSA_RNG_FAILED
	.comm	_MBEDTLS_RSA_SIGN,4,2           ; @MBEDTLS_RSA_SIGN
.subsections_via_symbols
