	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function field_format_public_key
_field_format_public_key:               ## @field_format_public_key
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_CRYPT_OID_INFO_OID_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rax
	movl	4(%rax), %esi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_CryptFindOIDInfo
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %r12
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movq	_MAX_STRING_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	_hInstance@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_IDS_FIELD_PUBLIC_KEY_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	movl	%r13d, %edi
	movl	%ebx, %esi
	movq	%r15, %rdx
	movl	%eax, %ecx
	callq	_LoadStringW
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%r15, %rdi
	callq	_lstrlenW
	movl	%eax, %ebx
	movq	(%r12), %rdi
	callq	_lstrlenW
                                        ## kill: def $eax killed $eax def $rax
	addl	%ebx, %eax
	movq	(%r14), %rcx
	movl	(%rcx), %ecx
	leal	(%rax,%rcx,8), %r13d
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	leal	(,%r13,4), %edx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapAlloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rax, %r13
	movq	(%r12), %rax
	movq	%rax, -64(%rbp)
	movq	_X509_ASN_ENCODING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rsi
	callq	_CertGetPublicKeyLength
	movq	%rax, -56(%rbp)
	movq	_FORMAT_MESSAGE_FROM_STRING@GOTPCREL(%rip), %rax
	movq	_FORMAT_MESSAGE_ARGUMENT_ARRAY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	subq	$8, %rsp
	leaq	-64(%rbp), %rax
	movq	%r15, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%r13, %r8
	movq	-72(%rbp), %r9                  ## 8-byte Reload
                                        ## kill: def $r9d killed $r9d killed $r9
	pushq	%rax
	callq	_FormatMessageW
	addq	$16, %rsp
	movq	%r13, %rbx
	jmp	LBB0_5
LBB0_2:
	xorl	%ebx, %ebx
LBB0_5:
	movq	-80(%rbp), %rsp                 ## 8-byte Reload
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	movq	%rbx, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CRYPT_OID_INFO_OID_KEY,4,2     ## @CRYPT_OID_INFO_OID_KEY
	.comm	_MAX_STRING_LEN,4,2             ## @MAX_STRING_LEN
	.comm	_hInstance,4,2                  ## @hInstance
	.comm	_IDS_FIELD_PUBLIC_KEY_FORMAT,4,2 ## @IDS_FIELD_PUBLIC_KEY_FORMAT
	.comm	_X509_ASN_ENCODING,4,2          ## @X509_ASN_ENCODING
	.comm	_FORMAT_MESSAGE_FROM_STRING,4,2 ## @FORMAT_MESSAGE_FROM_STRING
	.comm	_FORMAT_MESSAGE_ARGUMENT_ARRAY,4,2 ## @FORMAT_MESSAGE_ARGUMENT_ARRAY
	.no_dead_strip	_field_format_public_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function field_format_public_key
_field_format_public_key:               ; @field_format_public_key
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #32
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _CRYPT_OID_INFO_OID_KEY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CRYPT_OID_INFO_OID_KEY@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	x8, [x19]
	ldr	w1, [x8, #4]
	mov	w2, #0
	bl	_CryptFindOIDInfo
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x0
	mov	x24, sp
Lloh6:
	adrp	x8, _MAX_STRING_LEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAX_STRING_LEN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh9:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh10:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
Lloh11:
	adrp	x8, _hInstance@GOTPAGE
Lloh12:
	ldr	x8, [x8, _hInstance@GOTPAGEOFF]
Lloh13:
	ldr	w22, [x8]
Lloh14:
	adrp	x8, _IDS_FIELD_PUBLIC_KEY_FORMAT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IDS_FIELD_PUBLIC_KEY_FORMAT@GOTPAGEOFF]
Lloh16:
	ldr	w23, [x8]
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x3, x0
	mov	x0, x22
	mov	x1, x23
	mov	x2, x20
	bl	_LoadStringW
	cbz	x0, LBB0_5
; %bb.2:
	mov	x0, x20
	bl	_lstrlenW
	mov	x22, x0
	ldr	x0, [x21]
	bl	_lstrlenW
	add	w8, w0, w22
	ldr	x9, [x19]
	ldr	w9, [x9]
	add	w23, w8, w9, lsl #3
	bl	_GetProcessHeap
	lsl	w2, w23, #2
	mov	w1, #0
	bl	_HeapAlloc
	mov	x22, x0
	cbz	x0, LBB0_6
; %bb.3:
	ldr	x8, [x21]
	stur	x8, [x29, #-72]
Lloh17:
	adrp	x8, _X509_ASN_ENCODING@GOTPAGE
Lloh18:
	ldr	x8, [x8, _X509_ASN_ENCODING@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	ldr	x1, [x19]
	bl	_CertGetPublicKeyLength
Lloh20:
	adrp	x8, _FORMAT_MESSAGE_FROM_STRING@GOTPAGE
Lloh21:
	ldr	x8, [x8, _FORMAT_MESSAGE_FROM_STRING@GOTPAGEOFF]
	stur	x0, [x29, #-64]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x9, _FORMAT_MESSAGE_ARGUMENT_ARRAY@GOTPAGE
Lloh24:
	ldr	x9, [x9, _FORMAT_MESSAGE_ARGUMENT_ARRAY@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w0, w9, w8
	sub	x6, x29, #72
	mov	x1, x20
	mov	w2, #0
	mov	w3, #0
	mov	x4, x22
	mov	x5, x23
	bl	_FormatMessageW
	b	LBB0_6
LBB0_4:
	mov	x22, #0
	b	LBB0_7
LBB0_5:
	mov	x22, #0
LBB0_6:
	mov	sp, x24
LBB0_7:
	ldur	x8, [x29, #-56]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x22
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_CRYPT_OID_INFO_OID_KEY,4,2     ; @CRYPT_OID_INFO_OID_KEY
	.comm	_MAX_STRING_LEN,4,2             ; @MAX_STRING_LEN
	.comm	_hInstance,4,2                  ; @hInstance
	.comm	_IDS_FIELD_PUBLIC_KEY_FORMAT,4,2 ; @IDS_FIELD_PUBLIC_KEY_FORMAT
	.comm	_X509_ASN_ENCODING,4,2          ; @X509_ASN_ENCODING
	.comm	_FORMAT_MESSAGE_FROM_STRING,4,2 ; @FORMAT_MESSAGE_FROM_STRING
	.comm	_FORMAT_MESSAGE_ARGUMENT_ARRAY,4,2 ; @FORMAT_MESSAGE_ARGUMENT_ARRAY
	.no_dead_strip	_field_format_public_key
.subsections_via_symbols
