	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_x509_dn_gets           ## -- Begin function mbedtls_x509_dn_gets
	.p2align	4, 0x90
_mbedtls_x509_dn_gets:                  ## @mbedtls_x509_dn_gets
	.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, %r14
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	%rsp, -88(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$0, -72(%rbp)
	movq	_MBEDTLS_X509_MAX_DN_NAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_memset
	testq	%r14, %r14
	je	LBB0_18
## %bb.1:
	movq	%r14, %rcx
	leaq	-1(%rbx), %r14
	leaq	-72(%rbp), %r15
	xorl	%eax, %eax
	movq	%rcx, %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	cmpl	$0, 32(%r12)
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r12), %r12
	testq	%r12, %r12
	jne	LBB0_2
	jmp	LBB0_18
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	32(%r12), %rbx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	cmpq	%rcx, %r12
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	testb	%al, %al
	leaq	L_.str(%rip), %rdx
	leaq	L_.str.1(%rip), %rax
	cmoveq	%rax, %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_mbedtls_snprintf
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_mbedtls_oid_get_attr_short_name
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	leaq	L_.str.3(%rip), %rdx
	xorl	%eax, %eax
	callq	_mbedtls_snprintf
	jmp	LBB0_9
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rcx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	leaq	L_.str.2(%rip), %rdx
	xorl	%eax, %eax
	callq	_mbedtls_snprintf
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.4(%rip), %rdx
	cmpq	$0, 16(%r12)
	je	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$0, %eax
	testq	%r14, %r14
	je	LBB0_17
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	24(%r12), %rcx
	movzbl	(%rcx,%rax), %ecx
	leal	127(%rcx), %edi
	movl	$63, %ebx
	movl	$63, %esi
	cmpb	$31, %dil
	jb	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=2
	movl	%ecx, %esi
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=2
	cmpb	$127, %cl
	cmovel	%ebx, %esi
	cmpb	$32, %cl
	cmovbl	%ebx, %esi
	movb	%sil, (%r13,%rax)
	incq	%rax
	cmpq	16(%r12), %rax
	jae	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=2
	cmpq	%r14, %rax
	jb	LBB0_13
	jmp	LBB0_17
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movb	$0, (%r13,%rax)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rcx
	xorl	%eax, %eax
	callq	_mbedtls_snprintf
	movb	(%r12), %al
	movq	8(%r12), %r12
	testq	%r12, %r12
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	jne	LBB0_2
LBB0_18:
	movq	-88(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	xorl	%eax, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_X509_MAX_DN_NAME_SIZE,4,2 ## @MBEDTLS_X509_MAX_DN_NAME_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" + "

L_.str.1:                               ## @.str.1
	.asciz	", "

	.comm	_MBEDTLS_X509_SAFE_SNPRINTF,4,2 ## @MBEDTLS_X509_SAFE_SNPRINTF
L_.str.2:                               ## @.str.2
	.asciz	"%s="

L_.str.3:                               ## @.str.3
	.asciz	"??="

L_.str.4:                               ## @.str.4
	.asciz	"%s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mbedtls_x509_dn_gets           ; -- Begin function mbedtls_x509_dn_gets
	.p2align	2
_mbedtls_x509_dn_gets:                  ; @mbedtls_x509_dn_gets
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #32
	mov	x27, x2
	mov	x20, x1
	mov	x21, x0
	mov	x8, sp
	stur	x8, [x29, #-104]                ; 8-byte Folded Spill
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	stur	xzr, [x29, #-96]
Lloh3:
	adrp	x8, _MBEDTLS_X509_MAX_DN_NAME_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MBEDTLS_X509_MAX_DN_NAME_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	mov	x9, x23
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x23, #15
	and	x9, x9, #0x1fffffff0
	sub	x22, x8, x9
	mov	sp, x22
	mov	x0, x22
	mov	w1, #0
	mov	x2, x23
	bl	_memset
	cbz	x27, LBB0_14
; %bb.1:
	mov	w8, #0
	sub	x28, x23, #1
	mov	w23, #127
	mov	w25, #32
	mov	w24, #63
	mov	x19, x27
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	mov	x26, x19
	ldr	w9, [x26, #32]!
	cbnz	w9, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x19, [x19, #8]
	cbnz	x19, LBB0_2
	b	LBB0_14
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmp	x19, x27
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w8, #0
Lloh8:
	adrp	x8, l_.str@PAGE
Lloh9:
	add	x8, x8, l_.str@PAGEOFF
Lloh10:
	adrp	x9, l_.str.1@PAGE
Lloh11:
	add	x9, x9, l_.str.1@PAGEOFF
	csel	x2, x9, x8, eq
	mov	x0, x21
	mov	x1, x20
	bl	_mbedtls_snprintf
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	sub	x1, x29, #96
	mov	x0, x26
	bl	_mbedtls_oid_get_attr_short_name
	cbz	w0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	mov	x1, x20
Lloh12:
	adrp	x2, l_.str.3@PAGE
Lloh13:
	add	x2, x2, l_.str.3@PAGEOFF
	bl	_mbedtls_snprintf
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldur	x8, [x29, #-96]
	str	x8, [sp, #-16]!
	mov	x0, x21
	mov	x1, x20
Lloh14:
	adrp	x2, l_.str.2@PAGE
Lloh15:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_mbedtls_snprintf
	add	sp, sp, #16
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x8, #0
	ldr	x9, [x19, #16]
	cbz	x9, LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
	cbz	x28, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x8, #0
LBB0_12:                                ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x19, #24]
	ldrb	w9, [x9, x8]
	add	w10, w9, #127
	and	w10, w10, #0xff
	cmp	w10, #31
	ccmp	w9, w23, #4, hs
	ccmp	w9, w25, #0, ne
	csel	w9, w24, w9, lo
	strb	w9, [x22, x8]
	add	x8, x8, #1
	ldr	x9, [x19, #16]
	cmp	x8, x9
	ccmp	x8, x28, #2, lo
	b.lo	LBB0_12
LBB0_13:                                ;   in Loop: Header=BB0_2 Depth=1
	strb	wzr, [x22, x8]
	str	x22, [sp, #-16]!
	mov	x0, x21
	mov	x1, x20
Lloh16:
	adrp	x2, l_.str.4@PAGE
Lloh17:
	add	x2, x2, l_.str.4@PAGEOFF
	bl	_mbedtls_snprintf
	add	sp, sp, #16
	ldrb	w8, [x19]
	ldr	x19, [x19, #8]
	cbnz	x19, LBB0_2
LBB0_14:
	ldur	x8, [x29, #-104]                ; 8-byte Folded Reload
	mov	sp, x8
	ldur	x8, [x29, #-88]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	mov	w0, #0
	sub	sp, x29, #80
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_X509_MAX_DN_NAME_SIZE,4,2 ; @MBEDTLS_X509_MAX_DN_NAME_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" + "

l_.str.1:                               ; @.str.1
	.asciz	", "

	.comm	_MBEDTLS_X509_SAFE_SNPRINTF,4,2 ; @MBEDTLS_X509_SAFE_SNPRINTF
l_.str.2:                               ; @.str.2
	.asciz	"%s="

l_.str.3:                               ; @.str.3
	.asciz	"??="

l_.str.4:                               ; @.str.4
	.asciz	"%s"

.subsections_via_symbols
