	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isc_fsaccess_changeowner       ## -- Begin function isc_fsaccess_changeowner
	.p2align	4, 0x90
_isc_fsaccess_changeowner:              ## @isc_fsaccess_changeowner
	.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
	pushq	%rax
	movl	$4152, %eax                     ## imm = 0x1038
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$2000, -4176(%rbp)              ## imm = 0x7D0
	movl	$100, -4164(%rbp)
	movl	$2000, -4172(%rbp)              ## imm = 0x7D0
	callq	_is_ntfs
	movq	_FALSE@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_2
LBB0_9:
	movq	_ISC_R_SUCCESS@GOTPCREL(%rip), %r12
	jmp	LBB0_10
LBB0_2:
	movq	_SECURITY_DESCRIPTOR_REVISION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-4168(%rbp), %rdi
	callq	_InitializeSecurityDescriptor
	movq	_ISC_R_NOPERM@GOTPCREL(%rip), %r12
	testl	%eax, %eax
	je	LBB0_10
## %bb.3:
	leaq	-2048(%rbp), %rdx
	leaq	-4180(%rbp), %r14
	movq	%r14, (%rsp)
	leaq	-4176(%rbp), %rcx
	leaq	-4160(%rbp), %r8
	leaq	-4164(%rbp), %r9
	xorl	%edi, %edi
	movq	%rbx, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_LookupAccountName
	testl	%eax, %eax
	je	LBB0_10
## %bb.4:
	leaq	-4048(%rbp), %rbx
	movl	$100, -4164(%rbp)
	movq	%r14, (%rsp)
	leaq	L_.str(%rip), %rsi
	leaq	-4172(%rbp), %rcx
	leaq	-4160(%rbp), %r8
	leaq	-4164(%rbp), %r9
	xorl	%edi, %edi
	movl	%ebx, %edx
	callq	_LookupAccountName
	testl	%eax, %eax
	je	LBB0_10
## %bb.5:
	movq	(%r13), %rdx
	leaq	-4168(%rbp), %rdi
	leaq	-2048(%rbp), %rsi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_SetSecurityDescriptorOwner
	testl	%eax, %eax
	je	LBB0_10
## %bb.6:
	movq	(%r13), %rdx
	leaq	-4168(%rbp), %rdi
	movl	%ebx, %esi
	callq	_SetSecurityDescriptorGroup
	testl	%eax, %eax
	je	LBB0_10
## %bb.7:
	movq	_OWNER_SECURITY_INFORMATION@GOTPCREL(%rip), %rax
	movq	_GROUP_SECURITY_INFORMATION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	leaq	-4168(%rbp), %rdx
	movq	%r15, %rdi
	callq	_SetFileSecurity
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movq	_ISC_R_NOPERM@GOTPCREL(%rip), %r12
LBB0_10:
	movl	(%r12), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_12
## %bb.11:
	addq	$4152, %rsp                     ## imm = 0x1038
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_ISC_R_SUCCESS,4,2              ## @ISC_R_SUCCESS
	.comm	_SECURITY_DESCRIPTOR_REVISION,4,2 ## @SECURITY_DESCRIPTOR_REVISION
	.comm	_ISC_R_NOPERM,4,2               ## @ISC_R_NOPERM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Administrators"

	.comm	_OWNER_SECURITY_INFORMATION,4,2 ## @OWNER_SECURITY_INFORMATION
	.comm	_GROUP_SECURITY_INFORMATION,4,2 ## @GROUP_SECURITY_INFORMATION
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isc_fsaccess_changeowner       ; -- Begin function isc_fsaccess_changeowner
	.p2align	2
_isc_fsaccess_changeowner:              ; @isc_fsaccess_changeowner
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -56
	.cfi_offset w28, -64
	mov	w9, #4128
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #1, lsl #12             ; =4096
	sub	sp, sp, #32
	mov	x20, x1
	mov	x19, x0
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	mov	w8, #2000
	mov	w9, #100
	stp	w9, w8, [sp, #8]
	str	w8, [sp]
	bl	_is_ntfs
Lloh5:
	adrp	x22, _FALSE@GOTPAGE
Lloh6:
	ldr	x22, [x22, _FALSE@GOTPAGEOFF]
	ldr	x8, [x22]
Lloh7:
	adrp	x21, _ISC_R_SUCCESS@GOTPAGE
Lloh8:
	ldr	x21, [x21, _ISC_R_SUCCESS@GOTPAGEOFF]
	cmp	x0, x8
	b.eq	LBB0_8
; %bb.1:
Lloh9:
	adrp	x8, _SECURITY_DESCRIPTOR_REVISION@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SECURITY_DESCRIPTOR_REVISION@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x0, sp, #16
	bl	_InitializeSecurityDescriptor
	cbz	w0, LBB0_7
; %bb.2:
	add	x2, sp, #2120
	add	x3, sp, #12
	add	x4, sp, #20
	add	x5, sp, #8
	add	x6, sp, #4
	mov	w0, #0
	mov	x1, x20
	bl	_LookupAccountName
	cbz	w0, LBB0_7
; %bb.3:
	mov	w8, #100
	str	w8, [sp, #8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #120
	mov	x3, sp
	add	x4, sp, #20
	add	x5, sp, #8
	add	x6, sp, #4
	mov	w0, #0
	bl	_LookupAccountName
	cbz	w0, LBB0_7
; %bb.4:
	ldr	x2, [x22]
	add	x0, sp, #16
	add	x1, sp, #2120
	bl	_SetSecurityDescriptorOwner
	cbz	w0, LBB0_7
; %bb.5:
	ldr	x2, [x22]
	add	x0, sp, #16
	add	x1, sp, #120
	bl	_SetSecurityDescriptorGroup
Lloh14:
	adrp	x20, _ISC_R_NOPERM@GOTPAGE
Lloh15:
	ldr	x20, [x20, _ISC_R_NOPERM@GOTPAGEOFF]
	cbz	w0, LBB0_10
; %bb.6:
Lloh16:
	adrp	x8, _OWNER_SECURITY_INFORMATION@GOTPAGE
Lloh17:
	ldr	x8, [x8, _OWNER_SECURITY_INFORMATION@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _GROUP_SECURITY_INFORMATION@GOTPAGE
Lloh20:
	ldr	x9, [x9, _GROUP_SECURITY_INFORMATION@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w1, w9, w8
	add	x2, sp, #16
	mov	x0, x19
	bl	_SetFileSecurity
	cmp	w0, #0
	csel	x21, x20, x21, eq
	b	LBB0_8
LBB0_7:
Lloh22:
	adrp	x21, _ISC_R_NOPERM@GOTPAGE
Lloh23:
	ldr	x21, [x21, _ISC_R_NOPERM@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x21]
	ldur	x8, [x29, #-56]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.9:
	add	sp, sp, #1, lsl #12             ; =4096
	add	sp, sp, #32
	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
	ldp	x28, x27, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	x21, x20
	b	LBB0_8
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_ISC_R_SUCCESS,4,2              ; @ISC_R_SUCCESS
	.comm	_SECURITY_DESCRIPTOR_REVISION,4,2 ; @SECURITY_DESCRIPTOR_REVISION
	.comm	_ISC_R_NOPERM,4,2               ; @ISC_R_NOPERM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Administrators"

	.comm	_OWNER_SECURITY_INFORMATION,4,2 ; @OWNER_SECURITY_INFORMATION
	.comm	_GROUP_SECURITY_INFORMATION,4,2 ; @GROUP_SECURITY_INFORMATION
.subsections_via_symbols
