	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function openssh_RSA_verify
_openssh_RSA_verify:                    ## @openssh_RSA_verify
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -88(%rbp)                  ## 8-byte Spill
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movq	%rcx, %rbx
	movq	%rdx, %r13
	movq	%rsi, %r14
	movl	%edi, %r12d
	movq	$0, -48(%rbp)
	movq	$0, -56(%rbp)
	leaq	-56(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	callq	_rsa_hash_alg_oid
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_15
## %bb.1:
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movl	%r12d, %edi
	callq	_ssh_digest_bytes
	cmpq	%r13, %rax
	jne	LBB0_10
## %bb.2:
	movq	%r15, %rbx
	movq	%r15, %rdi
	callq	_RSA_size
	movq	%rax, %r12
	testq	%rax, %rax
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_11
## %bb.3:
	leaq	-1(%r15), %rax
	cmpq	%r12, %rax
	jae	LBB0_11
## %bb.4:
	movq	_SSHBUF_MAX_BIGNUM@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	ja	LBB0_11
## %bb.5:
	movq	%r12, %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_16
## %bb.6:
	movq	%rax, %r14
	movq	_RSA_PKCS1_PADDING@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	movq	%rbx, %rcx
	callq	_RSA_public_decrypt
	testl	%eax, %eax
	js	LBB0_17
## %bb.7:
	movl	%eax, %eax
	movq	-48(%rbp), %rdx
	leaq	(%rdx,%r13), %rcx
	cmpq	%rax, %rcx
	jne	LBB0_18
## %bb.8:
	movq	-56(%rbp), %rsi
	movq	%r14, %rdi
	callq	_timingsafe_bcmp
	movq	%rax, %rbx
	movq	-48(%rbp), %rax
	leaq	(%r14,%rax,4), %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	callq	_timingsafe_bcmp
	xorl	%r15d, %r15d
	orq	%rbx, %rax
	je	LBB0_14
## %bb.9:
	movq	_SSH_ERR_SIGNATURE_INVALID@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_10:
	movq	_SSH_ERR_INVALID_ARGUMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	xorl	%r12d, %r12d
	jmp	LBB0_13
LBB0_11:
	movq	_SSH_ERR_INVALID_ARGUMENT@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %r15d
LBB0_13:
	xorl	%r14d, %r14d
LBB0_14:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_freezero
LBB0_15:
	movl	%r15d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	_SSH_ERR_ALLOC_FAIL@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_17:
	movq	_SSH_ERR_LIBCRYPTO_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_18:
	movq	_SSH_ERR_INVALID_FORMAT@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rax), %r15d
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_SSH_ERR_INTERNAL_ERROR,4,2     ## @SSH_ERR_INTERNAL_ERROR
	.comm	_SSH_ERR_INVALID_ARGUMENT,4,2   ## @SSH_ERR_INVALID_ARGUMENT
	.comm	_SSHBUF_MAX_BIGNUM,8,3          ## @SSHBUF_MAX_BIGNUM
	.comm	_SSH_ERR_ALLOC_FAIL,4,2         ## @SSH_ERR_ALLOC_FAIL
	.comm	_RSA_PKCS1_PADDING,4,2          ## @RSA_PKCS1_PADDING
	.comm	_SSH_ERR_LIBCRYPTO_ERROR,4,2    ## @SSH_ERR_LIBCRYPTO_ERROR
	.comm	_SSH_ERR_INVALID_FORMAT,4,2     ## @SSH_ERR_INVALID_FORMAT
	.comm	_SSH_ERR_SIGNATURE_INVALID,4,2  ## @SSH_ERR_SIGNATURE_INVALID
	.no_dead_strip	_openssh_RSA_verify
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function openssh_RSA_verify
_openssh_RSA_verify:                    ; @openssh_RSA_verify
	.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	x23, x5
	mov	x25, x4
	mov	x24, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	stp	xzr, xzr, [sp]
	mov	x1, sp
	add	x2, sp, #8
	bl	_rsa_hash_alg_oid
	mov	x26, x0
	cbnz	w0, LBB0_13
; %bb.1:
	mov	x0, x19
	bl	_ssh_digest_bytes
	cmp	x0, x21
	b.ne	LBB0_9
; %bb.2:
	mov	x0, x23
	bl	_RSA_size
	mov	x19, x0
	cbz	x0, LBB0_10
; %bb.3:
	sub	x8, x25, #1
	cmp	x8, x19
	b.hs	LBB0_10
; %bb.4:
Lloh0:
	adrp	x8, _SSHBUF_MAX_BIGNUM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSHBUF_MAX_BIGNUM@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x19, x8
	b.hi	LBB0_10
; %bb.5:
	mov	x0, x19
	bl	_malloc
	mov	x20, x0
	cbz	x0, LBB0_14
; %bb.6:
Lloh3:
	adrp	x8, _RSA_PKCS1_PADDING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RSA_PKCS1_PADDING@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
	mov	x0, x25
	mov	x1, x24
	mov	x2, x20
	mov	x3, x23
	bl	_RSA_public_decrypt
	tbnz	w0, #31, LBB0_15
; %bb.7:
	ldr	x2, [sp, #8]
	add	x8, x2, x21
	cmp	x8, w0, uxtw
	b.ne	LBB0_16
; %bb.8:
	ldr	x1, [sp]
	mov	x0, x20
	bl	_timingsafe_bcmp
	mov	x23, x0
	ldr	x8, [sp, #8]
	add	x0, x20, x8, lsl #2
	mov	x1, x22
	mov	x2, x21
	bl	_timingsafe_bcmp
	orr	x8, x23, x0
Lloh6:
	adrp	x9, _SSH_ERR_SIGNATURE_INVALID@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SSH_ERR_SIGNATURE_INVALID@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	x8, #0
	csel	w26, wzr, w9, eq
	b	LBB0_12
LBB0_9:
	mov	x19, #0
LBB0_10:
	mov	x20, #0
Lloh9:
	adrp	x8, _SSH_ERR_INVALID_ARGUMENT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SSH_ERR_INVALID_ARGUMENT@GOTPAGEOFF]
LBB0_11:
	ldr	w26, [x8]
LBB0_12:
	mov	x0, x20
	mov	x1, x19
	bl	_freezero
LBB0_13:
	mov	x0, x26
	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
LBB0_14:
Lloh11:
	adrp	x8, _SSH_ERR_ALLOC_FAIL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SSH_ERR_ALLOC_FAIL@GOTPAGEOFF]
	b	LBB0_11
LBB0_15:
Lloh13:
	adrp	x8, _SSH_ERR_LIBCRYPTO_ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SSH_ERR_LIBCRYPTO_ERROR@GOTPAGEOFF]
	b	LBB0_11
LBB0_16:
Lloh15:
	adrp	x8, _SSH_ERR_INVALID_FORMAT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SSH_ERR_INVALID_FORMAT@GOTPAGEOFF]
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_SSH_ERR_INTERNAL_ERROR,4,2     ; @SSH_ERR_INTERNAL_ERROR
	.comm	_SSH_ERR_INVALID_ARGUMENT,4,2   ; @SSH_ERR_INVALID_ARGUMENT
	.comm	_SSHBUF_MAX_BIGNUM,8,3          ; @SSHBUF_MAX_BIGNUM
	.comm	_SSH_ERR_ALLOC_FAIL,4,2         ; @SSH_ERR_ALLOC_FAIL
	.comm	_RSA_PKCS1_PADDING,4,2          ; @RSA_PKCS1_PADDING
	.comm	_SSH_ERR_LIBCRYPTO_ERROR,4,2    ; @SSH_ERR_LIBCRYPTO_ERROR
	.comm	_SSH_ERR_INVALID_FORMAT,4,2     ; @SSH_ERR_INVALID_FORMAT
	.comm	_SSH_ERR_SIGNATURE_INVALID,4,2  ; @SSH_ERR_SIGNATURE_INVALID
	.no_dead_strip	_openssh_RSA_verify
.subsections_via_symbols
