	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function x509_write_name
_x509_write_name:                       ## @x509_write_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	%r9, -48(%rbp)                  ## 8-byte Spill
	movq	%r8, %r12
	movq	%rcx, %r15
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_MBEDTLS_OID_PKCS9_EMAIL@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_MBEDTLS_OID_SIZE
	cmpq	%r15, %rax
	jne	LBB0_3
## %bb.1:
	movl	(%r13), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_2
LBB0_3:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	callq	_mbedtls_asn1_write_printable_string
	jmp	LBB0_4
LBB0_2:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	callq	_mbedtls_asn1_write_ia5_string
LBB0_4:
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_MBEDTLS_ASN1_CHK_ADD
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%r15, %rcx
	callq	_mbedtls_asn1_write_oid
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_MBEDTLS_ASN1_CHK_ADD
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_mbedtls_asn1_write_len
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_MBEDTLS_ASN1_CHK_ADD
	movq	_MBEDTLS_ASN1_CONSTRUCTED@GOTPCREL(%rip), %r15
	movq	_MBEDTLS_ASN1_SEQUENCE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	(%r15), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_mbedtls_asn1_write_tag
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_MBEDTLS_ASN1_CHK_ADD
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_mbedtls_asn1_write_len
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_MBEDTLS_ASN1_CHK_ADD
	movq	_MBEDTLS_ASN1_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	(%r15), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_mbedtls_asn1_write_tag
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_MBEDTLS_ASN1_CHK_ADD
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MBEDTLS_OID_PKCS9_EMAIL,4,2    ## @MBEDTLS_OID_PKCS9_EMAIL
	.comm	_MBEDTLS_ASN1_CONSTRUCTED,4,2   ## @MBEDTLS_ASN1_CONSTRUCTED
	.comm	_MBEDTLS_ASN1_SEQUENCE,4,2      ## @MBEDTLS_ASN1_SEQUENCE
	.comm	_MBEDTLS_ASN1_SET,4,2           ## @MBEDTLS_ASN1_SET
	.no_dead_strip	_x509_write_name
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function x509_write_name
_x509_write_name:                       ; @x509_write_name
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x5
	mov	x24, x4
	mov	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x25, _MBEDTLS_OID_PKCS9_EMAIL@GOTPAGE
Lloh1:
	ldr	x25, [x25, _MBEDTLS_OID_PKCS9_EMAIL@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_MBEDTLS_OID_SIZE
	cmp	x0, x21
	b.ne	LBB0_2
; %bb.1:
	ldr	w1, [x25]
	mov	x0, x22
	mov	x2, x21
	bl	_memcmp
	cbz	x0, LBB0_3
LBB0_2:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x24
	mov	x3, x23
	bl	_mbedtls_asn1_write_printable_string
	b	LBB0_4
LBB0_3:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x24
	mov	x3, x23
	bl	_mbedtls_asn1_write_ia5_string
LBB0_4:
	mov	x1, x0
	mov	x0, #0
	bl	_MBEDTLS_ASN1_CHK_ADD
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	mov	x3, x21
	bl	_mbedtls_asn1_write_oid
	mov	x1, x0
	mov	x0, #0
	bl	_MBEDTLS_ASN1_CHK_ADD
	mov	x0, x20
	mov	x1, x19
	mov	x2, #0
	bl	_mbedtls_asn1_write_len
	mov	x1, x0
	mov	x0, #0
	bl	_MBEDTLS_ASN1_CHK_ADD
Lloh2:
	adrp	x21, _MBEDTLS_ASN1_CONSTRUCTED@GOTPAGE
Lloh3:
	ldr	x21, [x21, _MBEDTLS_ASN1_CONSTRUCTED@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh4:
	adrp	x9, _MBEDTLS_ASN1_SEQUENCE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _MBEDTLS_ASN1_SEQUENCE@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x20
	mov	x1, x19
	bl	_mbedtls_asn1_write_tag
	mov	x1, x0
	mov	x0, #0
	bl	_MBEDTLS_ASN1_CHK_ADD
	mov	x0, x20
	mov	x1, x19
	mov	x2, #0
	bl	_mbedtls_asn1_write_len
	mov	x1, x0
	mov	x0, #0
	bl	_MBEDTLS_ASN1_CHK_ADD
	ldr	w8, [x21]
Lloh7:
	adrp	x9, _MBEDTLS_ASN1_SET@GOTPAGE
Lloh8:
	ldr	x9, [x9, _MBEDTLS_ASN1_SET@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x20
	mov	x1, x19
	bl	_mbedtls_asn1_write_tag
	mov	x1, x0
	mov	x0, #0
	bl	_MBEDTLS_ASN1_CHK_ADD
	mov	w0, #0
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_MBEDTLS_OID_PKCS9_EMAIL,4,2    ; @MBEDTLS_OID_PKCS9_EMAIL
	.comm	_MBEDTLS_ASN1_CONSTRUCTED,4,2   ; @MBEDTLS_ASN1_CONSTRUCTED
	.comm	_MBEDTLS_ASN1_SEQUENCE,4,2      ; @MBEDTLS_ASN1_SEQUENCE
	.comm	_MBEDTLS_ASN1_SET,4,2           ; @MBEDTLS_ASN1_SET
	.no_dead_strip	_x509_write_name
.subsections_via_symbols
