	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_crypto_rsa_import_private_key  ## -- Begin function crypto_rsa_import_private_key
	.p2align	4, 0x90
_crypto_rsa_import_private_key:         ## @crypto_rsa_import_private_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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	$72, %edi
	callq	_os_zalloc
	testq	%rax, %rax
	je	LBB0_21
## %bb.1:
	movq	%rax, %rbx
	movl	$1, (%rax)
	xorl	%eax, %eax
	callq	_bignum_init
	movq	%rax, 64(%rbx)
	xorl	%eax, %eax
	callq	_bignum_init
	movq	%rax, 56(%rbx)
	xorl	%eax, %eax
	callq	_bignum_init
	movq	%rax, 48(%rbx)
	xorl	%eax, %eax
	callq	_bignum_init
	movq	%rax, 40(%rbx)
	xorl	%eax, %eax
	callq	_bignum_init
	movq	%rax, 32(%rbx)
	xorl	%eax, %eax
	callq	_bignum_init
	movq	%rax, 24(%rbx)
	xorl	%eax, %eax
	callq	_bignum_init
	movq	%rax, 16(%rbx)
	xorl	%eax, %eax
	callq	_bignum_init
	movq	%rax, 8(%rbx)
	cmpq	$0, 64(%rbx)
	je	LBB0_20
## %bb.2:
	cmpq	$0, 56(%rbx)
	je	LBB0_20
## %bb.3:
	cmpq	$0, 48(%rbx)
	je	LBB0_20
## %bb.4:
	cmpq	$0, 40(%rbx)
	je	LBB0_20
## %bb.5:
	cmpq	$0, 32(%rbx)
	je	LBB0_20
## %bb.6:
	cmpq	$0, 24(%rbx)
	je	LBB0_20
## %bb.7:
	cmpq	$0, 16(%rbx)
	je	LBB0_20
## %bb.8:
	testq	%rax, %rax
	je	LBB0_20
## %bb.9:
	leaq	-64(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_asn1_get_next
	movq	-64(%rbp), %rdx
	testq	%rax, %rax
	js	LBB0_12
## %bb.10:
	movq	_ASN1_CLASS_UNIVERSAL@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_12
## %bb.11:
	movq	-56(%rbp), %rax
	movq	_ASN1_TAG_SEQUENCE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.13:
	movq	-40(%rbp), %r12
	movslq	-48(%rbp), %r14
	xorl	%eax, %eax
	callq	_bignum_init
	testq	%rax, %rax
	je	LBB0_20
## %bb.14:
	movq	%rax, %r15
	leaq	(%r12,%r14,4), %r14
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%rax, %rdx
	callq	_crypto_rsa_parse_integer
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	%rax, %r12
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_bignum_cmp_d
	testq	%rax, %rax
	je	LBB0_17
LBB0_16:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	%r15, %rdi
	callq	_bignum_deinit
	jmp	LBB0_20
LBB0_12:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-56(%rbp), %rcx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_20:
	movq	%rbx, %rdi
	callq	_crypto_rsa_free
LBB0_21:
	xorl	%ebx, %ebx
LBB0_22:
	movq	%rbx, %rax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	%r15, %rdi
	callq	_bignum_deinit
	movq	64(%rbx), %rdx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_crypto_rsa_parse_integer
	movq	56(%rbx), %rdx
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_crypto_rsa_parse_integer
	movq	48(%rbx), %rdx
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_crypto_rsa_parse_integer
	movq	40(%rbx), %rdx
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_crypto_rsa_parse_integer
	movq	32(%rbx), %rdx
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_crypto_rsa_parse_integer
	movq	24(%rbx), %rdx
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_crypto_rsa_parse_integer
	movq	16(%rbx), %rdx
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_crypto_rsa_parse_integer
	movq	8(%rbx), %rdx
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_crypto_rsa_parse_integer
	testq	%rax, %rax
	je	LBB0_20
## %bb.18:
	cmpq	%r14, %rax
	je	LBB0_22
## %bb.19:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	subq	%rax, %r14
	shrq	$2, %r14
	leaq	L_.str.2(%rip), %rsi
	movq	%rax, %rdx
	movl	%r14d, %ecx
	callq	_wpa_hexdump
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_ASN1_CLASS_UNIVERSAL,8,3       ## @ASN1_CLASS_UNIVERSAL
	.comm	_ASN1_TAG_SEQUENCE,8,3          ## @ASN1_TAG_SEQUENCE
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RSA: Expected SEQUENCE (public key) - found class %d tag 0x%x"

L_.str.1:                               ## @.str.1
	.asciz	"RSA: Expected zero INTEGER in the beginning of private key; not found"

L_.str.2:                               ## @.str.2
	.asciz	"RSA: Extra data in public key SEQUENCE"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_crypto_rsa_import_private_key  ; -- Begin function crypto_rsa_import_private_key
	.p2align	2
_crypto_rsa_import_private_key:         ; @crypto_rsa_import_private_key
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x20, x1
	mov	x21, x0
	mov	w0, #72
	bl	_os_zalloc
	mov	x19, x0
	cbz	x0, LBB0_18
; %bb.1:
	mov	w8, #1
	str	w8, [x19]
	bl	_bignum_init
	str	x0, [x19, #64]
	bl	_bignum_init
	str	x0, [x19, #56]
	bl	_bignum_init
	str	x0, [x19, #48]
	bl	_bignum_init
	str	x0, [x19, #40]
	bl	_bignum_init
	str	x0, [x19, #32]
	bl	_bignum_init
	str	x0, [x19, #24]
	bl	_bignum_init
	str	x0, [x19, #16]
	bl	_bignum_init
	str	x0, [x19, #8]
	ldr	x8, [x19, #64]
	cbz	x8, LBB0_17
; %bb.2:
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_17
; %bb.3:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_17
; %bb.4:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_17
; %bb.5:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_17
; %bb.6:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_17
; %bb.7:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_17
; %bb.8:
	cbz	x0, LBB0_17
; %bb.9:
	add	x2, sp, #16
	mov	x0, x21
	mov	x1, x20
	bl	_asn1_get_next
	ldr	x8, [sp, #16]
	tbnz	x0, #63, LBB0_16
; %bb.10:
Lloh0:
	adrp	x9, _ASN1_CLASS_UNIVERSAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ASN1_CLASS_UNIVERSAL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.11:
	ldr	x9, [sp, #24]
Lloh3:
	adrp	x10, _ASN1_TAG_SEQUENCE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _ASN1_TAG_SEQUENCE@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_16
; %bb.12:
	ldr	x22, [sp, #40]
	ldrsw	x20, [sp, #32]
	bl	_bignum_init
	cbz	x0, LBB0_17
; %bb.13:
	mov	x21, x0
	add	x20, x22, x20, lsl #2
	mov	x0, x22
	mov	x1, x20
	mov	x2, x21
	bl	_crypto_rsa_parse_integer
	cbz	x0, LBB0_15
; %bb.14:
	mov	x22, x0
	mov	x0, x21
	mov	w1, #0
	bl	_bignum_cmp_d
	cbz	x0, LBB0_19
LBB0_15:
Lloh6:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MSG_DEBUG@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, x21
	bl	_bignum_deinit
	b	LBB0_17
LBB0_16:
Lloh11:
	adrp	x9, _MSG_DEBUG@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MSG_DEBUG@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x9]
	ldr	x9, [sp, #24]
	stp	x8, x9, [sp]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
LBB0_17:
	mov	x0, x19
	bl	_crypto_rsa_free
	mov	x19, #0
LBB0_18:
	mov	x0, x19
	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
	add	sp, sp, #96
	ret
LBB0_19:
	mov	x0, x21
	bl	_bignum_deinit
	ldr	x2, [x19, #64]
	mov	x0, x22
	mov	x1, x20
	bl	_crypto_rsa_parse_integer
	ldr	x2, [x19, #56]
	mov	x1, x20
	bl	_crypto_rsa_parse_integer
	ldr	x2, [x19, #48]
	mov	x1, x20
	bl	_crypto_rsa_parse_integer
	ldr	x2, [x19, #40]
	mov	x1, x20
	bl	_crypto_rsa_parse_integer
	ldr	x2, [x19, #32]
	mov	x1, x20
	bl	_crypto_rsa_parse_integer
	ldr	x2, [x19, #24]
	mov	x1, x20
	bl	_crypto_rsa_parse_integer
	ldr	x2, [x19, #16]
	mov	x1, x20
	bl	_crypto_rsa_parse_integer
	ldr	x2, [x19, #8]
	mov	x1, x20
	bl	_crypto_rsa_parse_integer
	cbz	x0, LBB0_17
; %bb.20:
	mov	x2, x0
	cmp	x0, x20
	b.eq	LBB0_18
; %bb.21:
Lloh16:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	sub	x8, x20, x2
	lsr	x3, x8, #2
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_wpa_hexdump
	b	LBB0_17
	.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
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_ASN1_CLASS_UNIVERSAL,8,3       ; @ASN1_CLASS_UNIVERSAL
	.comm	_ASN1_TAG_SEQUENCE,8,3          ; @ASN1_TAG_SEQUENCE
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RSA: Expected SEQUENCE (public key) - found class %d tag 0x%x"

l_.str.1:                               ; @.str.1
	.asciz	"RSA: Expected zero INTEGER in the beginning of private key; not found"

l_.str.2:                               ; @.str.2
	.asciz	"RSA: Extra data in public key SEQUENCE"

.subsections_via_symbols
