	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function IMAGEHLP_GetSecurityDirOffset
_IMAGEHLP_GetSecurityDirOffset:         ## @IMAGEHLP_GetSecurityDirOffset
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	leaq	-48(%rbp), %rdx
	leaq	-40(%rbp), %rcx
	xorl	%esi, %esi
	callq	_IMAGEHLP_GetNTHeaders
	movq	_HDR_NT32@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_2
## %bb.1:
	movq	-48(%rbp), %r12
	jmp	LBB0_5
LBB0_2:
	movq	_HDR_NT64@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_3
## %bb.4:
	movq	-40(%rbp), %r12
LBB0_5:
	movq	_IMAGE_FILE_SECURITY_DIRECTORY@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	movl	(%r12,%rbx,8), %ecx
	movl	4(%r12,%rbx,8), %edx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_TRACE
	movl	4(%r12,%rbx,8), %eax
	movl	%eax, (%r15)
	movl	(%r12,%rbx,8), %eax
	movl	%eax, (%r14)
	movq	_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_3:
	movq	_FALSE@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HDR_NT32,4,2                   ## @HDR_NT32
	.comm	_IMAGE_FILE_SECURITY_DIRECTORY,8,3 ## @IMAGE_FILE_SECURITY_DIRECTORY
	.comm	_HDR_NT64,4,2                   ## @HDR_NT64
	.comm	_FALSE,4,2                      ## @FALSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ret = %d size = %x addr = %x\n"

	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_IMAGEHLP_GetSecurityDirOffset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function IMAGEHLP_GetSecurityDirOffset
_IMAGEHLP_GetSecurityDirOffset:         ; @IMAGEHLP_GetSecurityDirOffset
	.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	x20, x2
	mov	x19, x1
	add	x2, sp, #8
	mov	x3, sp
	mov	x1, #0
	bl	_IMAGEHLP_GetNTHeaders
	mov	x1, x0
Lloh0:
	adrp	x8, _HDR_NT32@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HDR_NT32@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [sp, #8]
	b	LBB0_4
LBB0_2:
Lloh3:
	adrp	x8, _HDR_NT64@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HDR_NT64@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w1, w8
	b.ne	LBB0_5
; %bb.3:
	ldr	x8, [sp]
LBB0_4:
Lloh6:
	adrp	x9, _IMAGE_FILE_SECURITY_DIRECTORY@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IMAGE_FILE_SECURITY_DIRECTORY@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x21, x8, x9, lsl #3
	ldp	w3, w2, [x21]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	ldr	w8, [x21, #4]
	str	w8, [x20]
	ldr	w8, [x21]
	str	w8, [x19]
Lloh11:
	adrp	x8, _TRUE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh13:
	adrp	x8, _FALSE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_HDR_NT32,4,2                   ; @HDR_NT32
	.comm	_IMAGE_FILE_SECURITY_DIRECTORY,8,3 ; @IMAGE_FILE_SECURITY_DIRECTORY
	.comm	_HDR_NT64,4,2                   ; @HDR_NT64
	.comm	_FALSE,4,2                      ; @FALSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ret = %d size = %x addr = %x\n"

	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_IMAGEHLP_GetSecurityDirOffset
.subsections_via_symbols
