	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_rsa_rsaes_oaep_encrypt ## -- Begin function mbedtls_rsa_rsaes_oaep_encrypt
	.p2align	4, 0x90
_mbedtls_rsa_rsaes_oaep_encrypt:        ## @mbedtls_rsa_rsaes_oaep_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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	_MBEDTLS_RSA_PRIVATE@GOTPCREL(%rip), %rax
	cmpl	%ecx, (%rax)
	jne	LBB0_3
## %bb.1:
	movq	(%r15), %rax
	movq	_MBEDTLS_RSA_PKCS_V21@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
LBB0_3:
	testq	%r13, %r13
	je	LBB0_2
## %bb.4:
	movq	%r8, -128(%rbp)                 ## 8-byte Spill
	movq	%r9, -136(%rbp)                 ## 8-byte Spill
	movl	16(%r15), %edi
	callq	_mbedtls_md_info_from_type
	testq	%rax, %rax
	je	LBB0_2
## %bb.5:
	movq	%rax, %rdi
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	movq	16(%rbp), %r12
	movq	8(%r15), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, -120(%rbp)                ## 8-byte Spill
	callq	_mbedtls_md_get_size
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%rax), %edx
	leaq	(%rdx,%r12), %rcx
	addq	$2, %rcx
	cmpq	%r12, %rcx
	jb	LBB0_2
## %bb.6:
	cmpq	%rcx, -56(%rbp)                 ## 8-byte Folded Reload
	jb	LBB0_2
## %bb.7:
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	movq	32(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%rax, %r12
	xorl	%esi, %esi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_memset
	leaq	1(%rbx), %rsi
	movb	$0, (%rbx)
	movq	%r12, -104(%rbp)                ## 8-byte Spill
	movl	%r12d, %edx
	movq	%r14, %rdi
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	callq	*%r13
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %r13d
	movq	_MBEDTLS_ERR_RSA_RNG_FAILED@GOTPCREL(%rip), %rax
	addl	(%rax), %r13d
	jmp	LBB0_15
LBB0_2:
	movq	_MBEDTLS_ERR_RSA_BAD_INPUT_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_15:
	movl	%r13d, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	movq	16(%rbp), %rax
	movq	-112(%rbp), %r12                ## 8-byte Reload
	addq	%rax, %r12
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	leaq	(%rax,%rbx), %r13
	movq	-120(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %rdi
	movq	-128(%rbp), %rsi                ## 8-byte Reload
	movq	-136(%rbp), %rdx                ## 8-byte Reload
	movq	%r13, %rcx
	callq	_mbedtls_md
	addq	%rbx, %r13
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	subq	%r12, %rax
	leaq	(%rax,%r13), %rdi
	decq	%rdi
	movb	$1, -2(%rax,%r13)
	movq	24(%rbp), %rsi
	movq	16(%rbp), %rdx
	callq	_memcpy
	leaq	-44(%rbp), %r13
	movq	%r13, %rdi
	callq	_mbedtls_md_init
	movq	%r13, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_mbedtls_md_setup
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %r13d
	leaq	-44(%rbp), %rdi
	callq	_mbedtls_md_free
	jmp	LBB0_15
LBB0_11:
	movq	32(%rbp), %rbx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rbx,%rcx), %r14
	incq	%r14
	movq	%rcx, %rax
	notq	%rax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	addq	%rax, %rbx
	leaq	-44(%rbp), %r12
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdx
	movq	%r12, %r8
	callq	_mgf_mask
	movq	%r13, %rdi
	movq	-104(%rbp), %rsi                ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movq	%r14, %rdx
	movq	%rbx, %rcx
	movq	%r12, %r8
	callq	_mgf_mask
	movq	%r12, %rdi
	callq	_mbedtls_md_free
	movq	32(%rbp), %r8
	movq	_MBEDTLS_RSA_PUBLIC@GOTPCREL(%rip), %rax
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, (%rax)
	jne	LBB0_13
## %bb.12:
	movq	%r15, %rdi
	movq	%r8, %rsi
	movq	%r8, %rdx
	callq	_mbedtls_rsa_public
	jmp	LBB0_14
LBB0_13:
	movq	%r15, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	movq	%r8, %rcx
	callq	_mbedtls_rsa_private
LBB0_14:
	movl	%eax, %r13d
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_RSA_PRIVATE,4,2        ## @MBEDTLS_RSA_PRIVATE
	.comm	_MBEDTLS_RSA_PKCS_V21,8,3       ## @MBEDTLS_RSA_PKCS_V21
	.comm	_MBEDTLS_ERR_RSA_BAD_INPUT_DATA,4,2 ## @MBEDTLS_ERR_RSA_BAD_INPUT_DATA
	.comm	_MBEDTLS_ERR_RSA_RNG_FAILED,4,2 ## @MBEDTLS_ERR_RSA_RNG_FAILED
	.comm	_MBEDTLS_RSA_PUBLIC,4,2         ## @MBEDTLS_RSA_PUBLIC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_rsa_rsaes_oaep_encrypt ; -- Begin function mbedtls_rsa_rsaes_oaep_encrypt
	.p2align	2
_mbedtls_rsa_rsaes_oaep_encrypt:        ; @mbedtls_rsa_rsaes_oaep_encrypt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x26, x7
	mov	x25, x6
	mov	x28, x5
	mov	x23, x4
	mov	x22, x3
	mov	x19, x2
	mov	x21, x1
	mov	x20, 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, [x20]
Lloh3:
	adrp	x9, _MBEDTLS_RSA_PKCS_V21@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MBEDTLS_RSA_PKCS_V21@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
LBB0_2:
	cbz	x21, LBB0_5
; %bb.3:
	ldr	w0, [x20, #16]
	bl	_mbedtls_md_info_from_type
	cbz	x0, LBB0_5
; %bb.4:
	mov	x24, x0
	str	x19, [sp, #40]                  ; 8-byte Folded Spill
	ldr	x27, [x20, #8]
	bl	_mbedtls_md_get_size
	lsl	w8, w0, #1
	add	x19, x8, x25
	add	x8, x19, #2
	cmp	x8, x25
	str	x27, [sp, #48]                  ; 8-byte Folded Spill
	ccmp	x27, x8, #0, hs
	b.hs	LBB0_7
LBB0_5:
Lloh6:
	adrp	x8, _MBEDTLS_ERR_RSA_BAD_INPUT_DATA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MBEDTLS_ERR_RSA_BAD_INPUT_DATA@GOTPAGEOFF]
Lloh8:
	ldr	w23, [x8]
LBB0_6:
	mov	x0, x23
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_7:
	str	x26, [sp, #16]                  ; 8-byte Folded Spill
	ldr	x27, [x29, #16]
	mov	x26, x0
	mov	x0, x27
	mov	w1, #0
	ldr	x2, [sp, #48]                   ; 8-byte Folded Reload
	bl	_memset
	mov	x1, x27
	strb	wzr, [x1], #1
	str	w26, [sp, #12]                  ; 4-byte Folded Spill
	mov	w2, w26
	ldr	x0, [sp, #40]                   ; 8-byte Folded Reload
	stp	x2, x1, [sp, #24]               ; 16-byte Folded Spill
	blr	x21
	cbz	w0, LBB0_9
; %bb.8:
Lloh9:
	adrp	x8, _MBEDTLS_ERR_RSA_RNG_FAILED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MBEDTLS_ERR_RSA_RNG_FAILED@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	add	w23, w8, w0
	b	LBB0_6
LBB0_9:
	str	x27, [sp]                       ; 8-byte Folded Spill
	ldp	x27, x8, [sp, #24]              ; 16-byte Folded Reload
	add	x26, x8, x27
	mov	x0, x24
	mov	x1, x23
	mov	x2, x28
	mov	x3, x26
	bl	_mbedtls_md
	add	x8, x26, x27
	ldr	x9, [sp, #48]                   ; 8-byte Folded Reload
	sub	x9, x9, x19
	add	x8, x9, x8
	sub	x0, x8, #1
	mov	w9, #1
	sturb	w9, [x8, #-2]
	ldr	x1, [sp, #16]                   ; 8-byte Folded Reload
	mov	x2, x25
	bl	_memcpy
	add	x0, sp, #60
	bl	_mbedtls_md_init
	add	x0, sp, #60
	mov	x1, x24
	mov	w2, #0
	bl	_mbedtls_md_setup
	cbz	w0, LBB0_11
; %bb.10:
	mov	x23, x0
	add	x0, sp, #60
	bl	_mbedtls_md_free
	b	LBB0_6
LBB0_11:
	ldr	x19, [sp]                       ; 8-byte Folded Reload
	ldp	x3, x25, [sp, #24]              ; 16-byte Folded Reload
	add	x8, x19, x3
	add	x23, x8, #1
	mvn	x8, x3
	ldr	x9, [sp, #48]                   ; 8-byte Folded Reload
	add	x24, x9, x8
	add	x4, sp, #60
	mov	x0, x23
	mov	x1, x24
	mov	x2, x25
	bl	_mgf_mask
	add	x4, sp, #60
	mov	x0, x25
	ldr	w1, [sp, #12]                   ; 4-byte Folded Reload
	mov	x2, x23
	mov	x3, x24
	bl	_mgf_mask
	add	x0, sp, #60
	bl	_mbedtls_md_free
Lloh12:
	adrp	x8, _MBEDTLS_RSA_PUBLIC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MBEDTLS_RSA_PUBLIC@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	mov	x0, x20
	cmp	w8, w22
	b.ne	LBB0_13
; %bb.12:
	mov	x1, x19
	mov	x2, x19
	bl	_mbedtls_rsa_public
	b	LBB0_14
LBB0_13:
	mov	x1, x21
	ldr	x2, [sp, #40]                   ; 8-byte Folded Reload
	mov	x3, x19
	mov	x4, x19
	bl	_mbedtls_rsa_private
LBB0_14:
	mov	x23, x0
	b	LBB0_6
	.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
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_RSA_PRIVATE,4,2        ; @MBEDTLS_RSA_PRIVATE
	.comm	_MBEDTLS_RSA_PKCS_V21,8,3       ; @MBEDTLS_RSA_PKCS_V21
	.comm	_MBEDTLS_ERR_RSA_BAD_INPUT_DATA,4,2 ; @MBEDTLS_ERR_RSA_BAD_INPUT_DATA
	.comm	_MBEDTLS_ERR_RSA_RNG_FAILED,4,2 ; @MBEDTLS_ERR_RSA_RNG_FAILED
	.comm	_MBEDTLS_RSA_PUBLIC,4,2         ; @MBEDTLS_RSA_PUBLIC
.subsections_via_symbols
