	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pkcs1_decrypt_public_key       ## -- Begin function pkcs1_decrypt_public_key
	.p2align	4, 0x90
_pkcs1_decrypt_public_key:              ## @pkcs1_decrypt_public_key
	.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	(%r15), %rax
	movq	%rax, -32(%rbp)
	leaq	-32(%rbp), %rcx
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	movq	%rbx, %rdx
	xorl	%r9d, %r9d
	callq	_crypto_rsa_exptmod
	movl	$-1, %r14d
	testq	%rax, %rax
	js	LBB0_12
## %bb.1:
	movq	-32(%rbp), %rdx
	cmpq	$27, %rdx
	jb	LBB0_10
## %bb.2:
	cmpl	$0, (%rbx)
	jne	LBB0_10
## %bb.3:
	cmpl	$1, 4(%rbx)
	jne	LBB0_10
## %bb.4:
	cmpl	$255, 8(%rbx)
	jne	LBB0_13
## %bb.5:
	leaq	12(%rbx), %rsi
	leaq	(%rbx,%rdx,4), %rax
	cmpq	$4, %rdx
	jl	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$255, (%rsi)
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	addq	$4, %rsi
	cmpq	%rax, %rsi
	jb	LBB0_6
LBB0_8:
	movq	%rsi, %rcx
	subq	%rbx, %rcx
	cmpq	$39, %rcx
	jg	LBB0_14
## %bb.9:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_11
LBB0_10:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
LBB0_11:
	callq	_wpa_printf
LBB0_12:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_11
LBB0_14:
	leaq	64(%rsi), %rcx
	cmpq	%rax, %rcx
	jae	LBB0_16
## %bb.15:
	cmpl	$0, (%rsi)
	je	LBB0_17
LBB0_16:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_11
LBB0_17:
	addq	$4, %rsi
	movq	%rsi, %rax
	subq	%rbx, %rax
	sarq	$2, %rax
	subq	%rax, %rdx
	movq	%rdx, -32(%rbp)
	movq	%rbx, %rdi
	callq	_os_memmove
	movq	-32(%rbp), %rax
	movq	%rax, (%r15)
	xorl	%r14d, %r14d
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LibTomCrypt: Invalid signature EB structure"

L_.str.1:                               ## @.str.1
	.asciz	"LibTomCrypt: Invalid signature PS (BT=01)"

L_.str.2:                               ## @.str.2
	.asciz	"LibTomCrypt: Too short signature padding"

L_.str.3:                               ## @.str.3
	.asciz	"LibTomCrypt: Invalid signature EB structure (2)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pkcs1_decrypt_public_key       ; -- Begin function pkcs1_decrypt_public_key
	.p2align	2
_pkcs1_decrypt_public_key:              ; @pkcs1_decrypt_public_key
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x4
	mov	x20, x3
	mov	x4, x0
	ldr	x8, [x19]
	str	x8, [sp, #8]
	add	x3, sp, #8
	mov	x0, x1
	mov	x1, x2
	mov	x2, x20
	mov	w5, #0
	bl	_crypto_rsa_exptmod
	tbnz	x0, #63, LBB0_12
; %bb.1:
	ldr	x8, [sp, #8]
	cmp	x8, #27
	b.lo	LBB0_10
; %bb.2:
	ldr	w9, [x20]
	cbnz	w9, LBB0_10
; %bb.3:
	ldr	w9, [x20, #4]
	cmp	w9, #1
	b.ne	LBB0_10
; %bb.4:
	ldr	w9, [x20, #8]
	cmp	w9, #255
	b.ne	LBB0_14
; %bb.5:
	add	x9, x20, #12
	add	x10, x20, x8, lsl #2
	cmp	x8, #4
	b.lt	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x9]
	cmp	w11, #255
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x9, x9, #4
	cmp	x9, x10
	b.lo	LBB0_6
LBB0_8:
	sub	x11, x9, x20
	cmp	x11, #39
	b.gt	LBB0_15
; %bb.9:
Lloh0:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str.2@PAGE
Lloh4:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_10:
Lloh5:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
LBB0_11:
	bl	_wpa_printf
LBB0_12:
	mov	w0, #-1
LBB0_13:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_14:
Lloh10:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_15:
	add	x11, x9, #64
	cmp	x11, x10
	b.hs	LBB0_17
; %bb.16:
	ldr	w10, [x9]
	cbz	w10, LBB0_18
LBB0_17:
Lloh15:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_11
LBB0_18:
	add	x1, x9, #4
	sub	x9, x1, x20
	sub	x2, x8, x9, asr #2
	str	x2, [sp, #8]
	mov	x0, x20
	bl	_os_memmove
	mov	w0, #0
	ldr	x8, [sp, #8]
	str	x8, [x19]
	b	LBB0_13
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LibTomCrypt: Invalid signature EB structure"

l_.str.1:                               ; @.str.1
	.asciz	"LibTomCrypt: Invalid signature PS (BT=01)"

l_.str.2:                               ; @.str.2
	.asciz	"LibTomCrypt: Too short signature padding"

l_.str.3:                               ; @.str.3
	.asciz	"LibTomCrypt: Invalid signature EB structure (2)"

.subsections_via_symbols
