	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pkcs8_enc_key_import           ## -- Begin function pkcs8_enc_key_import
	.p2align	4, 0x90
_pkcs8_enc_key_import:                  ## @pkcs8_enc_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdx, %rdx
	je	LBB0_13
## %bb.1:
	movq	%rdx, %rbx
	leaq	-72(%rbp), %rdx
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_asn1_get_next
	testq	%rax, %rax
	js	LBB0_12
## %bb.2:
	movq	-72(%rbp), %rax
	movq	_ASN1_CLASS_UNIVERSAL@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_12
## %bb.3:
	movq	-64(%rbp), %rax
	movq	_ASN1_TAG_SEQUENCE@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_12
## %bb.4:
	movq	-56(%rbp), %r14
	movq	-48(%rbp), %r15
	leaq	-72(%rbp), %rdx
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_asn1_get_next
	movq	-72(%rbp), %rdx
	testq	%rax, %rax
	js	LBB0_15
## %bb.5:
	cmpq	(%r12), %rdx
	jne	LBB0_15
## %bb.6:
	movq	-64(%rbp), %rax
	cmpq	(%r13), %rax
	jne	LBB0_15
## %bb.7:
	leaq	(%r15,%r14,4), %rsi
	movq	-56(%rbp), %r14
	movq	-48(%rbp), %r15
	leaq	(%r15,%r14,4), %rdi
	subq	%rdi, %rsi
	shrq	$2, %rsi
	leaq	-72(%rbp), %rdx
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_asn1_get_next
	movq	-72(%rbp), %rdx
	testq	%rax, %rax
	js	LBB0_16
## %bb.8:
	cmpq	(%r12), %rdx
	jne	LBB0_16
## %bb.9:
	movq	-64(%rbp), %rax
	movq	_ASN1_TAG_OCTETSTRING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.10:
	movq	-56(%rbp), %rcx
	movq	-48(%rbp), %rdx
	leaq	-80(%rbp), %r9
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rbx, %r8
	callq	_pkcs5_decrypt
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	movq	%rax, %r14
	movq	-80(%rbp), %rsi
	movq	%rax, %rdi
	callq	_pkcs8_key_import
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_os_free
	jmp	LBB0_14
LBB0_12:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_14
LBB0_13:
	xorl	%ebx, %ebx
LBB0_14:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-64(%rbp), %rcx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_17
LBB0_16:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-64(%rbp), %rcx
	leaq	L_.str.2(%rip), %rsi
LBB0_17:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_14
	.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	"PKCS #8: Does not start with PKCS #8 header (SEQUENCE); assume encrypted PKCS #8 not used"

L_.str.1:                               ## @.str.1
	.asciz	"PKCS #8: Expected SEQUENCE (AlgorithmIdentifier) - found class %d tag 0x%x; assume encrypted PKCS #8 not used"

	.comm	_ASN1_TAG_OCTETSTRING,8,3       ## @ASN1_TAG_OCTETSTRING
L_.str.2:                               ## @.str.2
	.asciz	"PKCS #8: Expected OCTETSTRING (encryptedData) - found class %d tag 0x%x"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pkcs8_enc_key_import           ; -- Begin function pkcs8_enc_key_import
	.p2align	2
_pkcs8_enc_key_import:                  ; @pkcs8_enc_key_import
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x19, x2
	cbz	x2, LBB0_15
; %bb.1:
	add	x2, sp, #32
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_asn1_get_next
	tbnz	x0, #63, LBB0_12
; %bb.2:
	ldr	x8, [sp, #32]
Lloh0:
	adrp	x22, _ASN1_CLASS_UNIVERSAL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ASN1_CLASS_UNIVERSAL@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.3:
	ldr	x8, [sp, #40]
Lloh2:
	adrp	x23, _ASN1_TAG_SEQUENCE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _ASN1_TAG_SEQUENCE@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.4:
	ldp	x21, x20, [sp, #48]
	add	x2, sp, #32
	mov	x0, x20
	mov	x1, x21
	bl	_asn1_get_next
	ldr	x8, [sp, #32]
	tbnz	x0, #63, LBB0_16
; %bb.5:
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.6:
	ldr	x9, [sp, #40]
	ldr	x10, [x23]
	cmp	x9, x10
	b.ne	LBB0_16
; %bb.7:
	add	x8, x20, x21, lsl #2
	ldp	x21, x20, [sp, #48]
	add	x0, x20, x21, lsl #2
	sub	x8, x8, x0
	lsr	x1, x8, #2
	add	x2, sp, #32
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_asn1_get_next
	ldr	x8, [sp, #32]
	tbnz	x0, #63, LBB0_17
; %bb.8:
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.9:
	ldr	x9, [sp, #40]
Lloh4:
	adrp	x10, _ASN1_TAG_OCTETSTRING@GOTPAGE
Lloh5:
	ldr	x10, [x10, _ASN1_TAG_OCTETSTRING@GOTPAGEOFF]
Lloh6:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_17
; %bb.10:
	ldp	x3, x2, [sp, #48]
	add	x5, sp, #24
	mov	x0, x20
	mov	x1, x21
	mov	x4, x19
	bl	_pkcs5_decrypt
	cbz	x0, LBB0_14
; %bb.11:
	mov	x20, x0
	ldr	x1, [sp, #24]
	bl	_pkcs8_key_import
	mov	x19, x0
	mov	x0, x20
	bl	_os_free
	b	LBB0_15
LBB0_12:
Lloh7:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
LBB0_13:
	bl	_wpa_printf
LBB0_14:
	mov	x19, #0
LBB0_15:
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_16:
Lloh12:
	adrp	x9, _MSG_DEBUG@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MSG_DEBUG@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x9]
	ldr	x9, [sp, #40]
	stp	x8, x9, [sp]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_17:
Lloh17:
	adrp	x9, _MSG_DEBUG@GOTPAGE
Lloh18:
	ldr	x9, [x9, _MSG_DEBUG@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x9]
	ldr	x9, [sp, #40]
	stp	x8, x9, [sp]
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_13
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.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	"PKCS #8: Does not start with PKCS #8 header (SEQUENCE); assume encrypted PKCS #8 not used"

l_.str.1:                               ; @.str.1
	.asciz	"PKCS #8: Expected SEQUENCE (AlgorithmIdentifier) - found class %d tag 0x%x; assume encrypted PKCS #8 not used"

	.comm	_ASN1_TAG_OCTETSTRING,8,3       ; @ASN1_TAG_OCTETSTRING
l_.str.2:                               ; @.str.2
	.asciz	"PKCS #8: Expected OCTETSTRING (encryptedData) - found class %d tag 0x%x"

.subsections_via_symbols
