	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_cert_by_name_str_a
_find_cert_by_name_str_a:               ## @find_cert_by_name_str_a
	.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	%r8, %r15
	movq	%rcx, %r14
	movl	%edx, %r12d
	movl	%esi, %ebx
	movl	%edi, %r13d
	movq	%rcx, %rdi
	callq	_debugstr_a
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_TRACE
	testq	%r14, %r14
	je	LBB0_6
## %bb.1:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	_CP_ACP@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	xorl	%esi, %esi
	movq	%r14, %rdx
	movl	$-1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_MultiByteToWideChar
	movl	%eax, %r15d
	leal	(,%r15,4), %edi
	callq	_CryptMemAlloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	%rax, %r12
	movl	(%rbx), %edi
	xorl	%esi, %esi
	movq	%r14, %rdx
	movl	$-1, %ecx
	movq	%rax, %r8
	movl	%r15d, %r9d
	callq	_MultiByteToWideChar
	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	_compare_cert_by_name_str@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r13d, %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movq	%r12, %r9
	callq	_cert_compare_certs_in_store
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_CryptMemFree
	movq	%r14, %rax
	jmp	LBB0_8
LBB0_6:
	movl	%r13d, %edi
	movl	%ebx, %esi
	movl	%r12d, %edx
	xorl	%ecx, %ecx
	movq	%r15, %r8
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_find_cert_any                  ## TAILCALL
LBB0_7:
	xorl	%eax, %eax
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s\n"

	.comm	_CP_ACP,4,2                     ## @CP_ACP
	.comm	_compare_cert_by_name_str,4,2   ## @compare_cert_by_name_str
	.no_dead_strip	_find_cert_by_name_str_a
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_cert_by_name_str_a
_find_cert_by_name_str_a:               ; @find_cert_by_name_str_a
	.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	x19, x4
	mov	x24, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	mov	x0, x3
	bl	_debugstr_a
	mov	x1, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	cbz	x24, LBB0_7
; %bb.1:
Lloh2:
	adrp	x26, _CP_ACP@GOTPAGE
Lloh3:
	ldr	x26, [x26, _CP_ACP@GOTPAGEOFF]
	ldr	w0, [x26]
	mov	w1, #0
	mov	x2, x24
	mov	w3, #-1
	mov	x4, #0
	mov	w5, #0
	bl	_MultiByteToWideChar
	mov	x25, x0
	lsl	w0, w0, #2
	bl	_CryptMemAlloc
	cbz	x0, LBB0_6
; %bb.2:
	mov	x23, x0
	ldr	w0, [x26]
	mov	w1, #0
	mov	x2, x24
	mov	w3, #-1
	mov	x4, x23
	mov	x5, x25
	bl	_MultiByteToWideChar
	ldr	x0, [x23]
	cbz	x0, LBB0_5
; %bb.3:
	add	x24, x23, #8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	bl	_tolowerW
	stur	x0, [x24, #-8]
	ldr	x0, [x24], #8
	cbnz	x0, LBB0_4
LBB0_5:
Lloh4:
	adrp	x8, _compare_cert_by_name_str@GOTPAGE
Lloh5:
	ldr	x8, [x8, _compare_cert_by_name_str@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x0, x22
	mov	x1, x19
	mov	x3, x21
	mov	x4, x20
	mov	x5, x23
	bl	_cert_compare_certs_in_store
	mov	x19, x0
	mov	x0, x23
	bl	_CryptMemFree
	mov	x0, x19
LBB0_6:
	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
LBB0_7:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, #0
	mov	x4, 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
	b	_find_cert_any
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s\n"

	.comm	_CP_ACP,4,2                     ; @CP_ACP
	.comm	_compare_cert_by_name_str,4,2   ; @compare_cert_by_name_str
	.no_dead_strip	_find_cert_by_name_str_a
.subsections_via_symbols
