	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_x509_get_name          ## -- Begin function mbedtls_x509_get_name
	.p2align	4, 0x90
_mbedtls_x509_get_name:                 ## @mbedtls_x509_get_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, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	_MBEDTLS_ASN1_CONSTRUCTED@GOTPCREL(%rip), %r14
	movq	_MBEDTLS_ASN1_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	orl	(%r14), %ecx
	leaq	-48(%rbp), %rdx
	callq	_mbedtls_asn1_get_tag
	testl	%eax, %eax
	je	LBB0_1
LBB0_12:
	movq	_MBEDTLS_ERR_X509_INVALID_NAME@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	jmp	LBB0_13
LBB0_1:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	(%r12), %r15
	addq	-48(%rbp), %r15
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_x509_get_attr_type_value
	testl	%eax, %eax
	jne	LBB0_13
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%r15, (%r12)
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	$1, (%r13)
	movl	$1, %edi
	movl	$16, %esi
	callq	_mbedtls_calloc
	movq	%rax, 8(%r13)
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	%rax, %rbx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_x509_get_attr_type_value
	movq	%rbx, %r13
	testl	%eax, %eax
	je	LBB0_4
	jmp	LBB0_13
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	cmpq	%rbx, %r15
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %edi
	movl	$16, %esi
	callq	_mbedtls_calloc
	movq	%rax, 8(%r13)
	testq	%rax, %rax
	je	LBB0_6
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r15
	movq	_MBEDTLS_ASN1_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	orl	(%r14), %ecx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	leaq	-48(%rbp), %rdx
	callq	_mbedtls_asn1_get_tag
	movq	%r15, %r13
	testl	%eax, %eax
	je	LBB0_2
	jmp	LBB0_12
LBB0_6:
	movq	_MBEDTLS_ERR_X509_ALLOC_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	xorl	%eax, %eax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_ASN1_CONSTRUCTED,4,2   ## @MBEDTLS_ASN1_CONSTRUCTED
	.comm	_MBEDTLS_ASN1_SET,4,2           ## @MBEDTLS_ASN1_SET
	.comm	_MBEDTLS_ERR_X509_INVALID_NAME,4,2 ## @MBEDTLS_ERR_X509_INVALID_NAME
	.comm	_MBEDTLS_ERR_X509_ALLOC_FAILED,4,2 ## @MBEDTLS_ERR_X509_ALLOC_FAILED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_x509_get_name          ; -- Begin function mbedtls_x509_get_name
	.p2align	2
_mbedtls_x509_get_name:                 ; @mbedtls_x509_get_name
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x24, _MBEDTLS_ASN1_CONSTRUCTED@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MBEDTLS_ASN1_CONSTRUCTED@GOTPAGEOFF]
	ldr	w8, [x24]
Lloh2:
	adrp	x25, _MBEDTLS_ASN1_SET@GOTPAGE
Lloh3:
	ldr	x25, [x25, _MBEDTLS_ASN1_SET@GOTPAGEOFF]
	ldr	w9, [x25]
	orr	w3, w9, w8
	add	x2, sp, #8
	bl	_mbedtls_asn1_get_tag
	cbz	w0, LBB0_2
LBB0_1:
Lloh4:
	adrp	x8, _MBEDTLS_ERR_X509_INVALID_NAME@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MBEDTLS_ERR_X509_INVALID_NAME@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	add	w0, w8, w0
	b	LBB0_11
LBB0_2:
	mov	w26, #1
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	ldr	x8, [x20]
	ldr	x9, [sp, #8]
	add	x22, x8, x9
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_x509_get_attr_type_value
	cbnz	w0, LBB0_11
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x20]
	cmp	x8, x22
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	str	w26, [x21]
	mov	w0, #1
	mov	w1, #16
	bl	_mbedtls_calloc
	str	x0, [x21, #8]
	cbz	x0, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=2
	mov	x23, x0
	mov	x0, x20
	mov	x1, x22
	mov	x2, x23
	bl	_x509_get_attr_type_value
	mov	x21, x23
	cbz	w0, LBB0_4
	b	LBB0_11
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	x22, x19
	b.eq	LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #1
	mov	w1, #16
	bl	_mbedtls_calloc
	str	x0, [x21, #8]
	cbz	x0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x22, x0
	ldr	w8, [x24]
	ldr	w9, [x25]
	orr	w3, w9, w8
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x19
	bl	_mbedtls_asn1_get_tag
	mov	x21, x22
	cbz	w0, LBB0_3
	b	LBB0_1
LBB0_10:
Lloh7:
	adrp	x8, _MBEDTLS_ERR_X509_ALLOC_FAILED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MBEDTLS_ERR_X509_ALLOC_FAILED@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
LBB0_11:
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_12:
	mov	w0, #0
	b	LBB0_11
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_ASN1_CONSTRUCTED,4,2   ; @MBEDTLS_ASN1_CONSTRUCTED
	.comm	_MBEDTLS_ASN1_SET,4,2           ; @MBEDTLS_ASN1_SET
	.comm	_MBEDTLS_ERR_X509_INVALID_NAME,4,2 ; @MBEDTLS_ERR_X509_INVALID_NAME
	.comm	_MBEDTLS_ERR_X509_ALLOC_FAILED,4,2 ; @MBEDTLS_ERR_X509_ALLOC_FAILED
.subsections_via_symbols
