	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function AddSelectedUsersToGroup
_AddSelectedUsersToGroup:               ## @AddSelectedUsersToGroup
	.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	$1064, %rsp                     ## imm = 0x428
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movl	%edi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_UNLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -1076(%rbp)               ## 4-byte Spill
	movq	_IDC_USER_ADD_MEMBERSHIP_LIST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_GetDlgItem
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_ListView_GetSelectedCount
	testq	%rax, %rax
	jle	LBB0_8
## %bb.1:
	movq	_LVNI_SELECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r12d, %edi
	movq	$-1, %rsi
	callq	_ListView_GetNextItem
	cmpq	$-1, %rax
	je	LBB0_8
## %bb.2:
	movq	%rax, %rbx
	movq	%r13, -1088(%rbp)               ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -1076(%rbp)               ## 4-byte Spill
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_LVNI_SELECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r12d, %edi
	movq	%rbx, %rsi
	callq	_ListView_GetNextItem
	movq	%rax, %rbx
	cmpq	$-1, %rax
	je	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_UNLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	%r12d, %edi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	movq	%r13, %rcx
	callq	_ListView_GetItemText
	leaq	L_.str(%rip), %rdi
	callq	__TEXT
	movl	%eax, %edi
	movq	%r13, %rsi
	callq	_DebugPrintf
	movq	%r13, -1096(%rbp)
	movl	(%r15), %esi
	xorl	%edi, %edi
	movl	$3, %edx
	leaq	-1096(%rbp), %rcx
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	$1, %r8d
	callq	_NetLocalGroupAddMembers
	movq	%rax, %r14
	movq	_NERR_Success@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_ERROR_MEMBER_IN_ALIAS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str.1(%rip), %rdi
	callq	_TEXT
	movl	%r12d, %r13d
	movq	%r15, %r12
	leaq	-1072(%rbp), %r15
	movq	%r15, %rdi
	movl	%eax, %esi
	movq	%r14, %rdx
	callq	_wsprintf
	leaq	L_.str.2(%rip), %rdi
	callq	_TEXT
	movq	_MB_OK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_MB_ICONERROR@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	xorl	%edi, %edi
	movq	%r15, %rsi
	movq	%r12, %r15
	movl	%r13d, %r12d
	movq	-1088(%rbp), %r13               ## 8-byte Reload
	movl	%eax, %edx
	callq	_MessageBox
	jmp	LBB0_7
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movl	-1076(%rbp), %eax               ## 4-byte Reload
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_UNLEN,4,2                      ## @UNLEN
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_IDC_USER_ADD_MEMBERSHIP_LIST,4,2 ## @IDC_USER_ADD_MEMBERSHIP_LIST
	.comm	_LVNI_SELECTED,4,2              ## @LVNI_SELECTED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Selected user: %s"

	.comm	_NERR_Success,8,3               ## @NERR_Success
	.comm	_ERROR_MEMBER_IN_ALIAS,8,3      ## @ERROR_MEMBER_IN_ALIAS
L_.str.1:                               ## @.str.1
	.asciz	"Error: %u"

L_.str.2:                               ## @.str.2
	.asciz	"NetLocalGroupAddMembers"

	.comm	_MB_ICONERROR,4,2               ## @MB_ICONERROR
	.comm	_MB_OK,4,2                      ## @MB_OK
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_AddSelectedUsersToGroup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function AddSelectedUsersToGroup
_AddSelectedUsersToGroup:               ; @AddSelectedUsersToGroup
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #1056
	mov	x19, sp
	mov	x20, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh3:
	adrp	x8, _UNLEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UNLEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x22, x9, x8
	mov	sp, x22
Lloh8:
	adrp	x8, _FALSE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19, #4]                   ; 4-byte Folded Spill
Lloh11:
	adrp	x8, _IDC_USER_ADD_MEMBERSHIP_LIST@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IDC_USER_ADD_MEMBERSHIP_LIST@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_GetDlgItem
	mov	x23, x0
	bl	_ListView_GetSelectedCount
	cmp	x0, #1
	b.lt	LBB0_7
; %bb.1:
Lloh14:
	adrp	x27, _LVNI_SELECTED@GOTPAGE
Lloh15:
	ldr	x27, [x27, _LVNI_SELECTED@GOTPAGEOFF]
	ldr	w2, [x27]
	mov	x0, x23
	mov	x1, #-1
	bl	_ListView_GetNextItem
	cmn	x0, #1
	b.eq	LBB0_7
; %bb.2:
	mov	x24, x0
Lloh16:
	adrp	x25, l_.str@PAGE
Lloh17:
	add	x25, x25, l_.str@PAGEOFF
Lloh18:
	adrp	x26, _NERR_Success@GOTPAGE
Lloh19:
	ldr	x26, [x26, _NERR_Success@GOTPAGEOFF]
Lloh20:
	adrp	x21, _ERROR_MEMBER_IN_ALIAS@GOTPAGE
Lloh21:
	ldr	x21, [x21, _ERROR_MEMBER_IN_ALIAS@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
Lloh22:
	adrp	x8, _TRUE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	str	w8, [x19, #4]                   ; 4-byte Folded Spill
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w2, [x27]
	mov	x0, x23
	mov	x1, x24
	bl	_ListView_GetNextItem
	mov	x24, x0
	cmn	x0, #1
	b.eq	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
Lloh25:
	adrp	x8, _UNLEN@GOTPAGE
Lloh26:
	ldr	x8, [x8, _UNLEN@GOTPAGEOFF]
Lloh27:
	ldr	w4, [x8]
	mov	x0, x23
	mov	x1, x24
	mov	w2, #0
	mov	x3, x22
	bl	_ListView_GetItemText
	mov	x0, x25
	bl	__TEXT
	mov	x1, x22
	bl	_DebugPrintf
	str	x22, [x19, #8]
	ldr	w1, [x20]
	add	x3, x19, #8
	mov	x0, #0
	mov	w2, #3
	mov	w4, #1
	bl	_NetLocalGroupAddMembers
	ldr	x8, [x26]
	ldr	x9, [x21]
	cmp	x0, x8
	ccmp	x0, x9, #4, ne
	b.eq	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x28, x0
Lloh28:
	adrp	x0, l_.str.1@PAGE
Lloh29:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_TEXT
	mov	x1, x0
	add	x0, x19, #16
	mov	x2, x28
	bl	_wsprintf
Lloh30:
	adrp	x0, l_.str.2@PAGE
Lloh31:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_TEXT
	mov	x2, x0
Lloh32:
	adrp	x8, _MB_ICONERROR@GOTPAGE
Lloh33:
	ldr	x8, [x8, _MB_ICONERROR@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
Lloh35:
	adrp	x9, _MB_OK@GOTPAGE
Lloh36:
	ldr	x9, [x9, _MB_OK@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	orr	w3, w9, w8
	add	x1, x19, #16
	mov	x0, #0
	bl	_MessageBox
	b	LBB0_4
LBB0_7:
	ldur	x8, [x29, #-96]
Lloh38:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh39:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh40:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	ldr	w0, [x19, #4]                   ; 4-byte Folded Reload
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_UNLEN,4,2                      ; @UNLEN
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_IDC_USER_ADD_MEMBERSHIP_LIST,4,2 ; @IDC_USER_ADD_MEMBERSHIP_LIST
	.comm	_LVNI_SELECTED,4,2              ; @LVNI_SELECTED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Selected user: %s"

	.comm	_NERR_Success,8,3               ; @NERR_Success
	.comm	_ERROR_MEMBER_IN_ALIAS,8,3      ; @ERROR_MEMBER_IN_ALIAS
l_.str.1:                               ; @.str.1
	.asciz	"Error: %u"

l_.str.2:                               ; @.str.2
	.asciz	"NetLocalGroupAddMembers"

	.comm	_MB_ICONERROR,4,2               ; @MB_ICONERROR
	.comm	_MB_OK,4,2                      ; @MB_OK
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_AddSelectedUsersToGroup
.subsections_via_symbols
