	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssh_rsa_complete_crt_parameters ## -- Begin function ssh_rsa_complete_crt_parameters
	.p2align	4, 0x90
_ssh_rsa_complete_crt_parameters:       ## @ssh_rsa_complete_crt_parameters
	.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
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.1:
	movq	%rdi, %rbx
	cmpq	$0, (%rdi)
	je	LBB0_15
## %bb.2:
	movq	%rsi, %r13
	movl	8(%rbx), %edi
	callq	_sshkey_type_plain
	movq	_KEY_RSA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.3:
	movq	(%rbx), %rdi
	leaq	-72(%rbp), %rcx
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_RSA_get0_key
	movq	(%rbx), %rdi
	leaq	-88(%rbp), %rsi
	leaq	-80(%rbp), %rdx
	callq	_RSA_get0_factors
	xorl	%eax, %eax
	callq	_BN_CTX_new
	testq	%rax, %rax
	je	LBB0_18
## %bb.4:
	movq	%rax, %r14
	xorl	%eax, %eax
	callq	_BN_new
	testq	%rax, %rax
	je	LBB0_18
## %bb.5:
	movq	%rax, %r15
	xorl	%eax, %eax
	callq	_BN_new
	testq	%rax, %rax
	je	LBB0_18
## %bb.6:
	movq	%rax, %r12
	xorl	%eax, %eax
	callq	_BN_new
	testq	%rax, %rax
	je	LBB0_18
## %bb.7:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %rdi
	callq	_BN_dup
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_19
## %bb.8:
	movq	%r13, %rdi
	callq	_BN_dup
	testq	%rax, %rax
	je	LBB0_19
## %bb.9:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_BN_FLG_CONSTTIME@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_BN_set_flags
	movl	(%r13), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_BN_set_flags
	movq	-80(%rbp), %r13
	xorl	%eax, %eax
	callq	_BN_value_one
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_BN_sub
	testq	%rax, %rax
	je	LBB0_20
## %bb.10:
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	movq	%r14, %rcx
	callq	_BN_mod
	testq	%rax, %rax
	je	LBB0_20
## %bb.11:
	movq	-88(%rbp), %r13
	xorl	%eax, %eax
	callq	_BN_value_one
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_BN_sub
	testq	%rax, %rax
	je	LBB0_20
## %bb.12:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	movq	%r14, %rcx
	callq	_BN_mod
	testq	%rax, %rax
	je	LBB0_20
## %bb.13:
	movq	(%rbx), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rcx
	callq	_RSA_set0_crt_params
	testl	%eax, %eax
	je	LBB0_22
## %bb.14:
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	jmp	LBB0_21
LBB0_15:
	movq	_SSH_ERR_INVALID_ARGUMENT@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	_SSH_ERR_ALLOC_FAIL@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_19:
	movq	_SSH_ERR_ALLOC_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_21
LBB0_20:
	movq	_SSH_ERR_LIBCRYPTO_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	-64(%rbp), %r13                 ## 8-byte Reload
LBB0_21:
	movq	%r15, %rdi
	callq	_BN_clear_free
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_BN_clear_free
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_BN_clear_free
	movq	%r12, %rdi
	callq	_BN_clear_free
	movq	%r13, %rdi
	callq	_BN_clear_free
	movq	%r14, %rdi
	callq	_BN_CTX_free
	jmp	LBB0_17
LBB0_22:
	movq	_SSH_ERR_LIBCRYPTO_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_KEY_RSA,8,3                    ## @KEY_RSA
	.comm	_SSH_ERR_INVALID_ARGUMENT,4,2   ## @SSH_ERR_INVALID_ARGUMENT
	.comm	_SSH_ERR_ALLOC_FAIL,4,2         ## @SSH_ERR_ALLOC_FAIL
	.comm	_BN_FLG_CONSTTIME,4,2           ## @BN_FLG_CONSTTIME
	.comm	_SSH_ERR_LIBCRYPTO_ERROR,4,2    ## @SSH_ERR_LIBCRYPTO_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ssh_rsa_complete_crt_parameters ; -- Begin function ssh_rsa_complete_crt_parameters
	.p2align	2
_ssh_rsa_complete_crt_parameters:       ; @ssh_rsa_complete_crt_parameters
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	cbz	x0, LBB0_15
; %bb.1:
	mov	x22, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_15
; %bb.2:
	mov	x25, x1
	ldr	w0, [x22, #8]
	bl	_sshkey_type_plain
Lloh0:
	adrp	x8, _KEY_RSA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KEY_RSA@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_15
; %bb.3:
	ldr	x0, [x22]
	add	x3, sp, #8
	mov	x1, #0
	mov	x2, #0
	bl	_RSA_get0_key
	ldr	x0, [x22]
	add	x1, sp, #24
	add	x2, sp, #16
	bl	_RSA_get0_factors
	bl	_BN_CTX_new
	cbz	x0, LBB0_18
; %bb.4:
	mov	x19, x0
	bl	_BN_new
	cbz	x0, LBB0_18
; %bb.5:
	mov	x20, x0
	bl	_BN_new
	cbz	x0, LBB0_18
; %bb.6:
	mov	x21, x0
	bl	_BN_new
	cbz	x0, LBB0_18
; %bb.7:
	mov	x23, x0
	ldr	x0, [sp, #8]
	bl	_BN_dup
	mov	x24, x0
	cbz	x0, LBB0_19
; %bb.8:
	mov	x0, x25
	bl	_BN_dup
	cbz	x0, LBB0_19
; %bb.9:
	mov	x25, x0
Lloh3:
	adrp	x26, _BN_FLG_CONSTTIME@GOTPAGE
Lloh4:
	ldr	x26, [x26, _BN_FLG_CONSTTIME@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	x0, x20
	bl	_BN_set_flags
	ldr	w1, [x26]
	mov	x0, x24
	bl	_BN_set_flags
	ldr	x26, [sp, #16]
	bl	_BN_value_one
	mov	x2, x0
	mov	x0, x20
	mov	x1, x26
	bl	_BN_sub
	cbz	x0, LBB0_20
; %bb.10:
	mov	x0, x21
	mov	x1, x24
	mov	x2, x20
	mov	x3, x19
	bl	_BN_mod
	cbz	x0, LBB0_20
; %bb.11:
	ldr	x26, [sp, #24]
	bl	_BN_value_one
	mov	x2, x0
	mov	x0, x20
	mov	x1, x26
	bl	_BN_sub
	cbz	x0, LBB0_20
; %bb.12:
	mov	x0, x23
	mov	x1, x24
	mov	x2, x20
	mov	x3, x19
	bl	_BN_mod
	cbz	x0, LBB0_20
; %bb.13:
	ldr	x0, [x22]
	mov	x1, x23
	mov	x2, x21
	mov	x3, x25
	bl	_RSA_set0_crt_params
	cbz	w0, LBB0_20
; %bb.14:
	mov	x21, #0
	mov	x23, #0
	mov	x25, #0
	mov	w22, #0
	b	LBB0_22
LBB0_15:
Lloh5:
	adrp	x8, _SSH_ERR_INVALID_ARGUMENT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SSH_ERR_INVALID_ARGUMENT@GOTPAGEOFF]
LBB0_16:
	ldr	w22, [x8]
LBB0_17:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_18:
Lloh7:
	adrp	x8, _SSH_ERR_ALLOC_FAIL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SSH_ERR_ALLOC_FAIL@GOTPAGEOFF]
	b	LBB0_16
LBB0_19:
	mov	x25, #0
Lloh9:
	adrp	x8, _SSH_ERR_ALLOC_FAIL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SSH_ERR_ALLOC_FAIL@GOTPAGEOFF]
	b	LBB0_21
LBB0_20:
Lloh11:
	adrp	x8, _SSH_ERR_LIBCRYPTO_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SSH_ERR_LIBCRYPTO_ERROR@GOTPAGEOFF]
LBB0_21:
	ldr	w22, [x8]
LBB0_22:
	mov	x0, x20
	bl	_BN_clear_free
	mov	x0, x24
	bl	_BN_clear_free
	mov	x0, x23
	bl	_BN_clear_free
	mov	x0, x21
	bl	_BN_clear_free
	mov	x0, x25
	bl	_BN_clear_free
	mov	x0, x19
	bl	_BN_CTX_free
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_KEY_RSA,8,3                    ; @KEY_RSA
	.comm	_SSH_ERR_INVALID_ARGUMENT,4,2   ; @SSH_ERR_INVALID_ARGUMENT
	.comm	_SSH_ERR_ALLOC_FAIL,4,2         ; @SSH_ERR_ALLOC_FAIL
	.comm	_BN_FLG_CONSTTIME,4,2           ; @BN_FLG_CONSTTIME
	.comm	_SSH_ERR_LIBCRYPTO_ERROR,4,2    ; @SSH_ERR_LIBCRYPTO_ERROR
.subsections_via_symbols
