	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_state
_set_state:                             ## @set_state
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_state@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	cmpl	%edi, %eax
	je	LBB0_14
## %bb.1:
	movl	%edi, %ebx
	jle	LBB0_5
## %bb.2:
	cmpl	$129, %ebx
	jg	LBB0_13
## %bb.3:
	cmpl	$130, %eax
	jl	LBB0_13
## %bb.4:
	movq	_ts@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_t_serverclose
	movq	$0, (%r15)
	jmp	LBB0_13
LBB0_5:
	cmpl	$130, %eax
	je	LBB0_10
## %bb.6:
	cmpl	$129, %eax
	je	LBB0_11
## %bb.7:
	cmpl	$128, %eax
	jne	LBB0_13
## %bb.8:
	xorl	%eax, %eax
	callq	_prepare_password
	testl	%eax, %eax
	je	LBB0_14
## %bb.9:
	movq	_tce@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_tpe@GOTPCREL(%rip), %rdi
	callq	_t_serveropenraw
	movq	_ts@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	jne	LBB0_13
	jmp	LBB0_14
LBB0_10:
	movq	_ts@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_t_servergenexp
	movq	_B@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_13
LBB0_11:
	movq	_ts@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_A@GOTPCREL(%rip), %rsi
	callq	_t_servergetkey
	movq	_skey@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	testl	%eax, %eax
	je	LBB0_14
## %bb.12:
	movl	%eax, %edi
	callq	_ead_set_key
LBB0_13:
	movl	%ebx, (%r14)
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_state,4,2                      ## @state
	.comm	_ts,8,3                         ## @ts
	.comm	_tpe,4,2                        ## @tpe
	.comm	_tce,4,2                        ## @tce
	.comm	_B,4,2                          ## @B
	.comm	_A,4,2                          ## @A
	.comm	_skey,4,2                       ## @skey
	.no_dead_strip	_set_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_state
_set_state:                             ; @set_state
	.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
Lloh0:
	adrp	x20, _state@GOTPAGE
Lloh1:
	ldr	x20, [x20, _state@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, w0
	b.eq	LBB0_14
; %bb.1:
	mov	x19, x0
	b.le	LBB0_5
; %bb.2:
	cmp	w19, #129
	b.gt	LBB0_13
; %bb.3:
	cmp	w8, #130
	b.lt	LBB0_13
; %bb.4:
Lloh2:
	adrp	x21, _ts@GOTPAGE
Lloh3:
	ldr	x21, [x21, _ts@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_t_serverclose
	str	xzr, [x21]
	b	LBB0_13
LBB0_5:
	cmp	w8, #130
	b.eq	LBB0_10
; %bb.6:
	cmp	w8, #129
	b.eq	LBB0_11
; %bb.7:
	cmp	w8, #128
	b.ne	LBB0_13
; %bb.8:
	bl	_prepare_password
	cbz	w0, LBB0_14
; %bb.9:
Lloh4:
	adrp	x8, _tce@GOTPAGE
Lloh5:
	ldr	x8, [x8, _tce@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x0, _tpe@GOTPAGE
Lloh8:
	ldr	x0, [x0, _tpe@GOTPAGEOFF]
	bl	_t_serveropenraw
Lloh9:
	adrp	x8, _ts@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ts@GOTPAGEOFF]
Lloh11:
	str	x0, [x8]
	cbnz	x0, LBB0_13
	b	LBB0_14
LBB0_10:
Lloh12:
	adrp	x8, _ts@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ts@GOTPAGEOFF]
Lloh14:
	ldr	x0, [x8]
	bl	_t_servergenexp
Lloh15:
	adrp	x8, _B@GOTPAGE
Lloh16:
	ldr	x8, [x8, _B@GOTPAGEOFF]
Lloh17:
	str	w0, [x8]
	b	LBB0_13
LBB0_11:
Lloh18:
	adrp	x8, _ts@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ts@GOTPAGEOFF]
Lloh20:
	ldr	x0, [x8]
Lloh21:
	adrp	x1, _A@GOTPAGE
Lloh22:
	ldr	x1, [x1, _A@GOTPAGEOFF]
	bl	_t_servergetkey
Lloh23:
	adrp	x8, _skey@GOTPAGE
Lloh24:
	ldr	x8, [x8, _skey@GOTPAGEOFF]
Lloh25:
	str	w0, [x8]
	cbz	w0, LBB0_14
; %bb.12:
	bl	_ead_set_key
LBB0_13:
	str	w19, [x20]
LBB0_14:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_state,4,2                      ; @state
	.comm	_ts,8,3                         ; @ts
	.comm	_tpe,4,2                        ; @tpe
	.comm	_tce,4,2                        ; @tce
	.comm	_B,4,2                          ; @B
	.comm	_A,4,2                          ; @A
	.comm	_skey,4,2                       ; @skey
	.no_dead_strip	_set_state
.subsections_via_symbols
