	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function id_print
_id_print:                              ## @id_print
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movl	%esi, %r12d
	movq	%rdi, %r14
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movl	(%r14), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	4(%r14), %r15d
	jmp	LBB0_3
LBB0_2:
	xorl	%eax, %eax
	callq	_getuid
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	callq	_getgid
	movl	%eax, %r15d
LBB0_3:
	movq	__SC_NGROUPS_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_sysconf
	movl	%eax, %ebx
	leal	4(,%rbx,4), %edi
	callq	_malloc
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_5:
	incl	%ebx
	testq	%r14, %r14
	je	LBB0_8
## %bb.6:
	testl	%r12d, %r12d
	je	LBB0_8
## %bb.7:
	movl	%ebx, -44(%rbp)
	movq	8(%r14), %rdi
	leaq	-44(%rbp), %rcx
	movl	%r15d, %esi
	movq	%r13, %rdx
	callq	_getgrouplist
	testq	%r14, %r14
	jne	LBB0_10
LBB0_11:
	xorl	%eax, %eax
	callq	_getuid
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_printf
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_12
LBB0_8:
	movslq	%ebx, %rdi
	movq	%r13, %rsi
	callq	_getgroups
	movl	%eax, -44(%rbp)
	testq	%r14, %r14
	je	LBB0_11
LBB0_10:
	movq	8(%r14), %rdx
	leaq	L_.str.1(%rip), %rdi
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_printf
LBB0_12:
	leaq	L_.str.3(%rip), %rdi
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_printf
	movl	%r15d, %edi
	callq	_getgrgid
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	(%rax), %rsi
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_14:
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_18
## %bb.15:
	xorl	%eax, %eax
	callq	_geteuid
	cmpl	%r14d, %eax
	je	LBB0_18
## %bb.16:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_printf
	movl	%ebx, %edi
	callq	_getpwuid
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movq	8(%rax), %rsi
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_18:
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_22
## %bb.19:
	xorl	%eax, %eax
	callq	_getegid
	cmpl	%r15d, %eax
	je	LBB0_22
## %bb.20:
	movl	%eax, %ebx
	leaq	L_.str.6(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_printf
	movl	%ebx, %edi
	callq	_getgrgid
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:
	movq	(%rax), %rsi
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_22:
	cmpl	$0, -44(%rbp)
	jle	LBB0_30
## %bb.23:
	movl	$-1, %eax
	leaq	L_.str.7(%rip), %rdi
	leaq	L_.str.8(%rip), %r15
	leaq	L_.str.4(%rip), %r14
	xorl	%ebx, %ebx
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_24 Depth=1
	movl	%eax, %r12d
LBB0_29:                                ##   in Loop: Header=BB0_24 Depth=1
	incq	%rbx
	movslq	-44(%rbp), %rcx
	movl	%r12d, %eax
	cmpq	%rcx, %rbx
	jge	LBB0_30
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13,%rbx,4), %r12d
	cmpl	%r12d, %eax
	je	LBB0_25
## %bb.26:                              ##   in Loop: Header=BB0_24 Depth=1
	movl	%r12d, %esi
	xorl	%eax, %eax
	callq	_printf
	movl	%r12d, %edi
	callq	_getgrgid
	testq	%rax, %rax
	je	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	(%rax), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_28:                                ##   in Loop: Header=BB0_24 Depth=1
	movq	%r15, %rdi
	jmp	LBB0_29
LBB0_30:
	movl	$10, %edi
	callq	_putchar
	movq	%r13, %rdi
	callq	_free
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__SC_NGROUPS_MAX,4,2            ## @_SC_NGROUPS_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"malloc"

L_.str.1:                               ## @.str.1
	.asciz	"uid=%u(%s)"

L_.str.2:                               ## @.str.2
	.asciz	"uid=%u"

L_.str.3:                               ## @.str.3
	.asciz	" gid=%u"

L_.str.4:                               ## @.str.4
	.asciz	"(%s)"

L_.str.5:                               ## @.str.5
	.asciz	" euid=%u"

L_.str.6:                               ## @.str.6
	.asciz	" egid=%u"

L_.str.7:                               ## @.str.7
	.asciz	" groups=%u"

L_.str.8:                               ## @.str.8
	.asciz	",%u"

	.no_dead_strip	_id_print
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function id_print
_id_print:                              ; @id_print
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x3
	mov	x22, x2
	mov	x25, x1
	mov	x24, x0
	cbz	x0, LBB0_2
; %bb.1:
	ldp	w23, w21, [x24]
	b	LBB0_3
LBB0_2:
	bl	_getuid
	mov	x23, x0
	bl	_getgid
	mov	x21, x0
LBB0_3:
Lloh0:
	adrp	x8, __SC_NGROUPS_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, __SC_NGROUPS_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_sysconf
	add	w26, w0, #1
	lsl	w0, w26, #2
	bl	_malloc
	mov	x19, x0
	cbz	x0, LBB0_5
; %bb.4:
	cbnz	x24, LBB0_6
	b	LBB0_9
LBB0_5:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
	cbz	x24, LBB0_9
LBB0_6:
	cbz	w25, LBB0_9
; %bb.7:
	str	w26, [sp, #28]
	ldr	x0, [x24, #8]
	add	x3, sp, #28
	mov	x1, x21
	mov	x2, x19
	bl	_getgrouplist
	cbnz	x24, LBB0_10
LBB0_8:
	bl	_getuid
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh5:
	adrp	x0, l_.str.2@PAGE
Lloh6:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_9:
	sxtw	x0, w26
	mov	x1, x19
	bl	_getgroups
	str	w0, [sp, #28]
	cbz	x24, LBB0_8
LBB0_10:
	ldr	x8, [x24, #8]
	stp	x23, x8, [sp]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_11:
	bl	_printf
	str	x21, [sp]
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
	mov	x0, x21
	bl	_getgrgid
	cbz	x0, LBB0_13
; %bb.12:
	ldr	x8, [x0]
	str	x8, [sp]
Lloh11:
	adrp	x0, l_.str.4@PAGE
Lloh12:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf
LBB0_13:
	cbz	w22, LBB0_17
; %bb.14:
	bl	_geteuid
	cmp	w0, w23
	b.eq	LBB0_17
; %bb.15:
	mov	x22, x0
	str	x22, [sp]
Lloh13:
	adrp	x0, l_.str.5@PAGE
Lloh14:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_printf
	mov	x0, x22
	bl	_getpwuid
	cbz	x0, LBB0_17
; %bb.16:
	ldr	x8, [x0, #8]
	str	x8, [sp]
Lloh15:
	adrp	x0, l_.str.4@PAGE
Lloh16:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf
LBB0_17:
	cbz	w20, LBB0_21
; %bb.18:
	bl	_getegid
	cmp	w0, w21
	b.eq	LBB0_21
; %bb.19:
	mov	x20, x0
	str	x20, [sp]
Lloh17:
	adrp	x0, l_.str.6@PAGE
Lloh18:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_printf
	mov	x0, x20
	bl	_getgrgid
	cbz	x0, LBB0_21
; %bb.20:
	ldr	x8, [x0]
	str	x8, [sp]
Lloh19:
	adrp	x0, l_.str.4@PAGE
Lloh20:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf
LBB0_21:
	ldr	w8, [sp, #28]
	cmp	w8, #1
	b.lt	LBB0_29
; %bb.22:
	mov	x22, #0
	mov	w8, #-1
Lloh21:
	adrp	x0, l_.str.7@PAGE
Lloh22:
	add	x0, x0, l_.str.7@PAGEOFF
Lloh23:
	adrp	x23, l_.str.8@PAGE
Lloh24:
	add	x23, x23, l_.str.8@PAGEOFF
Lloh25:
	adrp	x20, l_.str.4@PAGE
Lloh26:
	add	x20, x20, l_.str.4@PAGEOFF
	b	LBB0_25
LBB0_23:                                ;   in Loop: Header=BB0_25 Depth=1
	mov	x21, x8
LBB0_24:                                ;   in Loop: Header=BB0_25 Depth=1
	add	x22, x22, #1
	ldrsw	x9, [sp, #28]
	mov	x8, x21
	cmp	x22, x9
	b.ge	LBB0_29
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	ldr	w21, [x19, x22, lsl #2]
	cmp	w8, w21
	b.eq	LBB0_23
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=1
	str	x21, [sp]
	bl	_printf
	mov	x0, x21
	bl	_getgrgid
	cbz	x0, LBB0_28
; %bb.27:                               ;   in Loop: Header=BB0_25 Depth=1
	ldr	x8, [x0]
	str	x8, [sp]
	mov	x0, x20
	bl	_printf
LBB0_28:                                ;   in Loop: Header=BB0_25 Depth=1
	mov	x0, x23
	b	LBB0_24
LBB0_29:
	mov	w0, #10
	bl	_putchar
	mov	x0, x19
	bl	_free
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	__SC_NGROUPS_MAX,4,2            ; @_SC_NGROUPS_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"malloc"

l_.str.1:                               ; @.str.1
	.asciz	"uid=%u(%s)"

l_.str.2:                               ; @.str.2
	.asciz	"uid=%u"

l_.str.3:                               ; @.str.3
	.asciz	" gid=%u"

l_.str.4:                               ; @.str.4
	.asciz	"(%s)"

l_.str.5:                               ; @.str.5
	.asciz	" euid=%u"

l_.str.6:                               ; @.str.6
	.asciz	" egid=%u"

l_.str.7:                               ; @.str.7
	.asciz	" groups=%u"

l_.str.8:                               ; @.str.8
	.asciz	",%u"

	.no_dead_strip	_id_print
.subsections_via_symbols
