	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_priv_vfs_clearsugid_chgrp      ## -- Begin function priv_vfs_clearsugid_chgrp
	.p2align	4, 0x90
_priv_vfs_clearsugid_chgrp:             ## @priv_vfs_clearsugid_chgrp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movl	%edi, %ebx
	movq	_fpath@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testl	%ebx, %ebx
	jne	LBB0_1
## %bb.2:
	movq	_GID_OWNER@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_GID_WHEEL@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %edx
	movl	$-1, %esi
	callq	_chown
	testq	%rax, %rax
	jns	LBB0_5
## %bb.4:
	testl	%ebx, %ebx
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	testl	%r14d, %r14d
	leaq	L_.str.4(%rip), %rax
	leaq	L_.str.3(%rip), %rcx
	cmoveq	%rax, %rcx
	leaq	L_.str(%rip), %rsi
	movl	$-1, %edi
	callq	_err
LBB0_5:
	leaq	L_.str.5(%rip), %rdi
	movl	%ebx, %esi
	movl	%r14d, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_confirm_sugid                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_fpath,4,2                      ## @fpath
	.comm	_GID_WHEEL,4,2                  ## @GID_WHEEL
	.comm	_GID_OWNER,4,2                  ## @GID_OWNER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"priv_vfs_clearsugid_chgrp(%s, %s): chrgrp"

L_.str.1:                               ## @.str.1
	.asciz	"root"

L_.str.2:                               ## @.str.2
	.asciz	"!root"

L_.str.3:                               ## @.str.3
	.asciz	"jail"

L_.str.4:                               ## @.str.4
	.asciz	"!jail"

L_.str.5:                               ## @.str.5
	.asciz	"priv_vfs_clearsugid_chgrp"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_priv_vfs_clearsugid_chgrp      ; -- Begin function priv_vfs_clearsugid_chgrp
	.p2align	2
_priv_vfs_clearsugid_chgrp:             ; @priv_vfs_clearsugid_chgrp
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _fpath@GOTPAGE
Lloh1:
	ldr	x8, [x8, _fpath@GOTPAGEOFF]
Lloh2:
	adrp	x9, _GID_WHEEL@GOTPAGE
Lloh3:
	ldr	x9, [x9, _GID_WHEEL@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _GID_OWNER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GID_OWNER@GOTPAGEOFF]
	cmp	w20, #0
	csel	x8, x8, x9, eq
	ldr	w2, [x8]
	mov	w1, #-1
	bl	_chown
	tbz	x0, #63, LBB0_2
; %bb.1:
Lloh7:
	adrp	x8, l_.str.1@PAGE
Lloh8:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh9:
	adrp	x9, l_.str.2@PAGE
Lloh10:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w20, #0
	csel	x2, x9, x8, eq
Lloh11:
	adrp	x8, l_.str.3@PAGE
Lloh12:
	add	x8, x8, l_.str.3@PAGEOFF
Lloh13:
	adrp	x9, l_.str.4@PAGE
Lloh14:
	add	x9, x9, l_.str.4@PAGEOFF
	cmp	w19, #0
	csel	x3, x9, x8, eq
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #-1
	bl	_err
LBB0_2:
Lloh17:
	adrp	x0, l_.str.5@PAGE
Lloh18:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_confirm_sugid
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_fpath,4,2                      ; @fpath
	.comm	_GID_WHEEL,4,2                  ; @GID_WHEEL
	.comm	_GID_OWNER,4,2                  ; @GID_OWNER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"priv_vfs_clearsugid_chgrp(%s, %s): chrgrp"

l_.str.1:                               ; @.str.1
	.asciz	"root"

l_.str.2:                               ; @.str.2
	.asciz	"!root"

l_.str.3:                               ; @.str.3
	.asciz	"jail"

l_.str.4:                               ; @.str.4
	.asciz	"!jail"

l_.str.5:                               ; @.str.5
	.asciz	"priv_vfs_clearsugid_chgrp"

.subsections_via_symbols
