	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function crypto_rsa_encrypt_pkcs1
_crypto_rsa_encrypt_pkcs1:              ## @crypto_rsa_encrypt_pkcs1
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %rbx
	movq	%r8, %r15
	movq	%rcx, %r13
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%edi, %r12d
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movl	(%rsi), %edi
	callq	_mp_unsigned_bin_size
	movq	%rax, %r14
	movl	%r12d, %edi
	movq	16(%rbp), %r12
	movq	%rax, %rsi
	movq	%r13, %rdx
	movq	%r15, %rcx
	movq	%rbx, %r8
	movq	%r12, %r9
	callq	_pkcs1_generate_encryption_block
	movl	$-1, %r15d
	testq	%rax, %rax
	js	LBB0_4
## %bb.1:
	movq	(%r12), %rax
	movq	%rax, -56(%rbp)
	leaq	-56(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	callq	_rsa_exptmod
	movq	_CRYPT_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_2
## %bb.3:
	movq	-56(%rbp), %rax
	movq	%rax, (%r12)
	xorl	%r15d, %r15d
	jmp	LBB0_4
LBB0_2:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	%eax, %edi
	callq	_error_to_string
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_wpa_printf
LBB0_4:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CRYPT_OK,4,2                   ## @CRYPT_OK
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LibTomCrypt: rsa_exptmod failed: %s"

	.no_dead_strip	_crypto_rsa_encrypt_pkcs1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function crypto_rsa_encrypt_pkcs1
_crypto_rsa_encrypt_pkcs1:              ; @crypto_rsa_encrypt_pkcs1
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x6
	mov	x20, x5
	mov	x24, x4
	mov	x25, x3
	mov	x21, x2
	mov	x22, x1
	mov	x26, x0
	ldr	w0, [x1]
	bl	_mp_unsigned_bin_size
	mov	x23, x0
	mov	x0, x26
	mov	x1, x23
	mov	x2, x25
	mov	x3, x24
	mov	x4, x20
	mov	x5, x19
	bl	_pkcs1_generate_encryption_block
	tbnz	x0, #63, LBB0_4
; %bb.1:
	ldr	x8, [x19]
	str	x8, [sp, #8]
	add	x3, sp, #8
	mov	x0, x20
	mov	x1, x23
	mov	x2, x20
	mov	x4, x21
	mov	x5, x22
	bl	_rsa_exptmod
Lloh0:
	adrp	x8, _CRYPT_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CRYPT_OK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_3
; %bb.2:
	mov	w0, #0
	ldr	x8, [sp, #8]
	str	x8, [x19]
	b	LBB0_5
LBB0_3:
Lloh3:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh5:
	ldr	w19, [x8]
	bl	_error_to_string
	mov	x2, x0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_wpa_printf
LBB0_4:
	mov	w0, #-1
LBB0_5:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CRYPT_OK,4,2                   ; @CRYPT_OK
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LibTomCrypt: rsa_exptmod failed: %s"

	.no_dead_strip	_crypto_rsa_encrypt_pkcs1
.subsections_via_symbols
