	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movl	%edi, %ebx
	movl	$-1, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %r14
	movq	_optarg@GOTPCREL(%rip), %r12
	leaq	-72(%rbp), %r15
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$85, %eax
	je	LBB0_12
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$-1, %eax
	je	LBB0_15
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_usage
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movq	%r13, %rsi
	movq	%r14, %rdx
	callq	_getopt
	cmpl	$102, %eax
	jle	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$117, %eax
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$103, %eax
	jne	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r12), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_1
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r12), %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_strtol
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	je	LBB0_1
## %bb.13:                              ##   in Loop: Header=BB0_1 Depth=1
	movzbl	%al, %edi
	callq	_isspace
	testl	%eax, %eax
	jne	LBB0_1
	jmp	LBB0_14
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r12), %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_strtol
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %rax
	movzbl	(%rax), %eax
	testb	%al, %al
	je	LBB0_1
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movzbl	%al, %edi
	callq	_isspace
	testl	%eax, %eax
	jne	LBB0_1
## %bb.10:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r12), %rdx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_11
LBB0_15:
	movq	_optind@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	subl	%r14d, %ebx
	testl	%ebx, %ebx
	jg	LBB0_17
## %bb.16:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	xorl	%eax, %eax
	callq	_usage
LBB0_17:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_19
## %bb.18:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	movq	%rbx, %rdi
	callq	_set_gids
LBB0_19:
	cmpl	$-1, %r12d
	je	LBB0_22
## %bb.20:
	movq	_stderr@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str.5(%rip), %rsi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_fprintf
	movl	%r12d, %edi
	callq	_setuid
	testq	%rax, %rax
	jns	LBB0_22
## %bb.21:
	movl	(%r15), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.6(%rip), %rsi
	movl	%ebx, %edi
	movq	%rax, %rdx
	jmp	LBB0_11
LBB0_22:
	leaq	(,%r14,8), %rbx
	addq	%r13, %rbx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_umask
	movq	(%rbx), %rdi
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	callq	_find_syscall
	testq	%rax, %rax
	je	LBB0_24
## %bb.25:                              ##   in Loop: Header=BB0_23 Depth=1
	leaq	8(%rbx), %rsi
	movq	%rax, %rdi
	callq	_call_syscall
	movl	%eax, %eax
	cmpq	$0, 8(%rbx,%rax,8)
	je	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_23 Depth=1
	leaq	(%rbx,%rax,8), %rbx
	addq	$8, %rbx
	movq	8(%rbx), %rdi
	addq	$8, %rbx
	jmp	LBB0_23
LBB0_24:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rdx
	leaq	L_.str.7(%rip), %rsi
LBB0_11:
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
LBB0_27:
	xorl	%edi, %edi
	callq	_exit
LBB0_14:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r12), %rdx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"g:u:U:"

	.comm	_optarg,8,3                     ## @optarg
	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"invalid uid '%s' - number expected\n"

L_.str.2:                               ## @.str.2
	.asciz	"invalid umask '%s' - number expected\n"

	.comm	_optind,8,3                     ## @optind
L_.str.3:                               ## @.str.3
	.asciz	"too few arguments\n"

L_.str.4:                               ## @.str.4
	.asciz	"changing groups to %s\n"

L_.str.5:                               ## @.str.5
	.asciz	"changing uid to %d\n"

L_.str.6:                               ## @.str.6
	.asciz	"cannot change uid: %s\n"

	.comm	_errno,4,2                      ## @errno
L_.str.7:                               ## @.str.7
	.asciz	"syscall '%s' not supported\n"

.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:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x23, x0
	mov	x22, #0
	mov	w20, #0
	mov	w21, #-1
Lloh0:
	adrp	x25, _optarg@GOTPAGE
Lloh1:
	ldr	x25, [x25, _optarg@GOTPAGEOFF]
Lloh2:
	adrp	x24, l_.str@PAGE
Lloh3:
	add	x24, x24, l_.str@PAGEOFF
	b	LBB0_4
LBB0_1:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	w0, #85
	b.eq	LBB0_8
; %bb.2:                                ;   in Loop: Header=BB0_4 Depth=1
	cmn	w0, #1
	b.eq	LBB0_13
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_usage
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	x1, x19
	mov	x2, x24
	bl	_getopt
	cmp	w0, #102
	b.le	LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w0, #117
	b.eq	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w0, #103
	b.ne	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x22, [x25]
	b	LBB0_4
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x25]
	add	x1, sp, #8
	mov	w2, #0
	bl	_strtol
	mov	x20, x0
	ldr	x8, [sp, #8]
	ldrb	w0, [x8]
	cbz	w0, LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_isspace
	cbnz	w0, LBB0_4
	b	LBB0_26
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x25]
	add	x1, sp, #8
	mov	w2, #0
	bl	_strtol
	mov	x21, x0
	ldr	x8, [sp, #8]
	ldrb	w0, [x8]
	cbz	w0, LBB0_4
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	bl	_isspace
	cbnz	w0, LBB0_4
; %bb.12:
Lloh4:
	adrp	x8, _stderr@GOTPAGE
Lloh5:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	ldr	x8, [x25]
	str	x8, [sp]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_24
LBB0_13:
Lloh9:
	adrp	x8, _optind@GOTPAGE
Lloh10:
	ldr	x8, [x8, _optind@GOTPAGEOFF]
Lloh11:
	ldr	x24, [x8]
	sub	w8, w23, w24
	cmp	w8, #0
	b.le	LBB0_16
; %bb.14:
	cbnz	x22, LBB0_17
LBB0_15:
	cmn	w21, #1
	b.ne	LBB0_18
	b	LBB0_20
LBB0_16:
Lloh12:
	adrp	x8, _stderr@GOTPAGE
Lloh13:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
	bl	_usage
	cbz	x22, LBB0_15
LBB0_17:
Lloh17:
	adrp	x8, _stderr@GOTPAGE
Lloh18:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	str	x22, [sp]
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_fprintf
	mov	x0, x22
	bl	_set_gids
	cmn	w21, #1
	b.eq	LBB0_20
LBB0_18:
Lloh22:
	adrp	x22, _stderr@GOTPAGE
Lloh23:
	ldr	x22, [x22, _stderr@GOTPAGEOFF]
	ldr	w0, [x22]
	mov	x8, x21
	str	x8, [sp]
Lloh24:
	adrp	x1, l_.str.5@PAGE
Lloh25:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_fprintf
	mov	x0, x21
	bl	_setuid
	tbz	x0, #63, LBB0_20
; %bb.19:
	ldr	w19, [x22]
Lloh26:
	adrp	x8, _errno@GOTPAGE
Lloh27:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	bl	_strerror
	str	x0, [sp]
Lloh29:
	adrp	x1, l_.str.6@PAGE
Lloh30:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	b	LBB0_24
LBB0_20:
	add	x19, x19, x24, lsl #3
	mov	x0, x20
	bl	_umask
	ldr	x0, [x19]
	bl	_find_syscall
	cbz	x0, LBB0_23
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	add	x19, x19, #8
	mov	x1, x19
	bl	_call_syscall
	add	x19, x19, w0, uxtw #3
	ldr	x8, [x19]
	cbz	x8, LBB0_25
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	ldr	x0, [x19, #8]!
	bl	_find_syscall
	cbnz	x0, LBB0_21
LBB0_23:
Lloh31:
	adrp	x8, _stderr@GOTPAGE
Lloh32:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	ldr	x8, [x19]
	str	x8, [sp]
Lloh34:
	adrp	x1, l_.str.7@PAGE
Lloh35:
	add	x1, x1, l_.str.7@PAGEOFF
LBB0_24:
	bl	_fprintf
	mov	w0, #1
	bl	_exit
LBB0_25:
	mov	w0, #0
	bl	_exit
LBB0_26:
Lloh36:
	adrp	x8, _stderr@GOTPAGE
Lloh37:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	ldr	x8, [x25]
	str	x8, [sp]
Lloh39:
	adrp	x1, l_.str.2@PAGE
Lloh40:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_24
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"g:u:U:"

	.comm	_optarg,8,3                     ; @optarg
	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"invalid uid '%s' - number expected\n"

l_.str.2:                               ; @.str.2
	.asciz	"invalid umask '%s' - number expected\n"

	.comm	_optind,8,3                     ; @optind
l_.str.3:                               ; @.str.3
	.asciz	"too few arguments\n"

l_.str.4:                               ; @.str.4
	.asciz	"changing groups to %s\n"

l_.str.5:                               ; @.str.5
	.asciz	"changing uid to %d\n"

l_.str.6:                               ; @.str.6
	.asciz	"cannot change uid: %s\n"

	.comm	_errno,4,2                      ; @errno
l_.str.7:                               ; @.str.7
	.asciz	"syscall '%s' not supported\n"

.subsections_via_symbols
