	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setclasscontext                ## -- Begin function setclasscontext
	.p2align	4, 0x90
_setclasscontext:                       ## @setclasscontext
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	xorl	%esi, %esi
	callq	_login_getclassbyname
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_LOGIN_SETRESOURCES@GOTPCREL(%rip), %rax
	movq	_LOGIN_SETPRIORITY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_LOGIN_SETUMASK@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_LOGIN_SETPATH@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	andl	%r14d, %ecx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_setusercontext
	movl	%eax, %r14d
	jmp	LBB0_3
LBB0_1:
	movl	$-1, %r14d
LBB0_3:
	movq	%rbx, %rdi
	callq	_login_close
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LOGIN_SETRESOURCES,4,2         ## @LOGIN_SETRESOURCES
	.comm	_LOGIN_SETPRIORITY,4,2          ## @LOGIN_SETPRIORITY
	.comm	_LOGIN_SETUMASK,4,2             ## @LOGIN_SETUMASK
	.comm	_LOGIN_SETPATH,4,2              ## @LOGIN_SETPATH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setclasscontext                ; -- Begin function setclasscontext
	.p2align	2
_setclasscontext:                       ; @setclasscontext
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x1, #0
	bl	_login_getclassbyname
	mov	x19, x0
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _LOGIN_SETRESOURCES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LOGIN_SETRESOURCES@GOTPAGEOFF]
Lloh2:
	adrp	x9, _LOGIN_SETPRIORITY@GOTPAGE
Lloh3:
	ldr	x9, [x9, _LOGIN_SETPRIORITY@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _LOGIN_SETUMASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _LOGIN_SETUMASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _LOGIN_SETPATH@GOTPAGE
Lloh10:
	ldr	x9, [x9, _LOGIN_SETPATH@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
	and	w3, w8, w20
	mov	x0, x19
	mov	x1, #0
	mov	w2, #0
	bl	_setusercontext
	mov	x20, x0
	b	LBB0_3
LBB0_2:
	mov	w20, #-1
LBB0_3:
	mov	x0, x19
	bl	_login_close
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_LOGIN_SETRESOURCES,4,2         ; @LOGIN_SETRESOURCES
	.comm	_LOGIN_SETPRIORITY,4,2          ; @LOGIN_SETPRIORITY
	.comm	_LOGIN_SETUMASK,4,2             ; @LOGIN_SETUMASK
	.comm	_LOGIN_SETPATH,4,2              ; @LOGIN_SETPATH
.subsections_via_symbols
