	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_creds
_set_creds:                             ## @set_creds
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movl	%esi, %r15d
	movq	%rdi, %r14
	movl	%edx, -28(%rbp)
	movl	%edx, %edi
	callq	_setgid
	testq	%rax, %rax
	jns	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$-1, %edi
	movq	%r14, %rdx
	movl	%ebx, %ecx
	callq	_err
LBB0_2:
	leaq	-28(%rbp), %rsi
	movl	$1, %edi
	callq	_setgroups
	testq	%rax, %rax
	jns	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movl	$-1, %edi
	movq	%r14, %rdx
	movl	%ebx, %ecx
	callq	_err
LBB0_4:
	movl	%r15d, %edi
	callq	_setuid
	testq	%rax, %rax
	jns	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	movl	$-1, %edi
	movq	%r14, %rdx
	movl	%r15d, %ecx
	callq	_err
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"test %s: setegid(%d)"

L_.str.1:                               ## @.str.1
	.asciz	"test %s: setgroups(%d)"

L_.str.2:                               ## @.str.2
	.asciz	"test %s: seteuid(%d)"

	.no_dead_strip	_set_creds
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_creds
_set_creds:                             ; @set_creds
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	str	w2, [sp, #12]
	mov	x0, x2
	bl	_setgid
	tbz	x0, #63, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #-1
	mov	x2, x20
	mov	x3, x21
	bl	_err
LBB0_2:
	add	x1, sp, #12
	mov	w0, #1
	bl	_setgroups
	tbz	x0, #63, LBB0_4
; %bb.3:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #-1
	mov	x2, x20
	mov	x3, x21
	bl	_err
LBB0_4:
	mov	x0, x19
	bl	_setuid
	tbz	x0, #63, LBB0_6
; %bb.5:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #-1
	mov	x2, x20
	mov	x3, x19
	bl	_err
LBB0_6:
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"test %s: setegid(%d)"

l_.str.1:                               ; @.str.1
	.asciz	"test %s: setgroups(%d)"

l_.str.2:                               ; @.str.2
	.asciz	"test %s: seteuid(%d)"

	.no_dead_strip	_set_creds
.subsections_via_symbols
