	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_rsa_oaep
_test_rsa_oaep:                         ## @test_rsa_oaep
	.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	$792, %rsp                      ## imm = 0x318
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %edx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-824(%rbp), %rdi
	leaq	-816(%rbp), %rsi
	callq	_rsa_setkey
	movl	%eax, %r14d
	movq	-824(%rbp), %rcx
	movq	_RSA_PKCS1_OAEP_PADDING@GOTPCREL(%rip), %r13
	movl	(%r13), %r8d
	leaq	_test_rsa_oaep.ptext_ex(%rip), %rsi
	leaq	-560(%rbp), %rdx
	movl	$8, %edi
	callq	_RSA_public_encrypt
	movl	%eax, %ebx
	cmpl	$-1, %eax
	je	LBB0_13
LBB0_1:
	movl	%ebx, %edi
	movl	%r14d, %esi
	callq	_TEST_int_eq
	xorl	%r15d, %r15d
	testl	%eax, %eax
	je	LBB0_16
## %bb.2:
	movq	-824(%rbp), %rcx
	movl	(%r13), %r8d
	leaq	-560(%rbp), %rsi
	leaq	-304(%rbp), %r12
	movl	%ebx, %edi
	movq	%r12, %rdx
	callq	_RSA_private_decrypt
	leaq	_test_rsa_oaep.ptext_ex(%rip), %rdx
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	$8, %ecx
	callq	_TEST_mem_eq
	testl	%eax, %eax
	je	LBB0_16
## %bb.3:
	movq	-824(%rbp), %rcx
	movl	(%r13), %r8d
	leaq	-816(%rbp), %rsi
	leaq	-304(%rbp), %rbx
	movl	%r14d, %edi
	movq	%rbx, %rdx
	callq	_RSA_private_decrypt
	leaq	_test_rsa_oaep.ptext_ex(%rip), %rdx
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$8, %ecx
	callq	_TEST_mem_eq
	testl	%eax, %eax
	je	LBB0_16
## %bb.4:
	testl	%r14d, %r14d
	jle	LBB0_8
## %bb.5:
	movl	%r14d, %r13d
	xorl	%r15d, %r15d
	leaq	-304(%rbp), %rbx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	xorb	$1, -560(%rbp,%r12)
	movq	-824(%rbp), %rcx
	movq	_RSA_PKCS1_OAEP_PADDING@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	%r14d, %edi
	leaq	-560(%rbp), %rsi
	movq	%rbx, %rdx
	callq	_RSA_private_decrypt
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_TEST_int_le
	testl	%eax, %eax
	je	LBB0_16
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	xorb	$1, -560(%rbp,%r12)
	incq	%r12
	cmpq	%r12, %r13
	jne	LBB0_6
LBB0_8:
	testl	%r14d, %r14d
	js	LBB0_15
## %bb.9:
	movl	$-1, %ebx
	leaq	-304(%rbp), %r12
	movq	_RSA_PKCS1_OAEP_PADDING@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	-824(%rbp), %rcx
	movl	(%r13), %r8d
	movl	%ebx, %edi
	leaq	-560(%rbp), %rsi
	movq	%r12, %rdx
	callq	_RSA_private_decrypt
	xorl	%r15d, %r15d
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_TEST_int_le
	testl	%eax, %eax
	je	LBB0_16
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	incl	%ebx
	cmpl	%ebx, %r14d
	jne	LBB0_10
	jmp	LBB0_15
LBB0_13:
	xorl	%eax, %eax
	callq	_pad_unknown
	testq	%rax, %rax
	je	LBB0_1
## %bb.14:
	leaq	L_.str(%rip), %rdi
	callq	_TEST_info
LBB0_15:
	movl	$1, %r15d
LBB0_16:
	movq	-824(%rbp), %rdi
	callq	_RSA_free
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_19
## %bb.17:
	movl	%r15d, %eax
	addq	$792, %rsp                      ## imm = 0x318
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
_test_rsa_oaep.ptext_ex:                ## @test_rsa_oaep.ptext_ex
	.asciz	"T\205\2334,I\352*"

	.comm	_RSA_PKCS1_OAEP_PADDING,4,2     ## @RSA_PKCS1_OAEP_PADDING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Skipping: No OAEP support"

	.no_dead_strip	_test_rsa_oaep
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_rsa_oaep
_test_rsa_oaep:                         ; @test_rsa_oaep
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -56
	.cfi_offset w28, -64
	sub	sp, sp, #784
	mov	x2, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	mov	x0, sp
	add	x1, sp, #8
	bl	_rsa_setkey
	mov	x19, x0
	ldr	x3, [sp]
Lloh3:
	adrp	x21, _RSA_PKCS1_OAEP_PADDING@GOTPAGE
Lloh4:
	ldr	x21, [x21, _RSA_PKCS1_OAEP_PADDING@GOTPAGEOFF]
	ldr	w4, [x21]
Lloh5:
	adrp	x1, _test_rsa_oaep.ptext_ex@PAGE
Lloh6:
	add	x1, x1, _test_rsa_oaep.ptext_ex@PAGEOFF
	add	x2, sp, #264
	mov	w0, #8
	bl	_RSA_public_encrypt
	mov	x20, x0
	cmn	w0, #1
	b.eq	LBB0_13
LBB0_1:
	mov	x0, x20
	mov	x1, x19
	bl	_TEST_int_eq
	cbz	w0, LBB0_12
; %bb.2:
	ldr	x3, [sp]
	ldr	w4, [x21]
	add	x1, sp, #264
	add	x2, sp, #520
	mov	x0, x20
	bl	_RSA_private_decrypt
	mov	x1, x0
Lloh7:
	adrp	x2, _test_rsa_oaep.ptext_ex@PAGE
Lloh8:
	add	x2, x2, _test_rsa_oaep.ptext_ex@PAGEOFF
	add	x0, sp, #520
	mov	w3, #8
	bl	_TEST_mem_eq
	cbz	w0, LBB0_12
; %bb.3:
	ldr	x3, [sp]
	ldr	w4, [x21]
	add	x1, sp, #8
	add	x2, sp, #520
	mov	x0, x19
	bl	_RSA_private_decrypt
	mov	x1, x0
Lloh9:
	adrp	x2, _test_rsa_oaep.ptext_ex@PAGE
Lloh10:
	add	x2, x2, _test_rsa_oaep.ptext_ex@PAGEOFF
	add	x0, sp, #520
	mov	w3, #8
	bl	_TEST_mem_eq
	cbz	w0, LBB0_12
; %bb.4:
	cmp	w19, #1
	b.lt	LBB0_8
; %bb.5:
	mov	w20, w19
	add	x22, sp, #264
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x22]
	eor	w8, w8, #0x1
	strb	w8, [x22]
	ldr	x3, [sp]
	ldr	w4, [x21]
	add	x1, sp, #264
	add	x2, sp, #520
	mov	x0, x19
	bl	_RSA_private_decrypt
	mov	w1, #0
	bl	_TEST_int_le
	cbz	w0, LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldrb	w8, [x22]
	eor	w8, w8, #0x1
	strb	w8, [x22], #1
	subs	x20, x20, #1
	b.ne	LBB0_6
LBB0_8:
	tbnz	w19, #31, LBB0_15
; %bb.9:
	mov	w20, #-1
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x3, [sp]
	ldr	w4, [x21]
	add	x1, sp, #264
	add	x2, sp, #520
	mov	x0, x20
	bl	_RSA_private_decrypt
	mov	w1, #0
	bl	_TEST_int_le
	cbz	w0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	w20, w20, #1
	cmp	w19, w20
	b.ne	LBB0_10
	b	LBB0_15
LBB0_12:
	mov	w19, #0
	b	LBB0_16
LBB0_13:
	bl	_pad_unknown
	cbz	x0, LBB0_1
; %bb.14:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TEST_info
LBB0_15:
	mov	w19, #1
LBB0_16:
	ldr	x0, [sp]
	bl	_RSA_free
	ldur	x8, [x29, #-56]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	mov	x0, x19
	add	sp, sp, #784
	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
	ldp	x28, x27, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
_test_rsa_oaep.ptext_ex:                ; @test_rsa_oaep.ptext_ex
	.asciz	"T\205\2334,I\352*"

	.comm	_RSA_PKCS1_OAEP_PADDING,4,2     ; @RSA_PKCS1_OAEP_PADDING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Skipping: No OAEP support"

	.no_dead_strip	_test_rsa_oaep
.subsections_via_symbols
