	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_cert_common_name
_get_cert_common_name:                  ## @get_cert_common_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	_X509_ASN_ENCODING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_X509_NAME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	(%rdi), %rdx
	movl	(%rdx), %ecx
	movl	4(%rdx), %edx
	movq	_CRYPT_DECODE_NOCOPY_FLAG@GOTPCREL(%rip), %rdi
	movq	_CRYPT_DECODE_ALLOC_FLAG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r8d
	orl	(%rdi), %r8d
	leaq	-20(%rbp), %r10
	leaq	-16(%rbp), %r11
	xorl	%ebx, %ebx
	movl	%eax, %edi
	xorl	%r9d, %r9d
	pushq	%r10
	pushq	%r11
	callq	_CryptDecodeObjectEx
	addq	$16, %rsp
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	_szOID_COMMON_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-16(%rbp), %rsi
	callq	_CertFindRDNAttr
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movl	4(%rax), %edi
	leaq	_get_cert_common_name.buf(%rip), %rbx
	movq	%rax, %rsi
	movq	%rbx, %rdx
	movl	$1024, %ecx                     ## imm = 0x400
	callq	_CertRDNValueToStrA
	jmp	LBB0_4
LBB0_2:
	xorl	%ebx, %ebx
LBB0_4:
	movq	-16(%rbp), %rdi
	callq	_LocalFree
LBB0_5:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_get_cert_common_name.buf,1024,4 ## @get_cert_common_name.buf
	.comm	_X509_ASN_ENCODING,4,2          ## @X509_ASN_ENCODING
	.comm	_X509_NAME,4,2                  ## @X509_NAME
	.comm	_CRYPT_DECODE_NOCOPY_FLAG,4,2   ## @CRYPT_DECODE_NOCOPY_FLAG
	.comm	_CRYPT_DECODE_ALLOC_FLAG,4,2    ## @CRYPT_DECODE_ALLOC_FLAG
	.comm	_szOID_COMMON_NAME,4,2          ## @szOID_COMMON_NAME
	.no_dead_strip	_get_cert_common_name
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_cert_common_name
_get_cert_common_name:                  ; @get_cert_common_name
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _X509_ASN_ENCODING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _X509_ASN_ENCODING@GOTPAGEOFF]
Lloh2:
	adrp	x9, _X509_NAME@GOTPAGE
Lloh3:
	ldr	x9, [x9, _X509_NAME@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w1, [x9]
	ldr	x9, [x0]
Lloh6:
	adrp	x10, _CRYPT_DECODE_NOCOPY_FLAG@GOTPAGE
Lloh7:
	ldr	x10, [x10, _CRYPT_DECODE_NOCOPY_FLAG@GOTPAGEOFF]
	ldp	w3, w2, [x9]
Lloh8:
	ldr	w9, [x10]
Lloh9:
	adrp	x10, _CRYPT_DECODE_ALLOC_FLAG@GOTPAGE
Lloh10:
	ldr	x10, [x10, _CRYPT_DECODE_ALLOC_FLAG@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w4, w10, w9
	add	x6, sp, #8
	add	x7, sp, #4
	mov	x0, x8
	mov	x5, #0
	bl	_CryptDecodeObjectEx
	cbz	x0, LBB0_3
; %bb.1:
Lloh12:
	adrp	x8, _szOID_COMMON_NAME@GOTPAGE
Lloh13:
	ldr	x8, [x8, _szOID_COMMON_NAME@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	x1, [sp, #8]
	bl	_CertFindRDNAttr
	cbz	x0, LBB0_4
; %bb.2:
	mov	x1, x0
	ldr	w0, [x0, #4]
Lloh15:
	adrp	x19, _get_cert_common_name.buf@PAGE
Lloh16:
	add	x19, x19, _get_cert_common_name.buf@PAGEOFF
	mov	x2, x19
	mov	w3, #1024
	bl	_CertRDNValueToStrA
	b	LBB0_5
LBB0_3:
	mov	x19, #0
	b	LBB0_6
LBB0_4:
	mov	x19, #0
LBB0_5:
	ldr	x0, [sp, #8]
	bl	_LocalFree
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_get_cert_common_name.buf,1024,0 ; @get_cert_common_name.buf
	.comm	_X509_ASN_ENCODING,4,2          ; @X509_ASN_ENCODING
	.comm	_X509_NAME,4,2                  ; @X509_NAME
	.comm	_CRYPT_DECODE_NOCOPY_FLAG,4,2   ; @CRYPT_DECODE_NOCOPY_FLAG
	.comm	_CRYPT_DECODE_ALLOC_FLAG,4,2    ; @CRYPT_DECODE_ALLOC_FLAG
	.comm	_szOID_COMMON_NAME,4,2          ; @szOID_COMMON_NAME
	.no_dead_strip	_get_cert_common_name
.subsections_via_symbols
