	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function compare_cert_by_name_str
_compare_cert_by_name_str:              ## @compare_cert_by_name_str
	.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	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	_CERT_INFO_SUBJECT_FLAG@GOTPCREL(%rip), %rcx
	andl	(%rcx), %esi
	movq	8(%rdi), %rcx
	leaq	4(%rcx), %rbx
	testl	%esi, %esi
	cmoveq	%rcx, %rbx
	movl	(%rax), %r12d
	movl	(%rdi), %edi
	movq	_CERT_SIMPLE_NAME_STR@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_CertNameToStrW
	testl	%eax, %eax
	je	LBB0_9
## %bb.1:
	movl	%eax, %r14d
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	leal	(,%r14,4), %edi
	callq	_CryptMemAlloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	%rax, %r12
	movl	(%r13), %edi
	movl	(%r15), %edx
	movq	%rbx, %rsi
	movq	%rax, %rcx
	movl	%r14d, %r8d
	callq	_CertNameToStrW
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.3:
	movq	%r12, %rbx
	addq	$8, %rbx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	callq	_tolowerW
	movq	%rax, -8(%rbx)
	movq	(%rbx), %rdi
	addq	$8, %rbx
	testq	%rdi, %rdi
	jne	LBB0_4
LBB0_5:
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_strstrW
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_7:
	movq	%r12, %rdi
	callq	_CryptMemFree
LBB0_8:
	movl	-44(%rbp), %r12d                ## 4-byte Reload
LBB0_9:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_CERT_INFO_SUBJECT_FLAG,4,2     ## @CERT_INFO_SUBJECT_FLAG
	.comm	_CERT_SIMPLE_NAME_STR,4,2       ## @CERT_SIMPLE_NAME_STR
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_compare_cert_by_name_str
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function compare_cert_by_name_str
_compare_cert_by_name_str:              ; @compare_cert_by_name_str
	.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	x20, x3
	mov	x22, x0
Lloh0:
	adrp	x8, _FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
Lloh3:
	adrp	x8, _CERT_INFO_SUBJECT_FLAG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CERT_INFO_SUBJECT_FLAG@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	x9, [x0, #8]
	add	x10, x9, #4
	tst	w8, w1
	csel	x23, x9, x10, eq
	ldr	w0, [x0]
Lloh6:
	adrp	x25, _CERT_SIMPLE_NAME_STR@GOTPAGE
Lloh7:
	ldr	x25, [x25, _CERT_SIMPLE_NAME_STR@GOTPAGEOFF]
	ldr	w2, [x25]
	mov	x1, x23
	mov	x3, #0
	mov	w4, #0
	bl	_CertNameToStrW
	cbz	w0, LBB0_6
; %bb.1:
	mov	x24, x0
	lsl	w0, w0, #2
	bl	_CryptMemAlloc
	cbz	x0, LBB0_6
; %bb.2:
	mov	x21, x0
	ldr	w0, [x22]
	ldr	w2, [x25]
	mov	x1, x23
	mov	x3, x21
	mov	x4, x24
	bl	_CertNameToStrW
	ldr	x0, [x21]
	cbz	x0, LBB0_5
; %bb.3:
	add	x22, x21, #8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	bl	_tolowerW
	stur	x0, [x22, #-8]
	ldr	x0, [x22], #8
	cbnz	x0, LBB0_4
LBB0_5:
	mov	x0, x21
	mov	x1, x20
	bl	_strstrW
Lloh8:
	adrp	x8, _TRUE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w19, w19, w8, eq
	mov	x0, x21
	bl	_CryptMemFree
LBB0_6:
	mov	x0, x19
	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	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_CERT_INFO_SUBJECT_FLAG,4,2     ; @CERT_INFO_SUBJECT_FLAG
	.comm	_CERT_SIMPLE_NAME_STR,4,2       ; @CERT_SIMPLE_NAME_STR
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_compare_cert_by_name_str
.subsections_via_symbols
