	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %r15d
	xorl	%eax, %eax
	callq	_geteuid
	movq	_euid@GOTPCREL(%rip), %r12
	movl	%eax, (%r12)
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_warnx
LBB0_2:
	xorl	%eax, %eax
	callq	_getuid
	movl	%eax, %edi
	callq	_seteuid
	testq	%rax, %rax
	jns	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_4:
	xorl	%eax, %eax
	callq	_getuid
	movl	%eax, %edi
	callq	_getpwuid
	movq	_pwd@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_6:
	movb	$1, %r13b
	leaq	L_.str.3(%rip), %rbx
	jmp	LBB0_8
LBB0_7:                                 ##   in Loop: Header=BB0_8 Depth=1
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %edi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_getopt
	cmpl	$45, %eax
	je	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	cmpl	$108, %eax
	je	LBB0_7
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpl	$-1, %eax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	xorl	%eax, %eax
	callq	_usage
	jmp	LBB0_8
LBB0_12:
	movq	_optind@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	subl	%eax, %r15d
	cmpl	$1, %r15d
	je	LBB0_15
## %bb.13:
	xorl	%eax, %eax
	testl	%r15d, %r15d
	jne	LBB0_16
## %bb.14:
	callq	_restoregrps
	jmp	LBB0_17
LBB0_15:
	movq	(%r14,%rax,8), %rdi
	callq	_addgroup
	jmp	LBB0_17
LBB0_16:
	callq	_usage
LBB0_17:
	movl	(%r12), %edi
	callq	_seteuid
	testq	%rax, %rax
	jns	LBB0_19
## %bb.18:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_19:
	xorl	%eax, %eax
	callq	_getuid
	movl	%eax, %edi
	callq	_setuid
	testq	%rax, %rax
	jns	LBB0_21
## %bb.20:
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_21:
	xorl	%eax, %eax
	testb	$1, %r13b
	je	LBB0_22
## %bb.23:
	callq	_doshell
	movl	$1, %edi
	callq	_exit
LBB0_22:
	callq	_loginshell
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_euid,4,2                       ## @euid
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"need root permissions to function properly, check setuid bit"

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

	.comm	_pwd,8,3                        ## @pwd
L_.str.2:                               ## @.str.2
	.asciz	"unknown user"

L_.str.3:                               ## @.str.3
	.asciz	"-l"

	.comm	_optind,8,3                     ## @optind
L_.str.4:                               ## @.str.4
	.asciz	"setuid"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [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 w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
	bl	_geteuid
Lloh0:
	adrp	x22, _euid@GOTPAGE
Lloh1:
	ldr	x22, [x22, _euid@GOTPAGEOFF]
	str	w0, [x22]
	cbz	w0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warnx
LBB0_2:
	bl	_getuid
	bl	_seteuid
	tbz	x0, #63, LBB0_4
; %bb.3:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_4:
	bl	_getuid
	bl	_getpwuid
Lloh6:
	adrp	x8, _pwd@GOTPAGE
Lloh7:
	ldr	x8, [x8, _pwd@GOTPAGEOFF]
Lloh8:
	str	x0, [x8]
	cbnz	x0, LBB0_6
; %bb.5:
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_6:
	mov	w23, #1
Lloh11:
	adrp	x21, l_.str.3@PAGE
Lloh12:
	add	x21, x21, l_.str.3@PAGEOFF
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	w23, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_getopt
	cmp	w0, #45
	b.eq	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	cmp	w0, #108
	b.eq	LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	cmn	w0, #1
	b.eq	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	bl	_usage
	b	LBB0_8
LBB0_12:
Lloh13:
	adrp	x8, _optind@GOTPAGE
Lloh14:
	ldr	x8, [x8, _optind@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	sub	w9, w20, w8
	cmp	w9, #1
	b.eq	LBB0_15
; %bb.13:
	cbnz	w9, LBB0_16
; %bb.14:
	bl	_restoregrps
	b	LBB0_17
LBB0_15:
	ldr	x0, [x19, x8, lsl #3]
	bl	_addgroup
	b	LBB0_17
LBB0_16:
	bl	_usage
LBB0_17:
	ldr	w0, [x22]
	bl	_seteuid
	tbz	x0, #63, LBB0_19
; %bb.18:
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_19:
	bl	_getuid
	bl	_setuid
	tbz	x0, #63, LBB0_21
; %bb.20:
Lloh18:
	adrp	x1, l_.str.4@PAGE
Lloh19:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_21:
	tbz	w23, #0, LBB0_23
; %bb.22:
	bl	_doshell
	mov	w0, #1
	bl	_exit
LBB0_23:
	bl	_loginshell
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_euid,4,2                       ; @euid
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"need root permissions to function properly, check setuid bit"

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

	.comm	_pwd,8,3                        ; @pwd
l_.str.2:                               ; @.str.2
	.asciz	"unknown user"

l_.str.3:                               ; @.str.3
	.asciz	"-l"

	.comm	_optind,8,3                     ; @optind
l_.str.4:                               ; @.str.4
	.asciz	"setuid"

.subsections_via_symbols
