	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_crypto_rsa_import_public_key   ## -- Begin function crypto_rsa_import_public_key
	.p2align	4, 0x90
_crypto_rsa_import_public_key:          ## @crypto_rsa_import_public_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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	$16, %edi
	callq	_os_zalloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_bignum_init
	movq	%rax, 8(%rbx)
	xorl	%eax, %eax
	callq	_bignum_init
	movq	%rax, (%rbx)
	cmpq	$0, 8(%rbx)
	je	LBB0_10
## %bb.2:
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	leaq	-56(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_asn1_get_next
	movq	-56(%rbp), %rdx
	testq	%rax, %rax
	js	LBB0_6
## %bb.4:
	movq	_ASN1_CLASS_UNIVERSAL@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_6
## %bb.5:
	movq	-48(%rbp), %rax
	movq	_ASN1_TAG_SEQUENCE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.7:
	movq	-32(%rbp), %rdi
	movslq	-40(%rbp), %rax
	leaq	(%rdi,%rax,4), %r14
	movq	8(%rbx), %rdx
	movq	%r14, %rsi
	callq	_crypto_rsa_parse_integer
	movq	(%rbx), %rdx
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_crypto_rsa_parse_integer
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	cmpq	%r14, %rax
	je	LBB0_12
## %bb.9:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	subq	%rax, %r14
	shrq	$2, %r14
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdx
	movl	%r14d, %ecx
	callq	_wpa_hexdump
	jmp	LBB0_10
LBB0_6:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rcx
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
LBB0_10:
	movq	%rbx, %rdi
	callq	_crypto_rsa_free
LBB0_11:
	xorl	%ebx, %ebx
LBB0_12:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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: 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_public_key   ; -- Begin function crypto_rsa_import_public_key
	.p2align	2
_crypto_rsa_import_public_key:          ; @crypto_rsa_import_public_key
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, #16
	bl	_os_zalloc
	mov	x19, x0
	cbz	x0, LBB0_10
; %bb.1:
	bl	_bignum_init
	str	x0, [x19, #8]
	bl	_bignum_init
	str	x0, [x19]
	ldr	x8, [x19, #8]
	cmp	x8, #0
	ccmp	x0, #0, #4, ne
	b.eq	LBB0_9
; %bb.2:
	mov	x2, sp
	mov	x0, x21
	mov	x1, x20
	bl	_asn1_get_next
	ldr	x2, [sp]
	tbnz	x0, #63, LBB0_8
; %bb.3:
Lloh0:
	adrp	x8, _ASN1_CLASS_UNIVERSAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ASN1_CLASS_UNIVERSAL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x2, x8
	b.ne	LBB0_8
; %bb.4:
	ldr	x8, [sp, #8]
Lloh3:
	adrp	x9, _ASN1_TAG_SEQUENCE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ASN1_TAG_SEQUENCE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.5:
	ldr	x0, [sp, #24]
	ldrsw	x8, [sp, #16]
	add	x20, x0, x8, lsl #2
	ldr	x2, [x19, #8]
	mov	x1, x20
	bl	_crypto_rsa_parse_integer
	ldr	x2, [x19]
	mov	x1, x20
	bl	_crypto_rsa_parse_integer
	cbz	x0, LBB0_9
; %bb.6:
	mov	x2, x0
	cmp	x0, x20
	b.eq	LBB0_10
; %bb.7:
Lloh6:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	sub	x8, x20, x2
	lsr	x3, x8, #2
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_wpa_hexdump
	b	LBB0_9
LBB0_8:
Lloh11:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldr	x3, [sp, #8]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
LBB0_9:
	mov	x0, x19
	bl	_crypto_rsa_free
	mov	x19, #0
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	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	_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: Extra data in public key SEQUENCE"

.subsections_via_symbols
