	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pam_group
_pam_group:                             ## @pam_group
	.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
	movq	%rdi, %r13
	leaq	-56(%rbp), %rsi
	xorl	%edx, %edx
	callq	_pam_get_user
	movq	_PAM_SUCCESS@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_26
## %bb.1:
	movq	-56(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_26
## %bb.2:
	callq	_getpwnam
	testq	%rax, %rax
	je	LBB0_26
## %bb.3:
	movq	%rax, %r14
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_openpam_get_option
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_PAM_IGNORE@GOTPCREL(%rip), %rax
	jmp	LBB0_27
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_openpam_get_option
	movq	%rax, %r15
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	callq	_openpam_get_option
	testq	%r15, %r15
	je	LBB0_9
## %bb.7:
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_PAM_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_openpam_log
	movq	_PAM_SERVICE_ERR@GOTPCREL(%rip), %rax
	jmp	LBB0_27
LBB0_9:
	testq	%r15, %r15
	je	LBB0_19
LBB0_10:
	leaq	L_.str.5(%rip), %rsi
	movq	%r13, %rdi
	callq	_openpam_get_option
	testq	%rax, %rax
	leaq	L_.str.6(%rip), %rdi
	cmovneq	%rax, %rdi
	callq	_getgrnam
	testq	%rax, %rax
	je	LBB0_17
## %bb.11:
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_17
## %bb.12:
	movq	8(%r14), %rcx
	cmpq	8(%rax), %rcx
	je	LBB0_18
## %bb.13:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_24
## %bb.14:
	addq	$8, %rbx
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	16(%r14), %esi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	(%rbx), %rdi
	addq	$8, %rbx
	testq	%rdi, %rdi
	jne	LBB0_15
	jmp	LBB0_24
LBB0_17:
	leaq	L_.str.8(%rip), %rsi
	movq	%r13, %rdi
	callq	_openpam_get_option
	testq	%rax, %rax
	je	LBB0_24
LBB0_18:
	leaq	L_.str.7(%rip), %rsi
	movq	%r13, %rdi
	callq	_openpam_get_option
	testq	%rax, %rax
	jne	LBB0_26
	jmp	LBB0_25
LBB0_19:
	testq	%rax, %rax
	jne	LBB0_21
## %bb.20:
	movq	_PAM_LOG_NOTICE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_openpam_log
LBB0_21:
	movq	_PAM_RUSER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	movq	%r13, %rdi
	callq	_pam_get_item
	cmpq	(%r12), %rax
	jne	LBB0_26
## %bb.22:
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_26
## %bb.23:
	callq	_getpwnam
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_10
	jmp	LBB0_26
LBB0_24:
	leaq	L_.str.7(%rip), %rsi
	movq	%r13, %rdi
	callq	_openpam_get_option
	testq	%rax, %rax
	je	LBB0_26
LBB0_25:
	movl	(%r12), %eax
	jmp	LBB0_28
LBB0_26:
	movq	_PAM_AUTH_ERR@GOTPCREL(%rip), %rax
LBB0_27:
	movl	(%rax), %eax
LBB0_28:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAM_SUCCESS,8,3                ## @PAM_SUCCESS
	.comm	_PAM_AUTH_ERR,4,2               ## @PAM_AUTH_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"root_only"

	.comm	_PAM_IGNORE,4,2                 ## @PAM_IGNORE
L_.str.1:                               ## @.str.1
	.asciz	"luser"

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

	.comm	_PAM_LOG_ERROR,4,2              ## @PAM_LOG_ERROR
L_.str.3:                               ## @.str.3
	.asciz	"(pam_group) the luser and ruser options are mutually exclusive"

	.comm	_PAM_SERVICE_ERR,4,2            ## @PAM_SERVICE_ERR
	.comm	_PAM_LOG_NOTICE,4,2             ## @PAM_LOG_NOTICE
L_.str.4:                               ## @.str.4
	.asciz	"(pam_group) neither luser nor ruser specified, assuming ruser"

	.comm	_PAM_RUSER,4,2                  ## @PAM_RUSER
L_.str.5:                               ## @.str.5
	.asciz	"group"

L_.str.6:                               ## @.str.6
	.asciz	"wheel"

L_.str.7:                               ## @.str.7
	.asciz	"deny"

L_.str.8:                               ## @.str.8
	.asciz	"fail_safe"

	.no_dead_strip	_pam_group
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pam_group
_pam_group:                             ; @pam_group
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	add	x1, sp, #8
	mov	x2, #0
	bl	_pam_get_user
	mov	x8, x0
Lloh0:
	adrp	x22, _PAM_SUCCESS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _PAM_SUCCESS@GOTPAGEOFF]
	ldr	x9, [x22]
	ldr	x0, [sp, #8]
	cmp	x8, x9
	ccmp	x0, #0, #4, eq
	b.eq	LBB0_24
; %bb.1:
	bl	_getpwnam
	cbz	x0, LBB0_24
; %bb.2:
	mov	x20, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_5
; %bb.3:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_openpam_get_option
	cbz	x0, LBB0_5
; %bb.4:
Lloh4:
	adrp	x8, _PAM_IGNORE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PAM_IGNORE@GOTPAGEOFF]
	b	LBB0_25
LBB0_5:
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_openpam_get_option
	mov	x21, x0
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_openpam_get_option
	cbz	x21, LBB0_8
; %bb.6:
	cbz	x0, LBB0_8
; %bb.7:
Lloh10:
	adrp	x8, _PAM_LOG_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PAM_LOG_ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_openpam_log
Lloh15:
	adrp	x8, _PAM_SERVICE_ERR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PAM_SERVICE_ERR@GOTPAGEOFF]
	b	LBB0_25
LBB0_8:
	cbz	x21, LBB0_18
LBB0_9:
Lloh17:
	adrp	x1, l_.str.5@PAGE
Lloh18:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_openpam_get_option
Lloh19:
	adrp	x8, l_.str.6@PAGE
Lloh20:
	add	x8, x8, l_.str.6@PAGEOFF
	cmp	x0, #0
	csel	x0, x8, x0, eq
	bl	_getgrnam
	cbz	x0, LBB0_16
; %bb.10:
	ldr	x8, [x0]
	cbz	x8, LBB0_16
; %bb.11:
	ldr	x9, [x20, #8]
	ldr	x10, [x0, #8]
	cmp	x9, x10
	b.eq	LBB0_17
; %bb.12:
	ldr	x0, [x8]
	cbz	x0, LBB0_22
; %bb.13:
	add	x21, x8, #8
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x20, #16]
	bl	_strcmp
	cbz	x0, LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x0, [x21], #8
	cbnz	x0, LBB0_14
	b	LBB0_22
LBB0_16:
Lloh21:
	adrp	x1, l_.str.8@PAGE
Lloh22:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_openpam_get_option
	cbz	x0, LBB0_22
LBB0_17:
Lloh23:
	adrp	x1, l_.str.7@PAGE
Lloh24:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_openpam_get_option
	cbnz	x0, LBB0_24
	b	LBB0_23
LBB0_18:
	cbnz	x0, LBB0_20
; %bb.19:
Lloh25:
	adrp	x8, _PAM_LOG_NOTICE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _PAM_LOG_NOTICE@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
Lloh28:
	adrp	x1, l_.str.4@PAGE
Lloh29:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_openpam_log
LBB0_20:
Lloh30:
	adrp	x8, _PAM_RUSER@GOTPAGE
Lloh31:
	ldr	x8, [x8, _PAM_RUSER@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x2, sp
	mov	x0, x19
	bl	_pam_get_item
	mov	x8, x0
	ldr	x9, [x22]
	ldr	x0, [sp]
	cmp	x8, x9
	ccmp	x0, #0, #4, eq
	b.eq	LBB0_24
; %bb.21:
	bl	_getpwnam
	mov	x20, x0
	cbnz	x0, LBB0_9
	b	LBB0_24
LBB0_22:
Lloh33:
	adrp	x1, l_.str.7@PAGE
Lloh34:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_openpam_get_option
	cbz	x0, LBB0_24
LBB0_23:
	ldr	w0, [x22]
	b	LBB0_26
LBB0_24:
Lloh35:
	adrp	x8, _PAM_AUTH_ERR@GOTPAGE
Lloh36:
	ldr	x8, [x8, _PAM_AUTH_ERR@GOTPAGEOFF]
LBB0_25:
	ldr	w0, [x8]
LBB0_26:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_PAM_SUCCESS,8,3                ; @PAM_SUCCESS
	.comm	_PAM_AUTH_ERR,4,2               ; @PAM_AUTH_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"root_only"

	.comm	_PAM_IGNORE,4,2                 ; @PAM_IGNORE
l_.str.1:                               ; @.str.1
	.asciz	"luser"

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

	.comm	_PAM_LOG_ERROR,4,2              ; @PAM_LOG_ERROR
l_.str.3:                               ; @.str.3
	.asciz	"(pam_group) the luser and ruser options are mutually exclusive"

	.comm	_PAM_SERVICE_ERR,4,2            ; @PAM_SERVICE_ERR
	.comm	_PAM_LOG_NOTICE,4,2             ; @PAM_LOG_NOTICE
l_.str.4:                               ; @.str.4
	.asciz	"(pam_group) neither luser nor ruser specified, assuming ruser"

	.comm	_PAM_RUSER,4,2                  ; @PAM_RUSER
l_.str.5:                               ; @.str.5
	.asciz	"group"

l_.str.6:                               ; @.str.6
	.asciz	"wheel"

l_.str.7:                               ; @.str.7
	.asciz	"deny"

l_.str.8:                               ; @.str.8
	.asciz	"fail_safe"

	.no_dead_strip	_pam_group
.subsections_via_symbols
