	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function login_set_nsg
_login_set_nsg:                         ## @login_set_nsg
	.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, %ebx
	movq	_BHSLR_STAGE_SECURITY_NEGOTIATION@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	sete	%al
	movq	_BHSLR_STAGE_OPERATIONAL_NEGOTIATION@GOTPCREL(%rip), %rcx
	cmpl	%esi, (%rcx)
	sete	%cl
	orb	%al, %cl
	movq	_BHSLR_STAGE_FULL_FEATURE_PHASE@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	movq	%rdi, %r14
	sete	%al
	orb	%cl, %al
	movzbl	%al, %edi
	callq	_assert
	movq	(%r14), %rax
	movl	$252, %ecx
	andl	(%rax), %ecx
	orl	%ebx, %ecx
	movl	%ecx, (%rax)
	movq	_BHSLR_FLAGS_TRANSIT@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, (%rax)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BHSLR_STAGE_SECURITY_NEGOTIATION,4,2 ## @BHSLR_STAGE_SECURITY_NEGOTIATION
	.comm	_BHSLR_STAGE_OPERATIONAL_NEGOTIATION,4,2 ## @BHSLR_STAGE_OPERATIONAL_NEGOTIATION
	.comm	_BHSLR_STAGE_FULL_FEATURE_PHASE,4,2 ## @BHSLR_STAGE_FULL_FEATURE_PHASE
	.comm	_BHSLR_FLAGS_TRANSIT,4,2        ## @BHSLR_FLAGS_TRANSIT
	.no_dead_strip	_login_set_nsg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function login_set_nsg
_login_set_nsg:                         ; @login_set_nsg
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _BHSLR_STAGE_SECURITY_NEGOTIATION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BHSLR_STAGE_SECURITY_NEGOTIATION@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
Lloh3:
	adrp	x8, _BHSLR_STAGE_OPERATIONAL_NEGOTIATION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BHSLR_STAGE_OPERATIONAL_NEGOTIATION@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ccmp	w8, w1, #4, ne
Lloh6:
	adrp	x8, _BHSLR_STAGE_FULL_FEATURE_PHASE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BHSLR_STAGE_FULL_FEATURE_PHASE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ccmp	w8, w1, #4, ne
	cset	w0, eq
	bl	_assert
	ldr	x8, [x20]
	ldr	w9, [x8]
	and	w9, w9, #0xfc
	orr	w9, w9, w19
	str	w9, [x8]
Lloh9:
	adrp	x10, _BHSLR_FLAGS_TRANSIT@GOTPAGE
Lloh10:
	ldr	x10, [x10, _BHSLR_FLAGS_TRANSIT@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w9, w9, w10
	str	w9, [x8]
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BHSLR_STAGE_SECURITY_NEGOTIATION,4,2 ; @BHSLR_STAGE_SECURITY_NEGOTIATION
	.comm	_BHSLR_STAGE_OPERATIONAL_NEGOTIATION,4,2 ; @BHSLR_STAGE_OPERATIONAL_NEGOTIATION
	.comm	_BHSLR_STAGE_FULL_FEATURE_PHASE,4,2 ; @BHSLR_STAGE_FULL_FEATURE_PHASE
	.comm	_BHSLR_FLAGS_TRANSIT,4,2        ; @BHSLR_FLAGS_TRANSIT
	.no_dead_strip	_login_set_nsg
.subsections_via_symbols
