	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function SetAttributesOnFile
_SetAttributesOnFile:                   ## @SetAttributesOnFile
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ecx
	movl	(%rdi), %r15d
	movq	_CAB_ATTRIB_READONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	_FILE_ATTRIBUTE_READONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	_CAB_ATTRIB_HIDDEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_FILE_ATTRIBUTE_HIDDEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_CAB_ATTRIB_SYSTEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	_FILE_ATTRIBUTE_SYSTEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movq	_CAB_ATTRIB_DIRECTORY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	_FILE_ATTRIBUTE_DIRECTORY@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_CAB_ATTRIB_ARCHIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movq	_FILE_ATTRIBUTE_ARCHIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_FileBasicInformation@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-84(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	movl	%ecx, -80(%rbp)                 ## 4-byte Spill
	movl	%ecx, %edi
	movl	$4, %ecx
	callq	_NtQueryInformationFile
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_NT_SUCCESS
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	-72(%rbp), %ecx                 ## 4-byte Reload
	andl	%r15d, %ecx
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	andl	%r15d, %edx
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	cmovel	%edx, %eax
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	andl	%r15d, %edx
	cmovel	%edx, %r12d
	orl	%eax, %r12d
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	andl	%r15d, %edx
	movl	-76(%rbp), %eax                 ## 4-byte Reload
	cmovel	%edx, %eax
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	andl	%r15d, %edx
	cmovel	%edx, %r13d
	orl	%eax, %r13d
	orl	%r12d, %r13d
	testl	%ecx, %ecx
	cmovel	%ecx, %r14d
	orl	%r13d, %r14d
	movl	%r14d, -48(%rbp)
	movq	_FileBasicInformation@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-84(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	movl	-80(%rbp), %edi                 ## 4-byte Reload
	movl	$4, %ecx
	callq	_NtSetInformationFile
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_NT_SUCCESS
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_4
LBB0_1:
	leaq	L_.str(%rip), %rdi
LBB0_4:
	movl	%ebx, %esi
	callq	_DPRINT
LBB0_5:
	movl	%ebx, %edi
	callq	_NT_SUCCESS
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CAB_ATTRIB_READONLY,4,2        ## @CAB_ATTRIB_READONLY
	.comm	_FILE_ATTRIBUTE_READONLY,4,2    ## @FILE_ATTRIBUTE_READONLY
	.comm	_CAB_ATTRIB_HIDDEN,4,2          ## @CAB_ATTRIB_HIDDEN
	.comm	_FILE_ATTRIBUTE_HIDDEN,4,2      ## @FILE_ATTRIBUTE_HIDDEN
	.comm	_CAB_ATTRIB_SYSTEM,4,2          ## @CAB_ATTRIB_SYSTEM
	.comm	_FILE_ATTRIBUTE_SYSTEM,4,2      ## @FILE_ATTRIBUTE_SYSTEM
	.comm	_CAB_ATTRIB_DIRECTORY,4,2       ## @CAB_ATTRIB_DIRECTORY
	.comm	_FILE_ATTRIBUTE_DIRECTORY,4,2   ## @FILE_ATTRIBUTE_DIRECTORY
	.comm	_CAB_ATTRIB_ARCHIVE,4,2         ## @CAB_ATTRIB_ARCHIVE
	.comm	_FILE_ATTRIBUTE_ARCHIVE,4,2     ## @FILE_ATTRIBUTE_ARCHIVE
	.comm	_FileBasicInformation,4,2       ## @FileBasicInformation
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NtQueryInformationFile() failed (%x)\n"

L_.str.1:                               ## @.str.1
	.asciz	"NtSetInformationFile() failed (%x)\n"

	.no_dead_strip	_SetAttributesOnFile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function SetAttributesOnFile
_SetAttributesOnFile:                   ; @SetAttributesOnFile
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x1
	ldr	w21, [x0]
Lloh0:
	adrp	x8, _CAB_ATTRIB_READONLY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CAB_ATTRIB_READONLY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #16]                   ; 4-byte Folded Spill
Lloh3:
	adrp	x8, _FILE_ATTRIBUTE_READONLY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FILE_ATTRIBUTE_READONLY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
Lloh6:
	adrp	x8, _CAB_ATTRIB_HIDDEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CAB_ATTRIB_HIDDEN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [sp, #8]                    ; 4-byte Folded Spill
Lloh9:
	adrp	x8, _FILE_ATTRIBUTE_HIDDEN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FILE_ATTRIBUTE_HIDDEN@GOTPAGEOFF]
Lloh11:
	ldr	w25, [x8]
Lloh12:
	adrp	x8, _CAB_ATTRIB_SYSTEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CAB_ATTRIB_SYSTEM@GOTPAGEOFF]
Lloh14:
	ldr	w26, [x8]
Lloh15:
	adrp	x8, _FILE_ATTRIBUTE_SYSTEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FILE_ATTRIBUTE_SYSTEM@GOTPAGEOFF]
Lloh17:
	ldr	w27, [x8]
Lloh18:
	adrp	x8, _CAB_ATTRIB_DIRECTORY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CAB_ATTRIB_DIRECTORY@GOTPAGEOFF]
Lloh20:
	ldr	w28, [x8]
Lloh21:
	adrp	x8, _FILE_ATTRIBUTE_DIRECTORY@GOTPAGE
Lloh22:
	ldr	x8, [x8, _FILE_ATTRIBUTE_DIRECTORY@GOTPAGEOFF]
Lloh23:
	ldr	w22, [x8]
Lloh24:
	adrp	x8, _CAB_ATTRIB_ARCHIVE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _CAB_ATTRIB_ARCHIVE@GOTPAGEOFF]
Lloh26:
	ldr	w23, [x8]
Lloh27:
	adrp	x8, _FILE_ATTRIBUTE_ARCHIVE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _FILE_ATTRIBUTE_ARCHIVE@GOTPAGEOFF]
Lloh29:
	ldr	w24, [x8]
Lloh30:
	adrp	x8, _FileBasicInformation@GOTPAGE
Lloh31:
	ldr	x8, [x8, _FileBasicInformation@GOTPAGEOFF]
Lloh32:
	ldr	w4, [x8]
	add	x1, sp, #20
	add	x2, sp, #24
	mov	x0, x19
	mov	w3, #4
	bl	_NtQueryInformationFile
	mov	x20, x0
	bl	_NT_SUCCESS
	cbz	w0, LBB0_3
; %bb.1:
	ldr	w8, [sp, #16]                   ; 4-byte Folded Reload
	tst	w8, w21
	ldp	w9, w8, [sp, #8]                ; 8-byte Folded Reload
	csel	w8, wzr, w8, eq
	tst	w9, w21
	csel	w9, wzr, w25, eq
	orr	w8, w9, w8
	tst	w26, w21
	csel	w9, wzr, w27, eq
	orr	w8, w8, w9
	tst	w28, w21
	csel	w9, wzr, w22, eq
	orr	w8, w8, w9
	tst	w23, w21
	csel	w9, wzr, w24, eq
	orr	w8, w8, w9
	str	w8, [sp, #24]
Lloh33:
	adrp	x8, _FileBasicInformation@GOTPAGE
Lloh34:
	ldr	x8, [x8, _FileBasicInformation@GOTPAGEOFF]
Lloh35:
	ldr	w4, [x8]
	add	x1, sp, #20
	add	x2, sp, #24
	mov	x0, x19
	mov	w3, #4
	bl	_NtSetInformationFile
	mov	x20, x0
	bl	_NT_SUCCESS
	cbnz	w0, LBB0_5
; %bb.2:
Lloh36:
	adrp	x0, l_.str.1@PAGE
Lloh37:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:
Lloh38:
	adrp	x0, l_.str@PAGE
Lloh39:
	add	x0, x0, l_.str@PAGEOFF
LBB0_4:
	mov	x1, x20
	bl	_DPRINT
LBB0_5:
	mov	x0, x20
	bl	_NT_SUCCESS
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_CAB_ATTRIB_READONLY,4,2        ; @CAB_ATTRIB_READONLY
	.comm	_FILE_ATTRIBUTE_READONLY,4,2    ; @FILE_ATTRIBUTE_READONLY
	.comm	_CAB_ATTRIB_HIDDEN,4,2          ; @CAB_ATTRIB_HIDDEN
	.comm	_FILE_ATTRIBUTE_HIDDEN,4,2      ; @FILE_ATTRIBUTE_HIDDEN
	.comm	_CAB_ATTRIB_SYSTEM,4,2          ; @CAB_ATTRIB_SYSTEM
	.comm	_FILE_ATTRIBUTE_SYSTEM,4,2      ; @FILE_ATTRIBUTE_SYSTEM
	.comm	_CAB_ATTRIB_DIRECTORY,4,2       ; @CAB_ATTRIB_DIRECTORY
	.comm	_FILE_ATTRIBUTE_DIRECTORY,4,2   ; @FILE_ATTRIBUTE_DIRECTORY
	.comm	_CAB_ATTRIB_ARCHIVE,4,2         ; @CAB_ATTRIB_ARCHIVE
	.comm	_FILE_ATTRIBUTE_ARCHIVE,4,2     ; @FILE_ATTRIBUTE_ARCHIVE
	.comm	_FileBasicInformation,4,2       ; @FileBasicInformation
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NtQueryInformationFile() failed (%x)\n"

l_.str.1:                               ; @.str.1
	.asciz	"NtSetInformationFile() failed (%x)\n"

	.no_dead_strip	_SetAttributesOnFile
.subsections_via_symbols
