	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CRYPT_ReadBlobFromFile
_CRYPT_ReadBlobFromFile:                ## @CRYPT_ReadBlobFromFile
	.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	%rsi, %r14
	movl	%edi, %ebx
	movq	_FALSE@GOTPCREL(%rip), %r13
	movl	(%r13), %r12d
	callq	_debugstr_w
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_TRACE
	movq	_GENERIC_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FILE_SHARE_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_OPEN_EXISTING@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	$0, (%rsp)
	movl	%ebx, %edi
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	callq	_CreateFileW
	movq	%rax, %r15
	movq	_INVALID_HANDLE_VALUE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	je	LBB0_8
## %bb.1:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_GetFileSize
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	%rax, %rdi
	callq	_CryptMemAlloc
	movl	%eax, 8(%r14)
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:
	movq	(%r14), %rdx
	leaq	-48(%rbp), %rcx
	movq	%r15, %rdi
	movl	%eax, %esi
	xorl	%r8d, %r8d
	callq	_ReadFile
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	-48(%rbp), %rax
	movl	$1, %r12d
	cmpq	(%r14), %rax
	je	LBB0_7
LBB0_5:
	movl	8(%r14), %edi
	callq	_CryptMemFree
	xorl	%r12d, %r12d
	jmp	LBB0_7
LBB0_6:
	movl	(%r13), %r12d
LBB0_7:
	movq	%r15, %rdi
	callq	_CloseHandle
LBB0_8:
	leaq	L_.str.1(%rip), %rdi
	movl	%r12d, %esi
	callq	_TRACE
	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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s\n"

	.comm	_GENERIC_READ,4,2               ## @GENERIC_READ
	.comm	_FILE_SHARE_READ,4,2            ## @FILE_SHARE_READ
	.comm	_OPEN_EXISTING,4,2              ## @OPEN_EXISTING
	.comm	_INVALID_HANDLE_VALUE,8,3       ## @INVALID_HANDLE_VALUE
	.comm	_TRUE,4,2                       ## @TRUE
L_.str.1:                               ## @.str.1
	.asciz	"returning %d\n"

	.no_dead_strip	_CRYPT_ReadBlobFromFile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CRYPT_ReadBlobFromFile
_CRYPT_ReadBlobFromFile:                ; @CRYPT_ReadBlobFromFile
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x22, _FALSE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _FALSE@GOTPAGEOFF]
	ldr	w20, [x22]
	bl	_debugstr_w
	mov	x1, x0
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
Lloh4:
	adrp	x8, _GENERIC_READ@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GENERIC_READ@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x8, _FILE_SHARE_READ@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FILE_SHARE_READ@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
Lloh10:
	adrp	x8, _OPEN_EXISTING@GOTPAGE
Lloh11:
	ldr	x8, [x8, _OPEN_EXISTING@GOTPAGEOFF]
Lloh12:
	ldr	w4, [x8]
	mov	x0, x21
	mov	x3, #0
	mov	w5, #0
	mov	x6, #0
	bl	_CreateFileW
Lloh13:
	adrp	x8, _INVALID_HANDLE_VALUE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _INVALID_HANDLE_VALUE@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_9
; %bb.1:
	mov	x21, x0
Lloh16:
	adrp	x8, _TRUE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh18:
	ldr	w20, [x8]
	mov	x1, #0
	bl	_GetFileSize
	str	x0, [x19]
	cbz	x0, LBB0_8
; %bb.2:
	bl	_CryptMemAlloc
	str	w0, [x19, #8]
	cbz	w0, LBB0_7
; %bb.3:
	mov	x1, x0
	ldr	x2, [x19]
	add	x3, sp, #8
	mov	x0, x21
	mov	x4, #0
	bl	_ReadFile
	cbz	x0, LBB0_6
; %bb.4:
	ldr	x8, [sp, #8]
	ldr	x9, [x19]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	mov	w20, #1
	b	LBB0_8
LBB0_6:
	ldr	w0, [x19, #8]
	bl	_CryptMemFree
	mov	w20, #0
	b	LBB0_8
LBB0_7:
	ldr	w20, [x22]
LBB0_8:
	mov	x0, x21
	bl	_CloseHandle
LBB0_9:
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_TRACE
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s\n"

	.comm	_GENERIC_READ,4,2               ; @GENERIC_READ
	.comm	_FILE_SHARE_READ,4,2            ; @FILE_SHARE_READ
	.comm	_OPEN_EXISTING,4,2              ; @OPEN_EXISTING
	.comm	_INVALID_HANDLE_VALUE,8,3       ; @INVALID_HANDLE_VALUE
	.comm	_TRUE,4,2                       ; @TRUE
l_.str.1:                               ; @.str.1
	.asciz	"returning %d\n"

	.no_dead_strip	_CRYPT_ReadBlobFromFile
.subsections_via_symbols
