	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pkcs1_v15_private_key_decrypt  ## -- Begin function pkcs1_v15_private_key_decrypt
	.p2align	4, 0x90
_pkcs1_v15_private_key_decrypt:         ## @pkcs1_v15_private_key_decrypt
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rcx, %rbx
	movq	%rdi, %r8
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	movq	%rcx, %rdx
	movq	%r15, %rcx
	movl	$1, %r9d
	callq	_crypto_rsa_exptmod
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.1:
	movq	(%r15), %rdx
	movl	$-1, %r14d
	cmpq	$2, %rdx
	jb	LBB0_11
## %bb.2:
	cmpl	$0, (%rbx)
	jne	LBB0_11
## %bb.3:
	cmpl	$2, 4(%rbx)
	jne	LBB0_11
## %bb.4:
	leaq	(%rbx,%rdx,4), %rcx
	movl	$8, %esi
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	leaq	4(%rsi), %rax
	cmpl	$0, (%rbx,%rsi)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	addq	%rbx, %rsi
	cmpq	%rcx, %rsi
	movq	%rax, %rsi
	jb	LBB0_5
LBB0_7:
	leaq	(,%rdx,4), %rcx
	movq	%rax, %rsi
	subq	%rcx, %rsi
	cmpq	$4, %rsi
	je	LBB0_11
## %bb.8:
	leaq	-4(%rax), %rcx
	cmpq	$39, %rcx
	jg	LBB0_10
## %bb.9:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	jmp	LBB0_11
LBB0_10:
	leaq	(%rbx,%rax), %rsi
	sarq	$2, %rax
	subq	%rax, %rdx
	movq	%rdx, (%r15)
	movq	%rbx, %rdi
	callq	_os_memmove
	xorl	%r14d, %r14d
LBB0_11:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LibTomCrypt: Too short padding"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pkcs1_v15_private_key_decrypt  ; -- Begin function pkcs1_v15_private_key_decrypt
	.p2align	2
_pkcs1_v15_private_key_decrypt:         ; @pkcs1_v15_private_key_decrypt
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x4
	mov	x19, x3
	mov	x4, x0
	mov	x0, x1
	mov	x1, x2
	mov	x2, x3
	mov	x3, x20
	mov	w5, #1
	bl	_crypto_rsa_exptmod
	cbnz	w0, LBB0_10
; %bb.1:
	ldr	x8, [x20]
	cmp	x8, #2
	b.lo	LBB0_9
; %bb.2:
	ldr	w9, [x19]
	cbnz	w9, LBB0_9
; %bb.3:
	ldr	w9, [x19, #4]
	cmp	w9, #2
	b.ne	LBB0_9
; %bb.4:
	add	x10, x19, x8, lsl #2
	mov	w9, #8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x11, x19, x9
	ldr	w12, [x11]
	add	x9, x9, #4
	cmp	w12, #0
	ccmp	x11, x10, #2, ne
	b.lo	LBB0_5
; %bb.6:
	sub	x10, x9, x8, lsl #2
	cmp	x10, #4
	b.eq	LBB0_9
; %bb.7:
	sub	x10, x9, #4
	cmp	x10, #39
	b.gt	LBB0_11
; %bb.8:
Lloh0:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
LBB0_9:
	mov	w0, #-1
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_11:
	add	x1, x19, x9
	sub	x2, x8, x9, asr #2
	str	x2, [x20]
	mov	x0, x19
	bl	_os_memmove
	mov	w0, #0
	b	LBB0_10
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LibTomCrypt: Too short padding"

.subsections_via_symbols
