	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function chownerr
_chownerr:                              ## @chownerr
	.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
	movq	%rdi, %r14
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EPERM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_18
## %bb.1:
	movq	_uid@GOTPCREL(%rip), %rax
	cmpq	$-1, (%rax)
	movq	_chownerr.euid(%rip), %rbx
	je	LBB0_4
## %bb.2:
	cmpq	$-1, %rbx
	jne	LBB0_4
## %bb.3:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_geteuid
	movq	%rax, _chownerr.euid(%rip)
	testq	%rax, %rax
	jne	LBB0_18
LBB0_4:
	movq	_gid@GOTPCREL(%rip), %r15
	cmpq	$-1, (%r15)
	je	LBB0_18
## %bb.5:
	cmpl	$-1, _chownerr.ngroups(%rip)
	jne	LBB0_18
## %bb.6:
	cmpq	$-1, %rbx
	jne	LBB0_18
## %bb.7:
	xorl	%eax, %eax
	callq	_geteuid
	movq	%rax, _chownerr.euid(%rip)
	testq	%rax, %rax
	je	LBB0_18
## %bb.8:
	movq	__SC_NGROUPS_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_sysconf
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %ecx
	movslq	%ecx, %rcx
	movq	%rcx, _chownerr.ngroups_max(%rip)
	leal	8(,%rax,8), %edi
	callq	_malloc
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_10:
	movq	_chownerr.ngroups_max(%rip), %rdi
	movq	%rbx, %rsi
	callq	_getgroups
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	jle	LBB0_11
## %bb.15:
	movq	(%r15), %rcx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	leal	-1(%rax), %edx
	cmpq	(%rbx,%rdx,8), %rcx
	je	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_16 Depth=1
	decl	%eax
	jg	LBB0_16
## %bb.14:
	movl	$-1, %eax
	jmp	LBB0_12
LBB0_11:
	decl	%eax
LBB0_12:
	movl	%eax, _chownerr.ngroups(%rip)
	movq	%rbx, %rdi
	callq	_free
	movq	_gname@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_warnx                          ## TAILCALL
LBB0_17:
	movl	%edx, _chownerr.ngroups(%rip)
	movq	%rbx, %rdi
	callq	_free
LBB0_18:
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_warn                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
	.p2align	3                               ## @chownerr.euid
_chownerr.euid:
	.quad	-1                              ## 0xffffffffffffffff

	.p2align	2                               ## @chownerr.ngroups
_chownerr.ngroups:
	.long	4294967295                      ## 0xffffffff

.zerofill __DATA,__bss,_chownerr.ngroups_max,8,3 ## @chownerr.ngroups_max
	.comm	_errno,8,3                      ## @errno
	.comm	_EPERM,8,3                      ## @EPERM
	.comm	_uid,8,3                        ## @uid
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.comm	_gid,8,3                        ## @gid
	.comm	__SC_NGROUPS_MAX,4,2            ## @_SC_NGROUPS_MAX
L_.str.1:                               ## @.str.1
	.asciz	"malloc"

L_.str.2:                               ## @.str.2
	.asciz	"you are not a member of group %s"

	.comm	_gname,4,2                      ## @gname
	.no_dead_strip	_chownerr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function chownerr
_chownerr:                              ; @chownerr
	.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, x0
Lloh0:
	adrp	x8, _errno@GOTPAGE
Lloh1:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _EPERM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EPERM@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.1:
Lloh6:
	adrp	x8, _uid@GOTPAGE
Lloh7:
	ldr	x8, [x8, _uid@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x8]
	adrp	x20, _chownerr.euid@PAGE
	ldr	x8, [x20, _chownerr.euid@PAGEOFF]
	cmn	x9, #1
	ccmn	x8, #1, #0, ne
	b.ne	LBB0_4
; %bb.2:
	bl	_geteuid
	str	x0, [x20, _chownerr.euid@PAGEOFF]
	cbnz	x0, LBB0_15
; %bb.3:
	mov	x8, #0
LBB0_4:
Lloh9:
	adrp	x22, _gid@GOTPAGE
Lloh10:
	ldr	x22, [x22, _gid@GOTPAGEOFF]
	ldr	x9, [x22]
	adrp	x21, _chownerr.ngroups@PAGE
	ldr	w10, [x21, _chownerr.ngroups@PAGEOFF]
	cmn	x9, #1
	ccmn	w10, #1, #0, ne
	ccmn	x8, #1, #0, eq
	b.ne	LBB0_15
; %bb.5:
	bl	_geteuid
	str	x0, [x20, _chownerr.euid@PAGEOFF]
	cbz	x0, LBB0_15
; %bb.6:
Lloh11:
	adrp	x8, __SC_NGROUPS_MAX@GOTPAGE
Lloh12:
	ldr	x8, [x8, __SC_NGROUPS_MAX@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_sysconf
	add	w8, w0, #1
	sxtw	x9, w8
	adrp	x23, _chownerr.ngroups_max@PAGE
	str	x9, [x23, _chownerr.ngroups_max@PAGEOFF]
	lsl	w0, w8, #3
	bl	_malloc
	mov	x20, x0
	cbnz	x0, LBB0_8
; %bb.7:
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_8:
	ldr	x0, [x23, _chownerr.ngroups_max@PAGEOFF]
	mov	x1, x20
	bl	_getgroups
	subs	w8, w0, #1
	b.lt	LBB0_13
; %bb.9:
	ldr	x8, [x22]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	sub	w0, w0, #1
	ldr	x9, [x20, w0, uxtw #3]
	cmp	x8, x9
	b.eq	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	cmp	w0, #1
	b.ge	LBB0_10
; %bb.12:
	mov	w8, #-1
LBB0_13:
	str	w8, [x21, _chownerr.ngroups@PAGEOFF]
	mov	x0, x20
	bl	_free
Lloh16:
	adrp	x8, _gname@GOTPAGE
Lloh17:
	ldr	x8, [x8, _gname@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x0, l_.str.2@PAGE
Lloh20:
	add	x0, x0, l_.str.2@PAGEOFF
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_warnx
LBB0_14:
	str	w0, [x21, _chownerr.ngroups@PAGEOFF]
	mov	x0, x20
	bl	_free
LBB0_15:
Lloh21:
	adrp	x0, l_.str@PAGE
Lloh22:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_warn
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
	.p2align	3                               ; @chownerr.euid
_chownerr.euid:
	.quad	-1                              ; 0xffffffffffffffff

	.p2align	2                               ; @chownerr.ngroups
_chownerr.ngroups:
	.long	4294967295                      ; 0xffffffff

.zerofill __DATA,__bss,_chownerr.ngroups_max,8,3 ; @chownerr.ngroups_max
	.comm	_errno,8,3                      ; @errno
	.comm	_EPERM,8,3                      ; @EPERM
	.comm	_uid,8,3                        ; @uid
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.comm	_gid,8,3                        ; @gid
	.comm	__SC_NGROUPS_MAX,4,2            ; @_SC_NGROUPS_MAX
l_.str.1:                               ; @.str.1
	.asciz	"malloc"

l_.str.2:                               ; @.str.2
	.asciz	"you are not a member of group %s"

	.comm	_gname,4,2                      ; @gname
	.no_dead_strip	_chownerr
.subsections_via_symbols
