	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hx509_cert_find_subjectAltName_otherName ## -- Begin function hx509_cert_find_subjectAltName_otherName
	.p2align	4, 0x90
_hx509_cert_find_subjectAltName_otherName: ## @hx509_cert_find_subjectAltName_otherName
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movl	%edi, %r15d
	xorps	%xmm0, %xmm0
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movups	%xmm0, (%rcx)
	movq	$0, -56(%rbp)
	movl	%esi, -68(%rbp)                 ## 4-byte Spill
	movl	%esi, %edi
	callq	__hx509_get_cert
	leaq	-56(%rbp), %rsi
	leaq	-88(%rbp), %rdx
	movl	%eax, %edi
	callq	_find_extension_subject_alt_name
	incq	-56(%rbp)
	movq	_HX509_EXTENSION_NOT_FOUND@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpl	(%rcx), %eax
	je	LBB0_12
## %bb.1:
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	_choice_GeneralName_otherName@GOTPCREL(%rip), %r13
	movl	%eax, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	-88(%rbp), %r14
	movq	%r14, %rdi
	callq	_free_GeneralNames
	movl	-68(%rbp), %edi                 ## 4-byte Reload
	callq	__hx509_get_cert
	movl	%eax, %edi
	leaq	-56(%rbp), %rsi
	movq	%r14, %rdx
	callq	_find_extension_subject_alt_name
	incq	-56(%rbp)
	movl	%eax, %r14d
	movq	_HX509_EXTENSION_NOT_FOUND@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	je	LBB0_11
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	testl	%r14d, %r14d
	jne	LBB0_13
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, -88(%rbp)
	je	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$8, %r12d
	xorl	%r15d, %r15d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=2
	incq	%r15
	addq	$16, %r12
	cmpq	-88(%rbp), %r15
	jae	LBB0_10
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-80(%rbp), %rax
	movq	-8(%rax,%r12), %rcx
	cmpq	(%r13), %rcx
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	leaq	(%rax,%r12), %rdi
	addq	$4, %rdi
	movq	%rbx, %rsi
	callq	_der_heim_oid_cmp
	testq	%rax, %rax
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	-80(%rbp), %rsi
	addq	%r12, %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_add_to_list
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %r14d
	leaq	L_.str.1(%rip), %rcx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_hx509_set_error_string
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_hx509_free_octet_string_list
	leaq	-88(%rbp), %rdi
	callq	_free_GeneralNames
	jmp	LBB0_12
LBB0_13:
	leaq	L_.str(%rip), %rcx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	xorl	%esi, %esi
	movl	%r14d, %edx
	callq	_hx509_set_error_string
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_hx509_free_octet_string_list
	jmp	LBB0_12
LBB0_11:
	xorl	%r14d, %r14d
LBB0_12:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HX509_EXTENSION_NOT_FOUND,4,2  ## @HX509_EXTENSION_NOT_FOUND
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error searching for SAN"

	.comm	_choice_GeneralName_otherName,8,3 ## @choice_GeneralName_otherName
L_.str.1:                               ## @.str.1
	.asciz	"Error adding an exra SAN to return list"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hx509_cert_find_subjectAltName_otherName ; -- Begin function hx509_cert_find_subjectAltName_otherName
	.p2align	2
_hx509_cert_find_subjectAltName_otherName: ; @hx509_cert_find_subjectAltName_otherName
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	stp	xzr, xzr, [x3]
	str	xzr, [sp, #8]
	mov	x0, x1
	bl	__hx509_get_cert
	add	x1, sp, #8
	add	x2, sp, #16
	bl	_find_extension_subject_alt_name
	ldr	x8, [sp, #8]
	add	x8, x8, #1
	str	x8, [sp, #8]
Lloh0:
	adrp	x24, _HX509_EXTENSION_NOT_FOUND@GOTPAGE
Lloh1:
	ldr	x24, [x24, _HX509_EXTENSION_NOT_FOUND@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w0, w8
	b.ne	LBB0_2
LBB0_1:
	mov	w23, #0
	b	LBB0_13
LBB0_2:
	mov	x23, x0
Lloh2:
	adrp	x25, _choice_GeneralName_otherName@GOTPAGE
Lloh3:
	ldr	x25, [x25, _choice_GeneralName_otherName@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #16
	bl	_free_GeneralNames
	mov	x0, x22
	bl	__hx509_get_cert
	add	x1, sp, #8
	add	x2, sp, #16
	bl	_find_extension_subject_alt_name
	mov	x23, x0
	ldr	x8, [sp, #8]
	add	x8, x8, #1
	str	x8, [sp, #8]
	ldr	w8, [x24]
	cmp	w0, w8
	b.eq	LBB0_1
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	cbnz	w23, LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x26, #0
	mov	x27, #0
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	x27, x27, #1
	ldr	x8, [sp, #16]
	add	x26, x26, #16
	cmp	x27, x8
	b.hs	LBB0_3
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [sp, #24]
	ldr	x9, [x8, x26]
	ldr	x10, [x25]
	cmp	x9, x10
	b.ne	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	add	x8, x8, x26
	add	x0, x8, #12
	mov	x1, x21
	bl	_der_heim_oid_cmp
	cbnz	x0, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	x8, [sp, #24]
	add	x8, x8, x26
	add	x1, x8, #8
	mov	x0, x19
	bl	_add_to_list
	cbz	w0, LBB0_7
; %bb.11:
	mov	x23, x0
Lloh4:
	adrp	x3, l_.str.1@PAGE
Lloh5:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	w1, #0
	mov	x2, x23
	bl	_hx509_set_error_string
	mov	x0, x19
	bl	_hx509_free_octet_string_list
	add	x0, sp, #16
	bl	_free_GeneralNames
	b	LBB0_13
LBB0_12:
Lloh6:
	adrp	x3, l_.str@PAGE
Lloh7:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	mov	w1, #0
	mov	x2, x23
	bl	_hx509_set_error_string
	mov	x0, x19
	bl	_hx509_free_octet_string_list
LBB0_13:
	mov	x0, x23
	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
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_HX509_EXTENSION_NOT_FOUND,4,2  ; @HX509_EXTENSION_NOT_FOUND
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error searching for SAN"

	.comm	_choice_GeneralName_otherName,8,3 ; @choice_GeneralName_otherName
l_.str.1:                               ; @.str.1
	.asciz	"Error adding an exra SAN to return list"

.subsections_via_symbols
