	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setusercontext                 ## -- Begin function setusercontext
	.p2align	4, 0x90
_setusercontext:                        ## @setusercontext
	.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
	movl	%ecx, %r12d
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r13
	xorl	%r15d, %r15d
	testq	%rdi, %rdi
	jne	LBB0_3
## %bb.1:
	testq	%r14, %r14
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_login_getpwclass
	movq	%rax, %r13
	movq	%rax, %r15
LBB0_3:
	movq	_LOGIN_SETPATH@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_8
## %bb.4:
	testq	%rbx, %rbx
	jne	LBB0_6
## %bb.5:
	movq	__PATH_STDPATH@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	__PATH_DEFPATH@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	movq	_pathvars@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rcx)
LBB0_8:
	testq	%r14, %r14
	jne	LBB0_10
## %bb.9:
	movq	_LOGIN_SETGROUP@GOTPCREL(%rip), %rax
	movq	_LOGIN_SETLOGIN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_LOGIN_SETMAC@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, %r12d
LBB0_10:
	movq	_LOGIN_SETPRIORITY@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_30
## %bb.11:
	movq	_LOGIN_DEFPRI@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movl	%ecx, %edx
	callq	_login_getcapnum
	movq	_PRIO_MAX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	jle	LBB0_16
## %bb.12:
	movq	_RTP_PRIO_IDLE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	notq	%rcx
	addq	%rcx, %rax
	movq	_RTP_PRIO_MAX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	cmovgeq	%rcx, %rax
	movl	%edx, -64(%rbp)
	movq	%rax, -72(%rbp)
	jmp	LBB0_13
LBB0_16:
	movq	_PRIO_MIN@GOTPCREL(%rip), %rdx
	movq	%rax, %rcx
	subq	(%rdx), %rcx
	jge	LBB0_22
## %bb.17:
	movq	_RTP_PRIO_MAX@GOTPCREL(%rip), %rax
	addq	(%rax), %rcx
	movq	_RTP_PRIO_MIN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rcx
	cmovleq	%rax, %rcx
	movq	_RTP_PRIO_REALTIME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movq	%rcx, -72(%rbp)
LBB0_13:
	movq	_RTP_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-72(%rbp), %rdx
	xorl	%esi, %esi
	callq	_rtprio
	testq	%rax, %rax
	je	LBB0_30
## %bb.14:
	movq	_LOG_WARNING@GOTPCREL(%rip), %rax
	testq	%r14, %r14
	je	LBB0_15
## %bb.18:
	movq	(%r14), %rdx
	jmp	LBB0_19
LBB0_22:
	movq	_PRIO_PROCESS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_setpriority
	testq	%rax, %rax
	je	LBB0_30
## %bb.23:
	movq	_LOG_WARNING@GOTPCREL(%rip), %rax
	testq	%r14, %r14
	je	LBB0_25
## %bb.24:
	movq	(%r14), %rdx
	jmp	LBB0_26
LBB0_15:
	leaq	L_.str.2(%rip), %rdx
LBB0_19:
	movl	(%rax), %edi
	movq	%r13, %rax
	testq	%r13, %r13
	jne	LBB0_21
## %bb.20:
	movq	_LOGIN_DEFCLASS@GOTPCREL(%rip), %rax
LBB0_21:
	movq	(%rax), %rcx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_29
LBB0_25:
	leaq	L_.str.2(%rip), %rdx
LBB0_26:
	movl	(%rax), %edi
	movq	%r13, %rax
	testq	%r13, %r13
	jne	LBB0_28
## %bb.27:
	movq	_LOGIN_DEFCLASS@GOTPCREL(%rip), %rax
LBB0_28:
	movq	(%rax), %rcx
	leaq	L_.str.3(%rip), %rsi
LBB0_29:
	xorl	%eax, %eax
	callq	_syslog
LBB0_30:
	movq	_LOGIN_SETGROUP@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_34
## %bb.31:
	movq	8(%r14), %rdi
	callq	_setgid
	testq	%rax, %rax
	je	LBB0_33
## %bb.32:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r14), %rdx
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_45
LBB0_33:
	movq	(%r14), %rdi
	movq	8(%r14), %rsi
	callq	_initgroups
	cmpl	$-1, %eax
	je	LBB0_65
LBB0_34:
	movq	_LOGIN_SETMAC@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_42
## %bb.35:
	xorl	%edi, %edi
	callq	_mac_is_present
	cmpl	$1, %eax
	jne	LBB0_42
## %bb.36:
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	leaq	L_.str.6(%rip), %rsi
	movq	%r13, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_login_getcapstr
	testq	%rax, %rax
	je	LBB0_41
## %bb.37:
	movq	%rax, %rbx
	leaq	-44(%rbp), %rdi
	movq	%rax, %rsi
	callq	_mac_from_text
	cmpl	$-1, %eax
	je	LBB0_66
## %bb.38:
	movl	-44(%rbp), %edi
	callq	_mac_set_proc
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	-44(%rbp), %edi
	callq	_mac_free
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	cmpl	$-1, -52(%rbp)                  ## 4-byte Folded Reload
	jne	LBB0_41
## %bb.39:
	testl	%edi, %edi
	je	LBB0_41
## %bb.40:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	(%r14), %r14
	callq	_strerror
	leaq	L_.str.8(%rip), %rsi
	movl	%r15d, %edi
	movq	%rbx, %rdx
	movq	%r14, %rcx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_syslog
	jmp	LBB0_47
LBB0_41:
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
LBB0_42:
	movq	_LOGIN_SETLOGIN@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_49
## %bb.43:
	movq	(%r14), %rdi
	callq	_setlogin
	testq	%rax, %rax
	je	LBB0_49
## %bb.44:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rdx
	leaq	L_.str.9(%rip), %rsi
LBB0_45:
	xorl	%eax, %eax
	callq	_syslog
LBB0_46:
	movq	%r15, %rdi
	callq	_login_close
LBB0_47:
	movl	$-1, %ebx
LBB0_48:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_49:
	testq	%r13, %r13
	je	LBB0_54
## %bb.50:
	movq	(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_54
## %bb.51:
	movq	_LOGIN_SETLOGINCLASS@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_54
## %bb.52:
	callq	_setloginclass
	testl	%eax, %eax
	je	LBB0_54
## %bb.53:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r13), %rdx
	leaq	L_.str.10(%rip), %rsi
	xorl	%eax, %eax
	callq	_syslog
LBB0_54:
	movq	_LOGIN_SETUMASK@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_56
## %bb.55:
	movq	_LOGIN_DEFUMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_umask
	movl	%eax, %edx
	jmp	LBB0_57
LBB0_56:
	xorl	%edx, %edx
LBB0_57:
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%r12d, %ecx
	callq	_setlogincontext
	movl	%eax, %r13d
	movq	%r15, %rdi
	callq	_login_close
	movq	_LOGIN_SETUSER@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_60
## %bb.58:
	movq	%rbx, %rdi
	callq	_setuid
	testq	%rax, %rax
	je	LBB0_60
## %bb.59:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.11(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_syslog
	jmp	LBB0_47
LBB0_60:
	movq	%rbx, %r15
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_getuid
	cmpq	%r15, %rax
	jne	LBB0_63
## %bb.61:
	movq	%r14, %rdi
	callq	_login_getuserclass
	testq	%rax, %rax
	je	LBB0_63
## %bb.62:
	movq	%rax, %r15
	movq	%rax, %rdi
	movq	%r14, %rsi
	movl	%r13d, %edx
	movl	%r12d, %ecx
	callq	_setlogincontext
	movl	%eax, %r13d
	movq	%r15, %rdi
	callq	_login_close
LBB0_63:
	movq	_LOGIN_SETUMASK@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_48
## %bb.64:
	movl	%r13d, %edi
	callq	_umask
	jmp	LBB0_48
LBB0_65:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rdx
	movq	8(%r14), %rcx
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_syslog
	jmp	LBB0_46
LBB0_66:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r14), %rdx
	leaq	L_.str.7(%rip), %rsi
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_syslog
	jmp	LBB0_47
	.cfi_endproc
                                        ## -- End function
	.comm	_LOGIN_SETPATH,4,2              ## @LOGIN_SETPATH
	.comm	__PATH_DEFPATH,4,2              ## @_PATH_DEFPATH
	.comm	__PATH_STDPATH,4,2              ## @_PATH_STDPATH
	.comm	_pathvars,8,3                   ## @pathvars
	.comm	_LOGIN_SETGROUP,4,2             ## @LOGIN_SETGROUP
	.comm	_LOGIN_SETLOGIN,4,2             ## @LOGIN_SETLOGIN
	.comm	_LOGIN_SETMAC,4,2               ## @LOGIN_SETMAC
	.comm	_LOGIN_SETPRIORITY,4,2          ## @LOGIN_SETPRIORITY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"priority"

	.comm	_LOGIN_DEFPRI,4,2               ## @LOGIN_DEFPRI
	.comm	_PRIO_MAX,8,3                   ## @PRIO_MAX
	.comm	_RTP_PRIO_IDLE,4,2              ## @RTP_PRIO_IDLE
	.comm	_RTP_PRIO_MAX,8,3               ## @RTP_PRIO_MAX
	.comm	_RTP_SET,4,2                    ## @RTP_SET
	.comm	_LOG_WARNING,4,2                ## @LOG_WARNING
L_.str.1:                               ## @.str.1
	.asciz	"rtprio '%s' (%s): %m"

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

	.comm	_LOGIN_DEFCLASS,8,3             ## @LOGIN_DEFCLASS
	.comm	_PRIO_MIN,8,3                   ## @PRIO_MIN
	.comm	_RTP_PRIO_REALTIME,4,2          ## @RTP_PRIO_REALTIME
	.comm	_RTP_PRIO_MIN,8,3               ## @RTP_PRIO_MIN
	.comm	_PRIO_PROCESS,4,2               ## @PRIO_PROCESS
L_.str.3:                               ## @.str.3
	.asciz	"setpriority '%s' (%s): %m"

	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
L_.str.4:                               ## @.str.4
	.asciz	"setgid(%lu): %m"

L_.str.5:                               ## @.str.5
	.asciz	"initgroups(%s,%lu): %m"

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

L_.str.7:                               ## @.str.7
	.asciz	"mac_from_text('%s') for %s: %m"

	.comm	_errno,4,2                      ## @errno
L_.str.8:                               ## @.str.8
	.asciz	"mac_set_proc('%s') for %s: %s"

L_.str.9:                               ## @.str.9
	.asciz	"setlogin(%s): %m"

	.comm	_LOGIN_SETLOGINCLASS,4,2        ## @LOGIN_SETLOGINCLASS
L_.str.10:                              ## @.str.10
	.asciz	"setloginclass(%s): %m"

	.comm	_LOGIN_SETUMASK,4,2             ## @LOGIN_SETUMASK
	.comm	_LOGIN_DEFUMASK,4,2             ## @LOGIN_DEFUMASK
	.comm	_LOGIN_SETUSER,4,2              ## @LOGIN_SETUSER
L_.str.11:                              ## @.str.11
	.asciz	"setuid(%lu): %m"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setusercontext                 ; -- Begin function setusercontext
	.p2align	2
_setusercontext:                        ; @setusercontext
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x3
	mov	x21, x2
	mov	x20, x1
	mov	x23, x0
	mov	x22, #0
	cbnz	x0, LBB0_3
; %bb.1:
	cbz	x20, LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_login_getpwclass
	mov	x23, x0
	mov	x22, x0
LBB0_3:
Lloh0:
	adrp	x8, _LOGIN_SETPATH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LOGIN_SETPATH@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_5
; %bb.4:
Lloh3:
	adrp	x8, __PATH_DEFPATH@GOTPAGE
Lloh4:
	ldr	x8, [x8, __PATH_DEFPATH@GOTPAGEOFF]
Lloh5:
	adrp	x9, __PATH_STDPATH@GOTPAGE
Lloh6:
	ldr	x9, [x9, __PATH_STDPATH@GOTPAGEOFF]
	cmp	x21, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _pathvars@GOTPAGE
Lloh8:
	ldr	x9, [x9, _pathvars@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	str	w8, [x9]
LBB0_5:
Lloh10:
	adrp	x24, _LOGIN_SETGROUP@GOTPAGE
Lloh11:
	ldr	x24, [x24, _LOGIN_SETGROUP@GOTPAGEOFF]
	cbnz	x20, LBB0_7
; %bb.6:
	ldr	w8, [x24]
Lloh12:
	adrp	x9, _LOGIN_SETLOGIN@GOTPAGE
Lloh13:
	ldr	x9, [x9, _LOGIN_SETLOGIN@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh15:
	adrp	x9, _LOGIN_SETMAC@GOTPAGE
Lloh16:
	ldr	x9, [x9, _LOGIN_SETMAC@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w8, w9
	bic	w19, w19, w8
LBB0_7:
Lloh18:
	adrp	x8, _LOGIN_SETPRIORITY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _LOGIN_SETPRIORITY@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_23
; %bb.8:
Lloh21:
	adrp	x8, _LOGIN_DEFPRI@GOTPAGE
Lloh22:
	ldr	x8, [x8, _LOGIN_DEFPRI@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	mov	x3, x2
	bl	_login_getcapnum
	mov	x2, x0
Lloh26:
	adrp	x8, _PRIO_MAX@GOTPAGE
Lloh27:
	ldr	x8, [x8, _PRIO_MAX@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	cmp	x0, x8
	b.le	LBB0_10
; %bb.9:
Lloh29:
	adrp	x9, _RTP_PRIO_IDLE@GOTPAGE
Lloh30:
	ldr	x9, [x9, _RTP_PRIO_IDLE@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	str	w9, [sp, #40]
	mvn	x8, x8
Lloh32:
	adrp	x9, _RTP_PRIO_MAX@GOTPAGE
Lloh33:
	ldr	x9, [x9, _RTP_PRIO_MAX@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	add	x8, x2, x8
	cmp	x8, x9
	csel	x8, x8, x9, lt
	b	LBB0_12
LBB0_10:
Lloh35:
	adrp	x8, _PRIO_MIN@GOTPAGE
Lloh36:
	ldr	x8, [x8, _PRIO_MIN@GOTPAGEOFF]
Lloh37:
	ldr	x8, [x8]
	subs	x8, x2, x8
	b.ge	LBB0_15
; %bb.11:
Lloh38:
	adrp	x9, _RTP_PRIO_REALTIME@GOTPAGE
Lloh39:
	ldr	x9, [x9, _RTP_PRIO_REALTIME@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
Lloh41:
	adrp	x10, _RTP_PRIO_MAX@GOTPAGE
Lloh42:
	ldr	x10, [x10, _RTP_PRIO_MAX@GOTPAGEOFF]
	str	w9, [sp, #40]
Lloh43:
	ldr	x9, [x10]
Lloh44:
	adrp	x10, _RTP_PRIO_MIN@GOTPAGE
Lloh45:
	ldr	x10, [x10, _RTP_PRIO_MIN@GOTPAGEOFF]
Lloh46:
	ldr	x10, [x10]
	add	x8, x8, x9
	cmp	x8, x10
	csel	x8, x8, x10, gt
LBB0_12:
	str	x8, [sp, #32]
Lloh47:
	adrp	x8, _RTP_SET@GOTPAGE
Lloh48:
	ldr	x8, [x8, _RTP_SET@GOTPAGEOFF]
Lloh49:
	ldr	w0, [x8]
	add	x2, sp, #32
	mov	w1, #0
	bl	_rtprio
	cbz	x0, LBB0_23
; %bb.13:
Lloh50:
	adrp	x8, _LOG_WARNING@GOTPAGE
Lloh51:
	ldr	x8, [x8, _LOG_WARNING@GOTPAGEOFF]
Lloh52:
	ldr	w0, [x8]
	cbz	x20, LBB0_18
; %bb.14:
	ldr	x2, [x20]
	b	LBB0_19
LBB0_15:
Lloh53:
	adrp	x8, _PRIO_PROCESS@GOTPAGE
Lloh54:
	ldr	x8, [x8, _PRIO_PROCESS@GOTPAGEOFF]
Lloh55:
	ldr	w0, [x8]
	mov	w1, #0
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_setpriority
	cbz	x0, LBB0_23
; %bb.16:
Lloh56:
	adrp	x8, _LOG_WARNING@GOTPAGE
Lloh57:
	ldr	x8, [x8, _LOG_WARNING@GOTPAGEOFF]
Lloh58:
	ldr	w0, [x8]
	cbz	x20, LBB0_20
; %bb.17:
	ldr	x2, [x20]
	b	LBB0_21
LBB0_18:
Lloh59:
	adrp	x2, l_.str.2@PAGE
Lloh60:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_19:
Lloh61:
	adrp	x8, _LOGIN_DEFCLASS@GOTPAGE
Lloh62:
	ldr	x8, [x8, _LOGIN_DEFCLASS@GOTPAGEOFF]
	cmp	x23, #0
	csel	x8, x8, x23, eq
	ldr	x8, [x8]
	str	x8, [sp]
Lloh63:
	adrp	x1, l_.str.1@PAGE
Lloh64:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_22
LBB0_20:
Lloh65:
	adrp	x2, l_.str.2@PAGE
Lloh66:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_21:
Lloh67:
	adrp	x8, _LOGIN_DEFCLASS@GOTPAGE
Lloh68:
	ldr	x8, [x8, _LOGIN_DEFCLASS@GOTPAGEOFF]
	cmp	x23, #0
	csel	x8, x8, x23, eq
	ldr	x8, [x8]
	str	x8, [sp]
Lloh69:
	adrp	x1, l_.str.3@PAGE
Lloh70:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_22:
	bl	_syslog
LBB0_23:
	ldr	w8, [x24]
	tst	w8, w19
	b.eq	LBB0_27
; %bb.24:
	ldr	x0, [x20, #8]
	bl	_setgid
	cbz	x0, LBB0_26
; %bb.25:
Lloh71:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh72:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh73:
	ldr	w0, [x8]
	ldr	x2, [x20, #8]
Lloh74:
	adrp	x1, l_.str.4@PAGE
Lloh75:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_55
LBB0_26:
	ldp	x0, x1, [x20]
	bl	_initgroups
	cmn	w0, #1
	b.eq	LBB0_54
LBB0_27:
Lloh76:
	adrp	x8, _LOGIN_SETMAC@GOTPAGE
Lloh77:
	ldr	x8, [x8, _LOGIN_SETMAC@GOTPAGEOFF]
Lloh78:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_34
; %bb.28:
	mov	x0, #0
	bl	_mac_is_present
	cmp	w0, #1
	b.ne	LBB0_34
; %bb.29:
Lloh79:
	adrp	x1, l_.str.6@PAGE
Lloh80:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x23
	mov	x2, #0
	mov	x3, #0
	bl	_login_getcapstr
	cbz	x0, LBB0_34
; %bb.30:
	mov	x24, x0
	add	x0, sp, #28
	mov	x1, x24
	bl	_mac_from_text
	cmn	w0, #1
	b.eq	LBB0_56
; %bb.31:
	ldr	w0, [sp, #28]
	bl	_mac_set_proc
	mov	x26, x0
Lloh81:
	adrp	x8, _errno@GOTPAGE
Lloh82:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh83:
	ldr	w25, [x8]
	ldr	w0, [sp, #28]
	bl	_mac_free
	cmn	w26, #1
	b.ne	LBB0_34
; %bb.32:
	cbz	w25, LBB0_34
; %bb.33:
Lloh84:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh85:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh86:
	ldr	w19, [x8]
	ldr	x20, [x20]
	mov	x0, x25
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x20, x0, [sp]
Lloh87:
	adrp	x1, l_.str.8@PAGE
Lloh88:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	mov	x2, x24
	b	LBB0_57
LBB0_34:
Lloh89:
	adrp	x8, _LOGIN_SETLOGIN@GOTPAGE
Lloh90:
	ldr	x8, [x8, _LOGIN_SETLOGIN@GOTPAGEOFF]
Lloh91:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_37
; %bb.35:
	ldr	x0, [x20]
	bl	_setlogin
	cbz	x0, LBB0_37
; %bb.36:
Lloh92:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh93:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh94:
	ldr	w0, [x8]
	ldr	x2, [x20]
Lloh95:
	adrp	x1, l_.str.9@PAGE
Lloh96:
	add	x1, x1, l_.str.9@PAGEOFF
	b	LBB0_55
LBB0_37:
	cbz	x23, LBB0_42
; %bb.38:
	ldr	x0, [x23]
	cbz	x0, LBB0_42
; %bb.39:
Lloh97:
	adrp	x8, _LOGIN_SETLOGINCLASS@GOTPAGE
Lloh98:
	ldr	x8, [x8, _LOGIN_SETLOGINCLASS@GOTPAGEOFF]
Lloh99:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_42
; %bb.40:
	bl	_setloginclass
	cbz	w0, LBB0_42
; %bb.41:
Lloh100:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh101:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh102:
	ldr	w0, [x8]
	ldr	x2, [x23]
Lloh103:
	adrp	x1, l_.str.10@PAGE
Lloh104:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_syslog
LBB0_42:
Lloh105:
	adrp	x24, _LOGIN_SETUMASK@GOTPAGE
Lloh106:
	ldr	x24, [x24, _LOGIN_SETUMASK@GOTPAGEOFF]
	ldr	w8, [x24]
	tst	w8, w19
	b.eq	LBB0_44
; %bb.43:
Lloh107:
	adrp	x8, _LOGIN_DEFUMASK@GOTPAGE
Lloh108:
	ldr	x8, [x8, _LOGIN_DEFUMASK@GOTPAGEOFF]
Lloh109:
	ldr	w0, [x8]
	bl	_umask
	mov	x2, x0
	b	LBB0_45
LBB0_44:
	mov	w2, #0
LBB0_45:
	mov	x0, x23
	mov	x1, x20
	mov	x3, x19
	bl	_setlogincontext
	mov	x23, x0
	mov	x0, x22
	bl	_login_close
Lloh110:
	adrp	x8, _LOGIN_SETUSER@GOTPAGE
Lloh111:
	ldr	x8, [x8, _LOGIN_SETUSER@GOTPAGEOFF]
Lloh112:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_48
; %bb.46:
	mov	x0, x21
	bl	_setuid
	cbz	x0, LBB0_48
; %bb.47:
Lloh113:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh114:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh115:
	ldr	w0, [x8]
Lloh116:
	adrp	x1, l_.str.11@PAGE
Lloh117:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x2, x21
	b	LBB0_57
LBB0_48:
	bl	_getuid
	cmp	x0, x21
	b.ne	LBB0_51
; %bb.49:
	mov	x0, x20
	bl	_login_getuserclass
	cbz	x0, LBB0_51
; %bb.50:
	mov	x21, x0
	mov	x1, x20
	mov	x2, x23
	mov	x3, x19
	bl	_setlogincontext
	mov	x23, x0
	mov	x0, x21
	bl	_login_close
LBB0_51:
	ldr	w8, [x24]
	tst	w8, w19
	b.eq	LBB0_53
; %bb.52:
	mov	x0, x23
	bl	_umask
LBB0_53:
	mov	w0, #0
	b	LBB0_59
LBB0_54:
Lloh118:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh119:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh120:
	ldr	w0, [x8]
	ldp	x2, x8, [x20]
	str	x8, [sp]
Lloh121:
	adrp	x1, l_.str.5@PAGE
Lloh122:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_55:
	bl	_syslog
	mov	x0, x22
	bl	_login_close
	b	LBB0_58
LBB0_56:
Lloh123:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh124:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh125:
	ldr	w0, [x8]
	ldr	x2, [x20]
	str	x24, [sp]
Lloh126:
	adrp	x1, l_.str.7@PAGE
Lloh127:
	add	x1, x1, l_.str.7@PAGEOFF
LBB0_57:
	bl	_syslog
LBB0_58:
	mov	w0, #-1
LBB0_59:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpLdrGot	Lloh61, Lloh62
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpLdrGot	Lloh67, Lloh68
	.loh AdrpAdd	Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpAdd	Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpAdd	Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpAdd	Lloh95, Lloh96
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh99
	.loh AdrpAdd	Lloh103, Lloh104
	.loh AdrpLdrGotLdr	Lloh100, Lloh101, Lloh102
	.loh AdrpLdrGot	Lloh105, Lloh106
	.loh AdrpLdrGotLdr	Lloh107, Lloh108, Lloh109
	.loh AdrpLdrGotLdr	Lloh110, Lloh111, Lloh112
	.loh AdrpAdd	Lloh116, Lloh117
	.loh AdrpLdrGotLdr	Lloh113, Lloh114, Lloh115
	.loh AdrpAdd	Lloh121, Lloh122
	.loh AdrpLdrGotLdr	Lloh118, Lloh119, Lloh120
	.loh AdrpAdd	Lloh126, Lloh127
	.loh AdrpLdrGotLdr	Lloh123, Lloh124, Lloh125
	.cfi_endproc
                                        ; -- End function
	.comm	_LOGIN_SETPATH,4,2              ; @LOGIN_SETPATH
	.comm	__PATH_DEFPATH,4,2              ; @_PATH_DEFPATH
	.comm	__PATH_STDPATH,4,2              ; @_PATH_STDPATH
	.comm	_pathvars,8,3                   ; @pathvars
	.comm	_LOGIN_SETGROUP,4,2             ; @LOGIN_SETGROUP
	.comm	_LOGIN_SETLOGIN,4,2             ; @LOGIN_SETLOGIN
	.comm	_LOGIN_SETMAC,4,2               ; @LOGIN_SETMAC
	.comm	_LOGIN_SETPRIORITY,4,2          ; @LOGIN_SETPRIORITY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"priority"

	.comm	_LOGIN_DEFPRI,4,2               ; @LOGIN_DEFPRI
	.comm	_PRIO_MAX,8,3                   ; @PRIO_MAX
	.comm	_RTP_PRIO_IDLE,4,2              ; @RTP_PRIO_IDLE
	.comm	_RTP_PRIO_MAX,8,3               ; @RTP_PRIO_MAX
	.comm	_RTP_SET,4,2                    ; @RTP_SET
	.comm	_LOG_WARNING,4,2                ; @LOG_WARNING
l_.str.1:                               ; @.str.1
	.asciz	"rtprio '%s' (%s): %m"

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

	.comm	_LOGIN_DEFCLASS,8,3             ; @LOGIN_DEFCLASS
	.comm	_PRIO_MIN,8,3                   ; @PRIO_MIN
	.comm	_RTP_PRIO_REALTIME,4,2          ; @RTP_PRIO_REALTIME
	.comm	_RTP_PRIO_MIN,8,3               ; @RTP_PRIO_MIN
	.comm	_PRIO_PROCESS,4,2               ; @PRIO_PROCESS
l_.str.3:                               ; @.str.3
	.asciz	"setpriority '%s' (%s): %m"

	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
l_.str.4:                               ; @.str.4
	.asciz	"setgid(%lu): %m"

l_.str.5:                               ; @.str.5
	.asciz	"initgroups(%s,%lu): %m"

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

l_.str.7:                               ; @.str.7
	.asciz	"mac_from_text('%s') for %s: %m"

	.comm	_errno,4,2                      ; @errno
l_.str.8:                               ; @.str.8
	.asciz	"mac_set_proc('%s') for %s: %s"

l_.str.9:                               ; @.str.9
	.asciz	"setlogin(%s): %m"

	.comm	_LOGIN_SETLOGINCLASS,4,2        ; @LOGIN_SETLOGINCLASS
l_.str.10:                              ; @.str.10
	.asciz	"setloginclass(%s): %m"

	.comm	_LOGIN_SETUMASK,4,2             ; @LOGIN_SETUMASK
	.comm	_LOGIN_DEFUMASK,4,2             ; @LOGIN_DEFUMASK
	.comm	_LOGIN_SETUSER,4,2              ; @LOGIN_SETUSER
l_.str.11:                              ; @.str.11
	.asciz	"setuid(%lu): %m"

.subsections_via_symbols
