	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_crypto_public_key_decrypt_pkcs1 ## -- Begin function crypto_public_key_decrypt_pkcs1
	.p2align	4, 0x90
_crypto_public_key_decrypt_pkcs1:       ## @crypto_public_key_decrypt_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%r8, %r14
	movq	%rcx, %rbx
	movq	%rdi, %r9
	movq	(%r8), %rax
	movq	%rax, -24(%rbp)
	movq	_PK_PUBLIC@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-24(%rbp), %rcx
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	movq	%rbx, %rdx
	callq	_rsa_exptmod
	movq	_CRYPT_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_10
## %bb.1:
	movq	-24(%rbp), %rdx
	cmpq	$27, %rdx
	jb	LBB0_11
## %bb.2:
	cmpl	$0, (%rbx)
	jne	LBB0_11
## %bb.3:
	cmpl	$1, 4(%rbx)
	jne	LBB0_11
## %bb.4:
	cmpl	$255, 8(%rbx)
	jne	LBB0_11
## %bb.5:
	leaq	12(%rbx), %rsi
	leaq	(%rbx,%rdx,4), %rax
	cmpq	$4, %rdx
	jl	LBB0_8
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_15
## %bb.9:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_12
LBB0_10:
	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
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_13
LBB0_11:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_12:
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_13:
	movl	$-1, %eax
LBB0_14:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_15:
	leaq	64(%rsi), %rcx
	cmpq	%rax, %rcx
	jae	LBB0_17
## %bb.16:
	cmpl	$0, (%rsi)
	je	LBB0_18
LBB0_17:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_12
LBB0_18:
	addq	$4, %rsi
	movq	%rsi, %rax
	subq	%rbx, %rax
	sarq	$2, %rax
	subq	%rax, %rdx
	movq	%rdx, -24(%rbp)
	movq	%rbx, %rdi
	callq	_os_memmove
	movq	-24(%rbp), %rax
	movq	%rax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_PK_PUBLIC,4,2                  ## @PK_PUBLIC
	.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"

	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
L_.str.1:                               ## @.str.1
	.asciz	"LibTomCrypt: Invalid signature EB structure"

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	_crypto_public_key_decrypt_pkcs1 ; -- Begin function crypto_public_key_decrypt_pkcs1
	.p2align	2
_crypto_public_key_decrypt_pkcs1:       ; @crypto_public_key_decrypt_pkcs1
	.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	x5, x0
	ldr	x8, [x4]
	str	x8, [sp, #8]
Lloh0:
	adrp	x8, _PK_PUBLIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PK_PUBLIC@GOTPAGEOFF]
Lloh2:
	ldr	w4, [x8]
	add	x3, sp, #8
	mov	x0, x1
	mov	x1, x2
	mov	x2, x20
	bl	_rsa_exptmod
Lloh3:
	adrp	x8, _CRYPT_OK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CRYPT_OK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_10
; %bb.1:
	ldr	x8, [sp, #8]
	cmp	x8, #27
	b.lo	LBB0_11
; %bb.2:
	ldr	w9, [x20]
	cbnz	w9, LBB0_11
; %bb.3:
	ldr	w9, [x20, #4]
	cmp	w9, #1
	b.ne	LBB0_11
; %bb.4:
	ldr	w9, [x20, #8]
	cmp	w9, #255
	b.ne	LBB0_11
; %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_14
; %bb.9:
Lloh6:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_12
LBB0_10:
Lloh11:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh13:
	ldr	w19, [x8]
	bl	_error_to_string
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	b	LBB0_12
LBB0_11:
Lloh16:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_12:
	bl	_wpa_printf
	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:
	add	x11, x9, #64
	cmp	x11, x10
	b.hs	LBB0_16
; %bb.15:
	ldr	w10, [x9]
	cbz	w10, LBB0_17
LBB0_16:
Lloh21:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_12
LBB0_17:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_PK_PUBLIC,4,2                  ; @PK_PUBLIC
	.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"

	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
l_.str.1:                               ; @.str.1
	.asciz	"LibTomCrypt: Invalid signature EB structure"

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
