	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_x509_parse_algorithm_identifier ## -- Begin function x509_parse_algorithm_identifier
	.p2align	4, 0x90
_x509_parse_algorithm_identifier:       ## @x509_parse_algorithm_identifier
	.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	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %rbx
	leaq	-72(%rbp), %rdx
	callq	_asn1_get_next
	movq	-72(%rbp), %rdx
	testq	%rax, %rax
	js	LBB0_3
## %bb.1:
	movq	_ASN1_CLASS_UNIVERSAL@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_3
## %bb.2:
	movq	-64(%rbp), %rax
	movq	_ASN1_TAG_SEQUENCE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.4:
	movslq	-56(%rbp), %rsi
	leaq	(%rbx,%r12,4), %rcx
	movq	-48(%rbp), %rdi
	subq	%rdi, %rcx
	sarq	$2, %rcx
	movl	$-1, %eax
	cmpq	%rsi, %rcx
	jl	LBB0_6
## %bb.5:
	movq	%rdi, -40(%rbp)
	leaq	(%rdi,%rsi,4), %rax
	movq	%rax, (%r15)
	leaq	-40(%rbp), %rcx
                                        ## kill: def $esi killed $esi killed $rsi
	movq	%r14, %rdx
	callq	_asn1_get_oid
	movq	%rax, %rcx
	xorl	%eax, %eax
	negq	%rcx
	sbbl	%eax, %eax
	jmp	LBB0_6
LBB0_3:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-64(%rbp), %rcx
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movl	$-1, %eax
LBB0_6:
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	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	"X509: Expected SEQUENCE (AlgorithmIdentifier) - 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	_x509_parse_algorithm_identifier ; -- Begin function x509_parse_algorithm_identifier
	.p2align	2
_x509_parse_algorithm_identifier:       ; @x509_parse_algorithm_identifier
	.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, x3
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	add	x2, sp, #16
	bl	_asn1_get_next
	ldr	x2, [sp, #16]
	tbnz	x0, #63, LBB0_5
; %bb.1:
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_5
; %bb.2:
	ldr	x8, [sp, #24]
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_5
; %bb.3:
	ldrsw	x1, [sp, #32]
	add	x8, x22, x21, lsl #2
	ldr	x0, [sp, #40]
	sub	x8, x8, x0
	cmp	x1, x8, asr #2
	b.gt	LBB0_6
; %bb.4:
	str	x0, [sp, #8]
	add	x8, x0, x1, lsl #2
	str	x8, [x20]
	add	x3, sp, #8
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x2, x19
	bl	_asn1_get_oid
	cmp	x0, #0
	csetm	w0, ne
	b	LBB0_7
LBB0_5:
Lloh6:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	x3, [sp, #24]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
LBB0_6:
	mov	w0, #-1
LBB0_7:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.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	"X509: Expected SEQUENCE (AlgorithmIdentifier) - found class %d tag 0x%x"

.subsections_via_symbols
