	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function x509_parse_ext_alt_name
_x509_parse_ext_alt_name:               ## @x509_parse_ext_alt_name
	.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
	jle	LBB0_14
## %bb.1:
	movq	%rsi, %rax
	movq	%rdi, %r14
	leaq	(%rsi,%rdx,4), %rbx
	leaq	-72(%rbp), %r15
	movq	_ASN1_CLASS_CONTEXT_SPECIFIC@GOTPCREL(%rip), %r12
	leaq	LJTI0_0(%rip), %r13
	jmp	LBB0_2
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rsi
	movl	-72(%rbp), %edx
	movq	%r14, %rdi
	callq	_x509_parse_alt_name_rid
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	testl	%eax, %eax
	js	LBB0_15
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movslq	-72(%rbp), %rax
	shlq	$2, %rax
	addq	-48(%rbp), %rax
	cmpq	%rbx, %rax
	jae	LBB0_14
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rsi
	subq	%rax, %rsi
	shrq	$2, %rsi
	movq	%rax, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movq	%r15, %rdx
	callq	_asn1_get_next
	testq	%rax, %rax
	js	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rax
	cmpq	(%r12), %rax
	jne	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-56(%rbp), %eax
	decl	%eax
	cmpl	$7, %eax
	ja	LBB0_13
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	(%r13,%rax,4), %rax
	addq	%r13, %rax
	jmpq	*%rax
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rsi
	movl	-72(%rbp), %edx
	movq	%r14, %rdi
	callq	_x509_parse_alt_name_rfc8222
	jmp	LBB0_12
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rsi
	movl	-72(%rbp), %edx
	movq	%r14, %rdi
	callq	_x509_parse_alt_name_dns
	jmp	LBB0_12
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rsi
	movl	-72(%rbp), %edx
	movq	%r14, %rdi
	callq	_x509_parse_alt_name_uri
	jmp	LBB0_12
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rsi
	movl	-72(%rbp), %edx
	movq	%r14, %rdi
	callq	_x509_parse_alt_name_ip
	jmp	LBB0_12
LBB0_14:
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_3:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movl	$-1, %eax
LBB0_15:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_11
	.end_data_region
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"X509: Failed to parse SubjectAltName item"

	.comm	_ASN1_CLASS_CONTEXT_SPECIFIC,8,3 ## @ASN1_CLASS_CONTEXT_SPECIFIC
	.no_dead_strip	_x509_parse_ext_alt_name
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function x509_parse_ext_alt_name
_x509_parse_ext_alt_name:               ; @x509_parse_ext_alt_name
	.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
	cmp	x2, #1
	b.lt	LBB0_13
; %bb.1:
	mov	x8, x1
	mov	x19, x0
	add	x20, x1, x2, lsl #2
Lloh0:
	adrp	x21, _ASN1_CLASS_CONTEXT_SPECIFIC@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ASN1_CLASS_CONTEXT_SPECIFIC@GOTPAGEOFF]
Lloh2:
	adrp	x22, lJTI0_0@PAGE
Lloh3:
	add	x22, x22, lJTI0_0@PAGEOFF
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x1, [sp, #24]
	ldr	w2, [sp]
	mov	x0, x19
	bl	_x509_parse_alt_name_rid
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	tbnz	w0, #31, LBB0_15
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #24]
	ldrsw	x9, [sp]
	add	x8, x8, x9, lsl #2
	cmp	x8, x20
	b.hs	LBB0_13
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	sub	x9, x20, x8
	lsr	x1, x9, #2
	mov	x2, sp
	mov	x0, x8
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_asn1_get_next
	tbnz	x0, #63, LBB0_14
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #8]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [sp, #16]
	sub	w8, w8, #1
	cmp	w8, #7
	b.hi	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	adr	x9, LBB0_2
	ldrb	w10, [x22, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x1, [sp, #24]
	ldr	w2, [sp]
	mov	x0, x19
	bl	_x509_parse_alt_name_rfc8222
	b	LBB0_3
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x1, [sp, #24]
	ldr	w2, [sp]
	mov	x0, x19
	bl	_x509_parse_alt_name_dns
	b	LBB0_3
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x1, [sp, #24]
	ldr	w2, [sp]
	mov	x0, x19
	bl	_x509_parse_alt_name_uri
	b	LBB0_3
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x1, [sp, #24]
	ldr	w2, [sp]
	mov	x0, x19
	bl	_x509_parse_alt_name_ip
	b	LBB0_3
LBB0_13:
	mov	w0, #0
	b	LBB0_15
LBB0_14:
Lloh4:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	mov	w0, #-1
LBB0_15:
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"X509: Failed to parse SubjectAltName item"

	.comm	_ASN1_CLASS_CONTEXT_SPECIFIC,8,3 ; @ASN1_CLASS_CONTEXT_SPECIFIC
	.no_dead_strip	_x509_parse_ext_alt_name
.subsections_via_symbols
