	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_temporarily_use_uid            ## -- Begin function temporarily_use_uid
	.p2align	4, 0x90
_temporarily_use_uid:                   ## @temporarily_use_uid
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	xorl	%eax, %eax
	callq	_geteuid
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_privileged@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	jmp	LBB0_26
LBB0_2:
	movq	_privileged@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	_temporarily_use_uid_effective@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_getgroups
	movq	_saved_egroupslen@GOTPCREL(%rip), %r14
	movq	%rax, (%r14)
	testq	%rax, %rax
	jns	LBB0_4
## %bb.3:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_fatal
	movq	(%r14), %rax
LBB0_4:
	movq	_saved_egroups@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testq	%rax, %rax
	jle	LBB0_6
## %bb.5:
	movl	%eax, %esi
	movl	$4, %edx
	callq	_xreallocarray
	movq	%rax, (%rbx)
	movl	(%r14), %edi
	movq	%rax, %rsi
	callq	_getgroups
	jmp	LBB0_7
LBB0_6:
	callq	_free
	movq	$0, (%rbx)
LBB0_7:
	movq	_user_groupslen@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	cmpl	$-1, %edi
	je	LBB0_9
## %bb.8:
	movq	_user_groups_uid@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	(%r12), %rax
	je	LBB0_17
LBB0_9:
	movl	16(%r12), %edi
	movq	8(%r12), %rsi
	callq	_initgroups
	testq	%rax, %rax
	jns	LBB0_11
## %bb.10:
	movl	16(%r12), %r14d
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_fatal
LBB0_11:
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_getgroups
	movl	%eax, (%r15)
	testl	%eax, %eax
	jns	LBB0_13
## %bb.12:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_fatal
	movl	(%r15), %eax
LBB0_13:
	movq	_user_groups@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testl	%eax, %eax
	jle	LBB0_15
## %bb.14:
	movl	%eax, %esi
	movl	$4, %edx
	callq	_xreallocarray
	movq	%rax, (%rbx)
	movl	(%r15), %edi
	movq	%rax, %rsi
	callq	_getgroups
	jmp	LBB0_16
LBB0_15:
	callq	_free
	movq	$0, (%rbx)
LBB0_16:
	movq	(%r12), %rax
	movq	_user_groups_uid@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movl	(%r15), %edi
LBB0_17:
	movq	_user_groups@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_setgroups
	testq	%rax, %rax
	jns	LBB0_19
## %bb.18:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_fatal
LBB0_19:
	xorl	%eax, %eax
	callq	_getegid
	movq	%rax, %rdi
	callq	_setgid
	testq	%rax, %rax
	jns	LBB0_21
## %bb.20:
	xorl	%eax, %eax
	callq	_getegid
	movq	%rax, %r14
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.3(%rip), %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_debug
LBB0_21:
	xorl	%eax, %eax
	callq	_geteuid
	movq	%rax, %rdi
	callq	_setuid
	testq	%rax, %rax
	jns	LBB0_23
## %bb.22:
	xorl	%eax, %eax
	callq	_geteuid
	movq	%rax, %r14
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.4(%rip), %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_debug
LBB0_23:
	movq	8(%r12), %rdi
	callq	_setegid
	testq	%rax, %rax
	jns	LBB0_25
## %bb.24:
	movl	8(%r12), %r14d
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.5(%rip), %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_fatal
LBB0_25:
	movq	(%r12), %rdi
	callq	_seteuid
	cmpl	$-1, %eax
	je	LBB0_27
LBB0_26:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	movl	(%r12), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.6(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fatal                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_privileged,4,2                 ## @privileged
	.comm	_temporarily_use_uid_effective,4,2 ## @temporarily_use_uid_effective
	.comm	_saved_egroupslen,8,3           ## @saved_egroupslen
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"getgroups: %.100s"

	.comm	_errno,4,2                      ## @errno
	.comm	_saved_egroups,8,3              ## @saved_egroups
	.comm	_user_groupslen,4,2             ## @user_groupslen
	.comm	_user_groups_uid,8,3            ## @user_groups_uid
L_.str.1:                               ## @.str.1
	.asciz	"initgroups: %s: %.100s"

	.comm	_user_groups,8,3                ## @user_groups
L_.str.2:                               ## @.str.2
	.asciz	"setgroups: %.100s"

L_.str.3:                               ## @.str.3
	.asciz	"setgid %u: %.100s"

L_.str.4:                               ## @.str.4
	.asciz	"setuid %u: %.100s"

L_.str.5:                               ## @.str.5
	.asciz	"setegid %u: %.100s"

L_.str.6:                               ## @.str.6
	.asciz	"seteuid %u: %.100s"

	.comm	_saved_egid,8,3                 ## @saved_egid
	.comm	_saved_euid,8,3                 ## @saved_euid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_temporarily_use_uid            ; -- Begin function temporarily_use_uid
	.p2align	2
_temporarily_use_uid:                   ; @temporarily_use_uid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	bl	_geteuid
Lloh0:
	adrp	x8, _privileged@GOTPAGE
Lloh1:
	ldr	x8, [x8, _privileged@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	str	wzr, [x8]
	b	LBB0_27
LBB0_2:
	mov	w9, #1
	str	w9, [x8]
Lloh2:
	adrp	x8, _temporarily_use_uid_effective@GOTPAGE
Lloh3:
	ldr	x8, [x8, _temporarily_use_uid_effective@GOTPAGEOFF]
Lloh4:
	str	w9, [x8]
	mov	x1, #0
	bl	_getgroups
	mov	x1, x0
Lloh5:
	adrp	x20, _saved_egroupslen@GOTPAGE
Lloh6:
	ldr	x20, [x20, _saved_egroupslen@GOTPAGEOFF]
	str	x0, [x20]
	tbz	x0, #63, LBB0_4
; %bb.3:
Lloh7:
	adrp	x8, _errno@GOTPAGE
Lloh8:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_strerror
	mov	x1, x0
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_fatal
	ldr	x1, [x20]
LBB0_4:
Lloh12:
	adrp	x21, _saved_egroups@GOTPAGE
Lloh13:
	ldr	x21, [x21, _saved_egroups@GOTPAGEOFF]
	ldr	x0, [x21]
	cmp	x1, #1
	b.lt	LBB0_6
; %bb.5:
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	w2, #4
	bl	_xreallocarray
	mov	x1, x0
	str	x0, [x21]
	ldr	w0, [x20]
	bl	_getgroups
	b	LBB0_7
LBB0_6:
	bl	_free
	str	xzr, [x21]
LBB0_7:
Lloh14:
	adrp	x22, _user_groupslen@GOTPAGE
Lloh15:
	ldr	x22, [x22, _user_groupslen@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh16:
	adrp	x21, _user_groups@GOTPAGE
Lloh17:
	ldr	x21, [x21, _user_groups@GOTPAGEOFF]
Lloh18:
	adrp	x23, _user_groups_uid@GOTPAGE
Lloh19:
	ldr	x23, [x23, _user_groups_uid@GOTPAGEOFF]
	cmn	w0, #1
	b.eq	LBB0_9
; %bb.8:
	ldr	x8, [x23]
	ldr	x9, [x19]
	cmp	x8, x9
	b.eq	LBB0_17
LBB0_9:
	ldr	w0, [x19, #16]
	ldr	x1, [x19, #8]
	bl	_initgroups
	tbz	x0, #63, LBB0_11
; %bb.10:
	ldr	w20, [x19, #16]
Lloh20:
	adrp	x8, _errno@GOTPAGE
Lloh21:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh23:
	adrp	x0, l_.str.1@PAGE
Lloh24:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_fatal
LBB0_11:
	mov	w0, #0
	mov	x1, #0
	bl	_getgroups
	mov	x1, x0
	str	w1, [x22]
	tbz	w1, #31, LBB0_13
; %bb.12:
Lloh25:
	adrp	x8, _errno@GOTPAGE
Lloh26:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	bl	_strerror
	mov	x1, x0
Lloh28:
	adrp	x0, l_.str@PAGE
Lloh29:
	add	x0, x0, l_.str@PAGEOFF
	bl	_fatal
	ldr	w1, [x22]
LBB0_13:
	ldr	x0, [x21]
	cmp	w1, #1
	b.lt	LBB0_15
; %bb.14:
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	w2, #4
	bl	_xreallocarray
	mov	x1, x0
	str	x0, [x21]
	ldr	w0, [x22]
	bl	_getgroups
	b	LBB0_16
LBB0_15:
	bl	_free
	str	xzr, [x21]
LBB0_16:
	ldr	x8, [x19]
	str	x8, [x23]
	ldr	w0, [x22]
LBB0_17:
	ldr	x1, [x21]
	bl	_setgroups
	tbz	x0, #63, LBB0_19
; %bb.18:
Lloh30:
	adrp	x8, _errno@GOTPAGE
Lloh31:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	bl	_strerror
	mov	x1, x0
Lloh33:
	adrp	x0, l_.str.2@PAGE
Lloh34:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_fatal
LBB0_19:
	bl	_getegid
	bl	_setgid
	tbz	x0, #63, LBB0_21
; %bb.20:
	bl	_getegid
	mov	x20, x0
Lloh35:
	adrp	x8, _errno@GOTPAGE
Lloh36:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
Lloh38:
	adrp	x0, l_.str.3@PAGE
Lloh39:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x20
	bl	_debug
LBB0_21:
	bl	_geteuid
	bl	_setuid
	tbz	x0, #63, LBB0_23
; %bb.22:
	bl	_geteuid
	mov	x20, x0
Lloh40:
	adrp	x8, _errno@GOTPAGE
Lloh41:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
Lloh43:
	adrp	x0, l_.str.4@PAGE
Lloh44:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x20
	bl	_debug
LBB0_23:
	ldr	x0, [x19, #8]
	bl	_setegid
	tbz	x0, #63, LBB0_25
; %bb.24:
	ldr	w20, [x19, #8]
Lloh45:
	adrp	x8, _errno@GOTPAGE
Lloh46:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh47:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh48:
	adrp	x0, l_.str.5@PAGE
Lloh49:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x1, x20
	bl	_fatal
LBB0_25:
	ldr	x0, [x19]
	bl	_seteuid
	cmn	w0, #1
	b.ne	LBB0_27
; %bb.26:
	ldr	w19, [x19]
Lloh50:
	adrp	x8, _errno@GOTPAGE
Lloh51:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh52:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh53:
	adrp	x0, l_.str.6@PAGE
Lloh54:
	add	x0, x0, l_.str.6@PAGEOFF
	mov	x1, x19
	bl	_fatal
LBB0_27:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.cfi_endproc
                                        ; -- End function
	.comm	_privileged,4,2                 ; @privileged
	.comm	_temporarily_use_uid_effective,4,2 ; @temporarily_use_uid_effective
	.comm	_saved_egroupslen,8,3           ; @saved_egroupslen
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"getgroups: %.100s"

	.comm	_errno,4,2                      ; @errno
	.comm	_saved_egroups,8,3              ; @saved_egroups
	.comm	_user_groupslen,4,2             ; @user_groupslen
	.comm	_user_groups_uid,8,3            ; @user_groups_uid
l_.str.1:                               ; @.str.1
	.asciz	"initgroups: %s: %.100s"

	.comm	_user_groups,8,3                ; @user_groups
l_.str.2:                               ; @.str.2
	.asciz	"setgroups: %.100s"

l_.str.3:                               ; @.str.3
	.asciz	"setgid %u: %.100s"

l_.str.4:                               ; @.str.4
	.asciz	"setuid %u: %.100s"

l_.str.5:                               ; @.str.5
	.asciz	"setegid %u: %.100s"

l_.str.6:                               ; @.str.6
	.asciz	"seteuid %u: %.100s"

	.comm	_saved_egid,8,3                 ; @saved_egid
	.comm	_saved_euid,8,3                 ; @saved_euid
.subsections_via_symbols
