	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function X509_NAME_to_cstring
_X509_NAME_to_cstring:                  ## @X509_NAME_to_cstring
	.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	%rdi, %rbx
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_BIO_s_mem
	movl	%eax, %edi
	callq	_BIO_new
	movq	%rax, %r15
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_X509_NAME_entry_count
	movl	%eax, %ebx
	movq	_BIO_CLOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_BIO_set_close
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	testl	%ebx, %ebx
	jg	LBB0_1
LBB0_4:
	movb	$0, -41(%rbp)
	leaq	-41(%rbp), %rsi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_BIO_write
	leaq	-56(%rbp), %rsi
	movq	%r15, %rdi
	callq	_BIO_get_mem_data
	movq	-56(%rbp), %rdi
	leaq	-1(%rax), %rsi
	movq	_PG_UTF8@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_pg_any_to_server
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_pstrdup
	movq	%rax, %r14
	cmpq	-56(%rbp), %rbx
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_pfree
LBB0_6:
	movq	%r15, %rdi
	callq	_BIO_free
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdx
	callq	_BIO_printf
	movq	_ASN1_STRFLGS_ESC_MSB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	movq	_ASN1_STRFLGS_RFC2253@GOTPCREL(%rip), %rax
	andl	(%rax), %edx
	movq	_ASN1_STRFLGS_UTF8_CONVERT@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_ASN1_STRING_print_ex
	incl	%r12d
	cmpl	%r12d, -48(%rbp)                ## 4-byte Folded Reload
	je	LBB0_4
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	callq	_X509_NAME_get_entry
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_X509_NAME_ENTRY_get_object
	movl	%eax, %edi
	callq	_OBJ_obj2nid
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_X509_NAME_ENTRY_get_data
	movq	%rax, %r13
	movl	%r14d, %edi
	callq	_OBJ_nid2sn
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%r14d, %edi
	callq	_OBJ_nid2ln
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_BIO_CLOSE,4,2                  ## @BIO_CLOSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/%s="

	.comm	_ASN1_STRFLGS_RFC2253,4,2       ## @ASN1_STRFLGS_RFC2253
	.comm	_ASN1_STRFLGS_ESC_MSB,4,2       ## @ASN1_STRFLGS_ESC_MSB
	.comm	_ASN1_STRFLGS_UTF8_CONVERT,4,2  ## @ASN1_STRFLGS_UTF8_CONVERT
	.comm	_PG_UTF8,4,2                    ## @PG_UTF8
	.no_dead_strip	_X509_NAME_to_cstring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function X509_NAME_to_cstring
_X509_NAME_to_cstring:                  ; @X509_NAME_to_cstring
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x0
	bl	_BIO_s_mem
	bl	_BIO_new
	mov	x19, x0
	mov	x0, x20
	bl	_X509_NAME_entry_count
	mov	x21, x0
Lloh0:
	adrp	x8, _BIO_CLOSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BIO_CLOSE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_BIO_set_close
	cmp	w21, #1
	b.lt	LBB0_5
; %bb.1:
	mov	w22, #0
Lloh3:
	adrp	x26, _ASN1_STRFLGS_RFC2253@GOTPAGE
Lloh4:
	ldr	x26, [x26, _ASN1_STRFLGS_RFC2253@GOTPAGEOFF]
Lloh5:
	adrp	x27, _ASN1_STRFLGS_ESC_MSB@GOTPAGE
Lloh6:
	ldr	x27, [x27, _ASN1_STRFLGS_ESC_MSB@GOTPAGEOFF]
Lloh7:
	adrp	x23, l_.str@PAGE
Lloh8:
	add	x23, x23, l_.str@PAGEOFF
Lloh9:
	adrp	x28, _ASN1_STRFLGS_UTF8_CONVERT@GOTPAGE
Lloh10:
	ldr	x28, [x28, _ASN1_STRFLGS_UTF8_CONVERT@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	x1, x23
	bl	_BIO_printf
	ldr	w8, [x26]
	ldr	w9, [x27]
	bic	w8, w8, w9
	ldr	w9, [x28]
	orr	w2, w8, w9
	mov	x0, x19
	mov	x1, x24
	bl	_ASN1_STRING_print_ex
	add	w22, w22, #1
	cmp	w21, w22
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_X509_NAME_get_entry
	mov	x24, x0
	bl	_X509_NAME_ENTRY_get_object
	bl	_OBJ_obj2nid
	mov	x25, x0
	mov	x0, x24
	bl	_X509_NAME_ENTRY_get_data
	mov	x24, x0
	mov	x0, x25
	bl	_OBJ_nid2sn
	mov	x2, x0
	cbnz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x25
	bl	_OBJ_nid2ln
	mov	x2, x0
	b	LBB0_2
LBB0_5:
	strb	wzr, [sp, #15]
	add	x1, sp, #15
	mov	x0, x19
	mov	w2, #1
	bl	_BIO_write
	mov	x1, sp
	mov	x0, x19
	bl	_BIO_get_mem_data
	ldr	x8, [sp]
	sub	x1, x0, #1
Lloh11:
	adrp	x9, _PG_UTF8@GOTPAGE
Lloh12:
	ldr	x9, [x9, _PG_UTF8@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x9]
	mov	x0, x8
	bl	_pg_any_to_server
	mov	x21, x0
	bl	_pstrdup
	mov	x20, x0
	ldr	x8, [sp]
	cmp	x21, x8
	b.eq	LBB0_7
; %bb.6:
	mov	x0, x21
	bl	_pfree
LBB0_7:
	mov	x0, x19
	bl	_BIO_free
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_BIO_CLOSE,4,2                  ; @BIO_CLOSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/%s="

	.comm	_ASN1_STRFLGS_RFC2253,4,2       ; @ASN1_STRFLGS_RFC2253
	.comm	_ASN1_STRFLGS_ESC_MSB,4,2       ; @ASN1_STRFLGS_ESC_MSB
	.comm	_ASN1_STRFLGS_UTF8_CONVERT,4,2  ; @ASN1_STRFLGS_UTF8_CONVERT
	.comm	_PG_UTF8,4,2                    ; @PG_UTF8
	.no_dead_strip	_X509_NAME_to_cstring
.subsections_via_symbols
