	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function x509_get_subject_alt_name
_x509_get_subject_alt_name:             ## @x509_get_subject_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_MBEDTLS_ASN1_CONSTRUCTED@GOTPCREL(%rip), %rax
	movq	_MBEDTLS_ASN1_SEQUENCE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	leaq	-56(%rbp), %rdx
	callq	_mbedtls_asn1_get_tag
	testl	%eax, %eax
	je	LBB0_2
LBB0_1:
	movq	_MBEDTLS_ERR_X509_INVALID_EXTENSIONS@GOTPCREL(%rip), %rcx
	jmp	LBB0_23
LBB0_2:
	movq	(%rbx), %rax
	movq	-56(%rbp), %rcx
	addq	%rax, %rcx
	cmpq	%r14, %rcx
	je	LBB0_3
LBB0_21:
	movq	_MBEDTLS_ERR_X509_INVALID_EXTENSIONS@GOTPCREL(%rip), %rcx
	movq	_MBEDTLS_ERR_ASN1_LENGTH_MISMATCH@GOTPCREL(%rip), %rax
LBB0_22:
	movl	(%rax), %eax
LBB0_23:
	addl	(%rcx), %eax
LBB0_24:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	cmpq	%r14, %rax
	jae	LBB0_13
## %bb.4:
	leaq	-48(%rbp), %r12
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rcx
	subq	%rax, %rcx
	testq	%rcx, %rcx
	jle	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movzbl	(%rax), %r13d
	incq	%rax
	movq	%rax, (%rbx)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_mbedtls_asn1_get_len
	testl	%eax, %eax
	jne	LBB0_1
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_MBEDTLS_ASN1_CONTEXT_SPECIFIC@GOTPCREL(%rip), %rax
	movzbl	(%rax), %eax
	movl	%r13d, %ecx
	notb	%cl
	testb	%cl, %al
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	orb	$2, %al
	cmpb	%al, %r13b
	je	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rbx), %rax
	addq	-48(%rbp), %rax
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, (%rbx)
	cmpq	%r14, %rax
	jb	LBB0_5
	jmp	LBB0_13
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, 8(%r15)
	je	LBB0_20
## %bb.16:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, (%r15)
	jne	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, %edi
	movl	$32, %esi
	callq	_mbedtls_calloc
	movq	%rax, (%r15)
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_19
LBB0_20:                                ##   in Loop: Header=BB0_5 Depth=1
	movb	%r13b, 16(%r15)
	movq	(%rbx), %rax
	movq	%rax, 8(%r15)
	movq	-48(%rbp), %rax
	movq	%rax, 24(%r15)
	addq	(%rbx), %rax
	jmp	LBB0_12
LBB0_13:
	movq	$0, (%r15)
	cmpq	%r14, (%rbx)
	jne	LBB0_21
## %bb.14:
	xorl	%eax, %eax
	jmp	LBB0_24
LBB0_6:
	movq	_MBEDTLS_ERR_X509_INVALID_EXTENSIONS@GOTPCREL(%rip), %rcx
	movq	_MBEDTLS_ERR_ASN1_OUT_OF_DATA@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_9:
	movq	_MBEDTLS_ERR_X509_INVALID_EXTENSIONS@GOTPCREL(%rip), %rcx
	movq	_MBEDTLS_ERR_ASN1_UNEXPECTED_TAG@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_17:
	movq	_MBEDTLS_ERR_X509_INVALID_EXTENSIONS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_24
LBB0_19:
	movq	_MBEDTLS_ERR_X509_INVALID_EXTENSIONS@GOTPCREL(%rip), %rcx
	movq	_MBEDTLS_ERR_ASN1_ALLOC_FAILED@GOTPCREL(%rip), %rax
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_ASN1_CONSTRUCTED,4,2   ## @MBEDTLS_ASN1_CONSTRUCTED
	.comm	_MBEDTLS_ASN1_SEQUENCE,4,2      ## @MBEDTLS_ASN1_SEQUENCE
	.comm	_MBEDTLS_ERR_X509_INVALID_EXTENSIONS,4,2 ## @MBEDTLS_ERR_X509_INVALID_EXTENSIONS
	.comm	_MBEDTLS_ERR_ASN1_LENGTH_MISMATCH,4,2 ## @MBEDTLS_ERR_ASN1_LENGTH_MISMATCH
	.comm	_MBEDTLS_ERR_ASN1_OUT_OF_DATA,4,2 ## @MBEDTLS_ERR_ASN1_OUT_OF_DATA
	.comm	_MBEDTLS_ASN1_CONTEXT_SPECIFIC,1,0 ## @MBEDTLS_ASN1_CONTEXT_SPECIFIC
	.comm	_MBEDTLS_ERR_ASN1_UNEXPECTED_TAG,4,2 ## @MBEDTLS_ERR_ASN1_UNEXPECTED_TAG
	.comm	_MBEDTLS_ERR_ASN1_ALLOC_FAILED,4,2 ## @MBEDTLS_ERR_ASN1_ALLOC_FAILED
	.no_dead_strip	_x509_get_subject_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_get_subject_alt_name
_x509_get_subject_alt_name:             ; @x509_get_subject_alt_name
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _MBEDTLS_ASN1_CONSTRUCTED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MBEDTLS_ASN1_CONSTRUCTED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MBEDTLS_ASN1_SEQUENCE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MBEDTLS_ASN1_SEQUENCE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w3, w9, w8
	add	x2, sp, #8
	bl	_mbedtls_asn1_get_tag
	cbz	w0, LBB0_2
LBB0_1:
Lloh6:
	adrp	x8, _MBEDTLS_ERR_X509_INVALID_EXTENSIONS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MBEDTLS_ERR_X509_INVALID_EXTENSIONS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	add	w0, w8, w0
	b	LBB0_5
LBB0_2:
	ldr	x8, [x21]
	ldr	x9, [sp, #8]
	add	x9, x8, x9
	cmp	x9, x19
	b.eq	LBB0_6
LBB0_3:
Lloh9:
	adrp	x8, _MBEDTLS_ERR_X509_INVALID_EXTENSIONS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MBEDTLS_ERR_X509_INVALID_EXTENSIONS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _MBEDTLS_ERR_ASN1_LENGTH_MISMATCH@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MBEDTLS_ERR_ASN1_LENGTH_MISMATCH@GOTPAGEOFF]
LBB0_4:
	ldr	w9, [x9]
	add	w0, w9, w8
LBB0_5:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_6:
	cmp	x8, x19
	b.hs	LBB0_18
; %bb.7:
Lloh14:
	adrp	x22, _MBEDTLS_ASN1_CONTEXT_SPECIFIC@GOTPAGE
Lloh15:
	ldr	x22, [x22, _MBEDTLS_ASN1_CONTEXT_SPECIFIC@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	sub	x9, x19, x8
	cmp	x9, #0
	b.le	LBB0_20
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldrb	w23, [x8], #1
	str	x8, [x21]
	mov	x2, sp
	mov	x0, x21
	mov	x1, x19
	bl	_mbedtls_asn1_get_len
	cbnz	w0, LBB0_1
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldrb	w8, [x22]
	bics	wzr, w8, w23
	b.ne	LBB0_21
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	orr	w8, w8, #0x2
	cmp	w23, w8
	b.eq	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [sp]
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x9, [x21]
	add	x8, x9, x8
	cmp	x8, x19
	str	x8, [x21]
	b.lo	LBB0_8
	b	LBB0_18
LBB0_14:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x20]
	cbnz	x8, LBB0_22
; %bb.16:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	w0, #1
	mov	w1, #32
	bl	_mbedtls_calloc
	str	x0, [x20]
	mov	x20, x0
	cbz	x0, LBB0_23
LBB0_17:                                ;   in Loop: Header=BB0_8 Depth=1
	strb	w23, [x20, #16]
	ldr	x8, [x21]
	str	x8, [x20, #8]
	ldr	x8, [sp]
	str	x8, [x20, #24]
	b	LBB0_13
LBB0_18:
	str	xzr, [x20]
	ldr	x8, [x21]
	cmp	x8, x19
	b.ne	LBB0_3
; %bb.19:
	mov	w0, #0
	b	LBB0_5
LBB0_20:
Lloh16:
	adrp	x8, _MBEDTLS_ERR_X509_INVALID_EXTENSIONS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MBEDTLS_ERR_X509_INVALID_EXTENSIONS@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _MBEDTLS_ERR_ASN1_OUT_OF_DATA@GOTPAGE
Lloh20:
	ldr	x9, [x9, _MBEDTLS_ERR_ASN1_OUT_OF_DATA@GOTPAGEOFF]
	b	LBB0_4
LBB0_21:
Lloh21:
	adrp	x8, _MBEDTLS_ERR_X509_INVALID_EXTENSIONS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MBEDTLS_ERR_X509_INVALID_EXTENSIONS@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _MBEDTLS_ERR_ASN1_UNEXPECTED_TAG@GOTPAGE
Lloh25:
	ldr	x9, [x9, _MBEDTLS_ERR_ASN1_UNEXPECTED_TAG@GOTPAGEOFF]
	b	LBB0_4
LBB0_22:
Lloh26:
	adrp	x8, _MBEDTLS_ERR_X509_INVALID_EXTENSIONS@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MBEDTLS_ERR_X509_INVALID_EXTENSIONS@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	b	LBB0_5
LBB0_23:
Lloh29:
	adrp	x8, _MBEDTLS_ERR_X509_INVALID_EXTENSIONS@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MBEDTLS_ERR_X509_INVALID_EXTENSIONS@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
Lloh32:
	adrp	x9, _MBEDTLS_ERR_ASN1_ALLOC_FAILED@GOTPAGE
Lloh33:
	ldr	x9, [x9, _MBEDTLS_ERR_ASN1_ALLOC_FAILED@GOTPAGEOFF]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_ASN1_CONSTRUCTED,4,2   ; @MBEDTLS_ASN1_CONSTRUCTED
	.comm	_MBEDTLS_ASN1_SEQUENCE,4,2      ; @MBEDTLS_ASN1_SEQUENCE
	.comm	_MBEDTLS_ERR_X509_INVALID_EXTENSIONS,4,2 ; @MBEDTLS_ERR_X509_INVALID_EXTENSIONS
	.comm	_MBEDTLS_ERR_ASN1_LENGTH_MISMATCH,4,2 ; @MBEDTLS_ERR_ASN1_LENGTH_MISMATCH
	.comm	_MBEDTLS_ERR_ASN1_OUT_OF_DATA,4,2 ; @MBEDTLS_ERR_ASN1_OUT_OF_DATA
	.comm	_MBEDTLS_ASN1_CONTEXT_SPECIFIC,1,0 ; @MBEDTLS_ASN1_CONTEXT_SPECIFIC
	.comm	_MBEDTLS_ERR_ASN1_UNEXPECTED_TAG,4,2 ; @MBEDTLS_ERR_ASN1_UNEXPECTED_TAG
	.comm	_MBEDTLS_ERR_ASN1_ALLOC_FAILED,4,2 ; @MBEDTLS_ERR_ASN1_ALLOC_FAILED
	.no_dead_strip	_x509_get_subject_alt_name
.subsections_via_symbols
