	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_rpc_start_lease             ## -- Begin function do_rpc_start_lease
	.p2align	4, 0x90
_do_rpc_start_lease:                    ## @do_rpc_start_lease
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_rpc_main_target@GOTPCREL(%rip), %r12
	movl	$-1, %r14d
	cmpl	$-1, (%r12)
	je	LBB0_7
## %bb.1:
	movq	_lease_state@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_lst_off@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.2:
	movq	%rdi, %rbx
	movsd	%xmm0, -40(%rbp)                ## 8-byte Spill
	movq	%rdi, %r15
	shrq	$32, %r15
	movq	_rpc_client_ct@GOTPCREL(%rip), %rdx
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_get_lease_target_by_pid
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.3:
	cmpl	(%r12), %eax
	movsd	-40(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	jne	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rsi
	xorl	%edi, %edi
	callq	_vkprintf
	jmp	LBB0_7
LBB0_5:
	movq	_rpc_stopped@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	jne	LBB0_7
## %bb.6:
	movq	_rpc_lease_target@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_rpc_lease_timeout@GOTPCREL(%rip), %rax
	movsd	%xmm0, (%rax)
	movq	_lease_pid@GOTPCREL(%rip), %rax
	movl	%ebx, (%rax)
	movl	%r15d, 4(%rax)
	movq	_lease_stats_cnt@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_precise_now@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_lease_stats_start_time@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_lease_stats_time@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_lst_start@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_lease_change_state
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_run_rpc_lease
LBB0_7:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_rpc_main_target,4,2            ## @rpc_main_target
	.comm	_lease_state,8,3                ## @lease_state
	.comm	_lst_off,8,3                    ## @lst_off
	.comm	_rpc_client_ct,4,2              ## @rpc_client_ct
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't lease to itself\n"

	.comm	_rpc_stopped,8,3                ## @rpc_stopped
	.comm	_rpc_lease_target,4,2           ## @rpc_lease_target
	.comm	_rpc_lease_timeout,8,3          ## @rpc_lease_timeout
	.comm	_lease_pid,8,2                  ## @lease_pid
	.comm	_lease_stats_cnt,8,3            ## @lease_stats_cnt
	.comm	_precise_now,4,2                ## @precise_now
	.comm	_lease_stats_start_time,4,2     ## @lease_stats_start_time
	.comm	_lease_stats_time,8,3           ## @lease_stats_time
	.comm	_lst_start,4,2                  ## @lst_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_rpc_start_lease             ; -- Begin function do_rpc_start_lease
	.p2align	2
_do_rpc_start_lease:                    ; @do_rpc_start_lease
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-64]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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 b8, -56
	.cfi_offset b9, -64
Lloh0:
	adrp	x21, _rpc_main_target@GOTPAGE
Lloh1:
	ldr	x21, [x21, _rpc_main_target@GOTPAGEOFF]
	ldr	w8, [x21]
	cmn	w8, #1
	b.eq	LBB0_6
; %bb.1:
Lloh2:
	adrp	x8, _lease_state@GOTPAGE
Lloh3:
	ldr	x8, [x8, _lease_state@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _lst_off@GOTPAGE
Lloh6:
	ldr	x9, [x9, _lst_off@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.2:
	fmov	d8, d0
	mov	x19, x0
	lsr	x20, x0, #32
Lloh8:
	adrp	x2, _rpc_client_ct@GOTPAGE
Lloh9:
	ldr	x2, [x2, _rpc_client_ct@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x19
	bl	_get_lease_target_by_pid
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.3:
	ldr	w8, [x21]
	cmp	w0, w8
	b.ne	LBB0_5
; %bb.4:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #0
	bl	_vkprintf
	b	LBB0_6
LBB0_5:
Lloh12:
	adrp	x8, _rpc_stopped@GOTPAGE
Lloh13:
	ldr	x8, [x8, _rpc_stopped@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cbz	x8, LBB0_8
LBB0_6:
	mov	w0, #-1
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #64               ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh15:
	adrp	x8, _rpc_lease_target@GOTPAGE
Lloh16:
	ldr	x8, [x8, _rpc_lease_target@GOTPAGEOFF]
Lloh17:
	str	w0, [x8]
Lloh18:
	adrp	x8, _rpc_lease_timeout@GOTPAGE
Lloh19:
	ldr	x8, [x8, _rpc_lease_timeout@GOTPAGEOFF]
Lloh20:
	adrp	x9, _lease_pid@GOTPAGE
Lloh21:
	ldr	x9, [x9, _lease_pid@GOTPAGEOFF]
Lloh22:
	str	d8, [x8]
	stp	w19, w20, [x9]
Lloh23:
	adrp	x8, _lease_stats_cnt@GOTPAGE
Lloh24:
	ldr	x8, [x8, _lease_stats_cnt@GOTPAGEOFF]
Lloh25:
	str	xzr, [x8]
Lloh26:
	adrp	x8, _precise_now@GOTPAGE
Lloh27:
	ldr	x8, [x8, _precise_now@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
Lloh29:
	adrp	x9, _lease_stats_start_time@GOTPAGE
Lloh30:
	ldr	x9, [x9, _lease_stats_start_time@GOTPAGEOFF]
Lloh31:
	str	w8, [x9]
Lloh32:
	adrp	x8, _lease_stats_time@GOTPAGE
Lloh33:
	ldr	x8, [x8, _lease_stats_time@GOTPAGEOFF]
Lloh34:
	str	xzr, [x8]
Lloh35:
	adrp	x8, _lst_start@GOTPAGE
Lloh36:
	ldr	x8, [x8, _lst_start@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	bl	_lease_change_state
	bl	_run_rpc_lease
	mov	w0, #0
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotStr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotStr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotStr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh22
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_rpc_main_target,4,2            ; @rpc_main_target
	.comm	_lease_state,8,3                ; @lease_state
	.comm	_lst_off,8,3                    ; @lst_off
	.comm	_rpc_client_ct,4,2              ; @rpc_client_ct
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't lease to itself\n"

	.comm	_rpc_stopped,8,3                ; @rpc_stopped
	.comm	_rpc_lease_target,4,2           ; @rpc_lease_target
	.comm	_rpc_lease_timeout,8,3          ; @rpc_lease_timeout
	.comm	_lease_pid,8,2                  ; @lease_pid
	.comm	_lease_stats_cnt,8,3            ; @lease_stats_cnt
	.comm	_precise_now,4,2                ; @precise_now
	.comm	_lease_stats_start_time,4,2     ; @lease_stats_start_time
	.comm	_lease_stats_time,8,3           ; @lease_stats_time
	.comm	_lst_start,4,2                  ; @lst_start
.subsections_via_symbols
