	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function restoregrps
_restoregrps:                           ## @restoregrps
	.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
	movq	_pwd@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movl	(%rax), %esi
	movl	4(%rax), %edi
	callq	_initgroups
	movl	%eax, %ebx
	movq	(%r14), %rax
	movl	(%rax), %edi
	callq	_setgid
	movl	%eax, %r14d
	testl	%ebx, %ebx
	js	LBB0_1
## %bb.2:
	testl	%r14d, %r14d
	js	LBB0_4
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_warn
	testl	%r14d, %r14d
	jns	LBB0_3
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_warn                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PRIV_START,4,2                 ## @PRIV_START
	.comm	_pwd,8,3                        ## @pwd
	.comm	_PRIV_END,4,2                   ## @PRIV_END
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"initgroups"

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

	.no_dead_strip	_restoregrps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function restoregrps
_restoregrps:                           ; @restoregrps
	.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
Lloh0:
	adrp	x19, _pwd@GOTPAGE
Lloh1:
	ldr	x19, [x19, _pwd@GOTPAGEOFF]
	ldr	x8, [x19]
	ldp	w1, w0, [x8]
	bl	_initgroups
	mov	x20, x0
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_setgid
	mov	x19, x0
	tbnz	w20, #31, LBB0_3
; %bb.1:
	tbnz	w19, #31, LBB0_4
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warn
	tbz	w19, #31, LBB0_2
LBB0_4:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_warn
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PRIV_START,4,2                 ; @PRIV_START
	.comm	_pwd,8,3                        ; @pwd
	.comm	_PRIV_END,4,2                   ; @PRIV_END
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"initgroups"

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

	.no_dead_strip	_restoregrps
.subsections_via_symbols
