	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setlogincontext
_setlogincontext:                       ## @setlogincontext
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.1:
	movq	%rcx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	_LOGIN_SETRESOURCES@GOTPCREL(%rip), %rax
	testq	%rcx, (%rax)
	je	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	callq	_setclassresources
LBB0_3:
	movq	_LOGIN_SETUMASK@GOTPCREL(%rip), %rax
	testq	%rbx, (%rax)
	je	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	movq	%r14, %rcx
	callq	_login_getcapnum
	movq	%rax, %r14
LBB0_5:
	movq	_LOGIN_SETPATH@GOTPCREL(%rip), %rax
	testq	%rbx, (%rax)
	je	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	$1, %edx
	callq	_setclassenvironment
LBB0_7:
	movq	_LOGIN_SETENV@GOTPCREL(%rip), %rax
	testq	%rbx, (%rax)
	je	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_setclassenvironment
LBB0_9:
	movq	_LOGIN_SETCPUMASK@GOTPCREL(%rip), %rax
	testq	%rbx, (%rax)
	je	LBB0_11
## %bb.10:
	movq	%r15, %rdi
	callq	_setclasscpumask
LBB0_11:
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LOGIN_SETRESOURCES,8,3         ## @LOGIN_SETRESOURCES
	.comm	_LOGIN_SETUMASK,8,3             ## @LOGIN_SETUMASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"umask"

	.comm	_LOGIN_SETPATH,8,3              ## @LOGIN_SETPATH
	.comm	_LOGIN_SETENV,8,3               ## @LOGIN_SETENV
	.comm	_LOGIN_SETCPUMASK,8,3           ## @LOGIN_SETCPUMASK
	.no_dead_strip	_setlogincontext
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setlogincontext
_setlogincontext:                       ; @setlogincontext
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x2
	cbz	x0, LBB0_11
; %bb.1:
	mov	x21, x3
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _LOGIN_SETRESOURCES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LOGIN_SETRESOURCES@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	tst	x8, x3
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_setclassresources
LBB0_3:
Lloh3:
	adrp	x8, _LOGIN_SETUMASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LOGIN_SETUMASK@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	tst	x8, x21
	b.eq	LBB0_5
; %bb.4:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	mov	x3, x19
	bl	_login_getcapnum
	mov	x19, x0
LBB0_5:
Lloh8:
	adrp	x8, _LOGIN_SETPATH@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LOGIN_SETPATH@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	tst	x8, x21
	b.eq	LBB0_7
; %bb.6:
	mov	x0, x20
	mov	x1, x22
	mov	w2, #1
	bl	_setclassenvironment
LBB0_7:
Lloh11:
	adrp	x8, _LOGIN_SETENV@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LOGIN_SETENV@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	tst	x8, x21
	b.eq	LBB0_9
; %bb.8:
	mov	x0, x20
	mov	x1, x22
	mov	w2, #0
	bl	_setclassenvironment
LBB0_9:
Lloh14:
	adrp	x8, _LOGIN_SETCPUMASK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LOGIN_SETCPUMASK@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	tst	x8, x21
	b.eq	LBB0_11
; %bb.10:
	mov	x0, x20
	bl	_setclasscpumask
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_LOGIN_SETRESOURCES,8,3         ; @LOGIN_SETRESOURCES
	.comm	_LOGIN_SETUMASK,8,3             ; @LOGIN_SETUMASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"umask"

	.comm	_LOGIN_SETPATH,8,3              ; @LOGIN_SETPATH
	.comm	_LOGIN_SETENV,8,3               ; @LOGIN_SETENV
	.comm	_LOGIN_SETCPUMASK,8,3           ; @LOGIN_SETCPUMASK
	.no_dead_strip	_setlogincontext
.subsections_via_symbols
