	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function IMAGEHLP_SetSecurityDirOffset
_IMAGEHLP_SetSecurityDirOffset:         ## @IMAGEHLP_SetSecurityDirOffset
	.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
	movl	%edx, %r12d
	movl	%esi, %ebx
	movl	%edi, %r15d
	leaq	-48(%rbp), %rsi
	leaq	-64(%rbp), %r14
	leaq	-56(%rbp), %r13
	movq	%r14, %rdx
	movq	%r13, %rcx
	callq	_IMAGEHLP_GetNTHeaders
	movq	_HDR_NT32@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_2
## %bb.1:
	movq	-64(%rbp), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_HDR_NT64@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_9
## %bb.3:
	movq	-56(%rbp), %rax
	movq	%r13, %r14
LBB0_4:
	movq	_IMAGE_FILE_SECURITY_DIRECTORY@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%r12d, (%rax,%rcx,8)
	movl	%ebx, 4(%rax,%rcx,8)
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	callq	_TRACE
	movl	-48(%rbp), %esi
	movq	_FILE_BEGIN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r15d, %edi
	xorl	%edx, %edx
	callq	_SetFilePointer
	movq	_INVALID_SET_FILE_POINTER@GOTPCREL(%rip), %rcx
	movq	_FALSE@GOTPCREL(%rip), %rbx
	cmpl	(%rcx), %eax
	je	LBB0_10
## %bb.5:
	movl	$0, -44(%rbp)
	leaq	-44(%rbp), %rcx
	movl	%r15d, %edi
	movq	%r14, %rsi
	movl	$8, %edx
	xorl	%r8d, %r8d
	callq	_WriteFile
	testl	%eax, %eax
	je	LBB0_10
## %bb.6:
	cmpl	$8, -44(%rbp)
	jne	LBB0_9
## %bb.7:
	movq	_TRUE@GOTPCREL(%rip), %rbx
	jmp	LBB0_10
LBB0_9:
	movq	_FALSE@GOTPCREL(%rip), %rbx
LBB0_10:
	movl	(%rbx), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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	"size = %x addr = %x\n"

	.comm	_FILE_BEGIN,4,2                 ## @FILE_BEGIN
	.comm	_INVALID_SET_FILE_POINTER,4,2   ## @INVALID_SET_FILE_POINTER
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_IMAGEHLP_SetSecurityDirOffset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function IMAGEHLP_SetSecurityDirOffset
_IMAGEHLP_SetSecurityDirOffset:         ; @IMAGEHLP_SetSecurityDirOffset
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	add	x1, sp, #12
	add	x2, sp, #24
	add	x3, sp, #16
	bl	_IMAGEHLP_GetNTHeaders
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:
	add	x20, sp, #24
	ldr	x8, [sp, #24]
	b	LBB0_4
LBB0_2:
Lloh3:
	adrp	x8, _HDR_NT64@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HDR_NT64@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_5
; %bb.3:
	add	x20, sp, #16
	ldr	x8, [sp, #16]
LBB0_4:
Lloh6:
	adrp	x9, _IMAGE_FILE_SECURITY_DIRECTORY@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IMAGE_FILE_SECURITY_DIRECTORY@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x8, x8, x9, lsl #3
	stp	w22, w21, [x8]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	mov	x2, x21
	bl	_TRACE
	ldr	w1, [sp, #12]
Lloh11:
	adrp	x8, _FILE_BEGIN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FILE_BEGIN@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x2, #0
	bl	_SetFilePointer
Lloh14:
	adrp	x8, _INVALID_SET_FILE_POINTER@GOTPAGE
Lloh15:
	ldr	x8, [x8, _INVALID_SET_FILE_POINTER@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_6
LBB0_5:
Lloh17:
	adrp	x8, _FALSE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
	str	wzr, [sp, #8]
	add	x3, sp, #8
	mov	x0, x19
	mov	x1, x20
	mov	w2, #8
	mov	x4, #0
	bl	_WriteFile
Lloh19:
	adrp	x8, _FALSE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
	cbz	w0, LBB0_8
; %bb.7:
	ldr	w9, [sp, #8]
Lloh21:
	adrp	x10, _TRUE@GOTPAGE
Lloh22:
	ldr	x10, [x10, _TRUE@GOTPAGEOFF]
	cmp	w9, #8
	csel	x8, x10, x8, eq
LBB0_8:
	ldr	w0, [x8]
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.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	"size = %x addr = %x\n"

	.comm	_FILE_BEGIN,4,2                 ; @FILE_BEGIN
	.comm	_INVALID_SET_FILE_POINTER,4,2   ; @INVALID_SET_FILE_POINTER
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_IMAGEHLP_SetSecurityDirOffset
.subsections_via_symbols
