	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_crypto_private_key_import      ## -- Begin function crypto_private_key_import
	.p2align	4, 0x90
_crypto_private_key_import:             ## @crypto_private_key_import
	.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	%rsi, %r14
	movq	%rdi, %r15
	movl	$8, %edi
	callq	_os_zalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rbx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rax, %rdx
	callq	_rsa_import
	movl	%eax, %r14d
	movq	_CRYPT_OK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_2
## %bb.3:
	movq	(%rbx), %rax
	movq	_PK_PRIVATE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.4:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%rbx, %rdi
	callq	_rsa_free
	jmp	LBB0_5
LBB0_2:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%r14d, %edi
	callq	_error_to_string
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edi
	movl	%r14d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_5:
	movq	%rbx, %rdi
	callq	_os_free
LBB0_6:
	xorl	%ebx, %ebx
LBB0_7:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CRYPT_OK,4,2                   ## @CRYPT_OK
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LibTomCrypt: Failed to import private key (res=%d '%s')"

	.comm	_PK_PRIVATE,8,3                 ## @PK_PRIVATE
L_.str.1:                               ## @.str.1
	.asciz	"LibTomCrypt: Private key was not of correct type"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_crypto_private_key_import      ; -- Begin function crypto_private_key_import
	.p2align	2
_crypto_private_key_import:             ; @crypto_private_key_import
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x21, x0
	mov	w0, #8
	bl	_os_zalloc
	mov	x19, x0
	cbz	x0, LBB0_6
; %bb.1:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_rsa_import
Lloh0:
	adrp	x8, _CRYPT_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CRYPT_OK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.2:
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _PK_PRIVATE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PK_PRIVATE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.3:
Lloh6:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_wpa_printf
	mov	x0, x19
	bl	_rsa_free
	b	LBB0_5
LBB0_4:
	mov	x20, x0
Lloh11:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w21, [x8]
	bl	_error_to_string
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x20, x0, [sp]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_wpa_printf
LBB0_5:
	mov	x0, x19
	bl	_os_free
	mov	x19, #0
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_CRYPT_OK,4,2                   ; @CRYPT_OK
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LibTomCrypt: Failed to import private key (res=%d '%s')"

	.comm	_PK_PRIVATE,8,3                 ; @PK_PRIVATE
l_.str.1:                               ; @.str.1
	.asciz	"LibTomCrypt: Private key was not of correct type"

.subsections_via_symbols
