	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function IMAGEHLP_GetCertificateOffset
_IMAGEHLP_GetCertificateOffset:         ## @IMAGEHLP_GetCertificateOffset
	.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	%rcx, %r14
	movq	%rdx, %rbx
	movl	%esi, %r13d
	movl	%edi, %r12d
	leaq	-44(%rbp), %rsi
	leaq	-56(%rbp), %rdx
	callq	_IMAGEHLP_GetSecurityDirOffset
	movq	_FALSE@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	je	LBB0_16
## %bb.1:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	incl	%r13d
	xorl	%ebx, %ebx
	movq	_INVALID_SET_FILE_POINTER@GOTPCREL(%rip), %r14
	leaq	-48(%rbp), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	-44(%rbp), %esi
	addl	%ebx, %esi
	movq	_FILE_BEGIN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r12d, %edi
	xorl	%edx, %edx
	callq	_SetFilePointer
	movl	%eax, -48(%rbp)
	cmpl	(%r14), %eax
	je	LBB0_15
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r12d, %edi
	leaq	-52(%rbp), %rsi
	movl	$4, %edx
	movq	%r15, %rcx
	xorl	%r8d, %r8d
	callq	_ReadFile
	testq	%rax, %rax
	je	LBB0_15
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$4, -48(%rbp)
	jne	LBB0_15
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-52(%rbp), %esi
	cmpl	$4, %esi
	jb	LBB0_15
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-56(%rbp), %eax
	movl	%eax, %ecx
	subl	%ebx, %ecx
	cmpl	%ecx, %esi
	jg	LBB0_15
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	decl	%r13d
	je	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	addl	%esi, %ebx
	leal	7(%rsi), %ecx
	testl	%esi, %esi
	cmovnsl	%esi, %ecx
	andl	$-8, %ecx
	subl	%ecx, %esi
	movl	$8, %ecx
	subl	%esi, %ecx
	testl	%esi, %esi
	cmovel	%esi, %ecx
	addl	%ecx, %ebx
	cmpl	%eax, %ebx
	jl	LBB0_2
LBB0_15:
	movq	_FALSE@GOTPCREL(%rip), %rcx
LBB0_16:
	movq	(%rcx), %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	addl	-44(%rbp), %ebx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, (%rax)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	%esi, (%rax)
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%ebx, %edx
	callq	_TRACE
	movq	_TRUE@GOTPCREL(%rip), %rcx
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_FILE_BEGIN,4,2                 ## @FILE_BEGIN
	.comm	_INVALID_SET_FILE_POINTER,4,2   ## @INVALID_SET_FILE_POINTER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"len = %x addr = %x\n"

	.comm	_TRUE,8,3                       ## @TRUE
	.no_dead_strip	_IMAGEHLP_GetCertificateOffset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function IMAGEHLP_GetCertificateOffset
_IMAGEHLP_GetCertificateOffset:         ; @IMAGEHLP_GetCertificateOffset
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	mov	x1, sp
	add	x2, sp, #12
	bl	_IMAGEHLP_GetSecurityDirOffset
	cbz	x0, LBB0_9
; %bb.1:
	mov	w23, #0
Lloh0:
	adrp	x24, _FILE_BEGIN@GOTPAGE
Lloh1:
	ldr	x24, [x24, _FILE_BEGIN@GOTPAGEOFF]
	add	w25, w22, #1
Lloh2:
	adrp	x26, _INVALID_SET_FILE_POINTER@GOTPAGE
Lloh3:
	ldr	x26, [x26, _INVALID_SET_FILE_POINTER@GOTPAGEOFF]
Lloh4:
	adrp	x22, _FALSE@GOTPAGE
Lloh5:
	ldr	x22, [x22, _FALSE@GOTPAGEOFF]
	mov	w27, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [sp]
	add	w1, w8, w23
	ldr	w3, [x24]
	mov	x0, x21
	mov	x2, #0
	bl	_SetFilePointer
	str	w0, [sp, #8]
	ldr	w8, [x26]
	cmp	w0, w8
	b.eq	LBB0_11
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x1, sp, #4
	add	x3, sp, #8
	mov	x0, x21
	mov	w2, #4
	mov	x4, #0
	bl	_ReadFile
	cbz	x0, LBB0_11
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [sp, #8]
	cmp	w8, #4
	b.ne	LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [sp, #4]
	cmp	w1, #4
	b.lo	LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [sp, #12]
	sub	w9, w8, w23
	cmp	w1, w9
	b.gt	LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	subs	w25, w25, #1
	b.eq	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	negs	w9, w1
	and	w9, w9, #0x7
	and	w10, w1, #0x7
	csneg	w9, w10, w9, mi
	sub	w10, w27, w9
	cmp	w9, #0
	csel	w9, wzr, w10, eq
	add	w10, w1, w23
	add	w23, w10, w9
	cmp	w23, w8
	b.lt	LBB0_2
	b	LBB0_11
LBB0_9:
Lloh6:
	adrp	x22, _FALSE@GOTPAGE
Lloh7:
	ldr	x22, [x22, _FALSE@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
	ldr	w8, [sp]
	add	w2, w8, w23
	str	w2, [x20]
	str	w1, [x19]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
Lloh10:
	adrp	x22, _TRUE@GOTPAGE
Lloh11:
	ldr	x22, [x22, _TRUE@GOTPAGEOFF]
LBB0_11:
	ldr	x0, [x22]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_FILE_BEGIN,4,2                 ; @FILE_BEGIN
	.comm	_INVALID_SET_FILE_POINTER,4,2   ; @INVALID_SET_FILE_POINTER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"len = %x addr = %x\n"

	.comm	_TRUE,8,3                       ; @TRUE
	.no_dead_strip	_IMAGEHLP_GetCertificateOffset
.subsections_via_symbols
