	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rpc_target_get_state           ## -- Begin function rpc_target_get_state
	.p2align	4, 0x90
_rpc_target_get_state:                  ## @rpc_target_get_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	8(%rdi), %rax
	movl	$-1, %r13d
	testq	%rax, %rax
	je	LBB0_14
## %bb.3:
	movq	(%rax), %rbx
	cmpq	%rax, %rbx
	je	LBB0_14
## %bb.4:
	movl	$-1, %r13d
	movl	$1, %r12d
	jmp	LBB0_5
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%rbx), %rbx
	cmpq	8(%r15), %rbx
	je	LBB0_14
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_server_check_ready
	movq	_cr_ok@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	testq	%r14, %r14
	je	LBB0_25
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_RPCS_DATA
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_matches_pid
	testl	%eax, %eax
	jle	LBB0_13
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	_cr_stopped@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$9999, (%rbx)                   ## imm = 0x270F
	jg	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	testq	%r14, %r14
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_RPCS_DATA
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_matches_pid
	testl	%eax, %eax
	jg	LBB0_12
	jmp	LBB0_13
LBB0_14:
	movq	(%r15), %rbx
	cmpq	%r15, %rbx
	jne	LBB0_16
## %bb.15:
	movl	%r13d, %r12d
	jmp	LBB0_25
LBB0_23:                                ##   in Loop: Header=BB0_16 Depth=1
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	8(%rbx), %rbx
	movl	%r13d, %r12d
	cmpq	%r15, %rbx
	je	LBB0_25
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_server_check_ready
	movq	_cr_ok@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	$1, %r12d
	testq	%r14, %r14
	je	LBB0_25
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	%rbx, %rdi
	callq	_RPCS_DATA
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_matches_pid
	testl	%eax, %eax
	jle	LBB0_24
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	_cr_stopped@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_24
## %bb.20:                              ##   in Loop: Header=BB0_16 Depth=1
	cmpl	$9999, (%rbx)                   ## imm = 0x270F
	jg	LBB0_24
## %bb.21:                              ##   in Loop: Header=BB0_16 Depth=1
	testq	%r14, %r14
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	%rbx, %rdi
	callq	_RPCS_DATA
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_matches_pid
	testl	%eax, %eax
	jg	LBB0_23
	jmp	LBB0_24
LBB0_1:
	xorl	%r12d, %r12d
LBB0_25:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cr_ok,4,2                      ## @cr_ok
	.comm	_cr_stopped,4,2                 ## @cr_stopped
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rpc_target_get_state           ; -- Begin function rpc_target_get_state
	.p2align	2
_rpc_target_get_state:                  ; @rpc_target_get_state
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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 w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	cbz	x0, LBB0_13
; %bb.1:
	mov	x20, x1
	mov	x21, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_14
; %bb.2:
	ldr	x22, [x8]
	mov	w19, #-1
	cmp	x22, x8
	b.eq	LBB0_15
; %bb.3:
Lloh0:
	adrp	x23, _cr_ok@GOTPAGE
Lloh1:
	ldr	x23, [x23, _cr_ok@GOTPAGEOFF]
Lloh2:
	adrp	x24, _cr_stopped@GOTPAGE
Lloh3:
	ldr	x24, [x24, _cr_stopped@GOTPAGEOFF]
	mov	w25, #9999
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	w19, #0
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x22, [x22, #8]
	ldr	x8, [x21, #8]
	cmp	x22, x8
	b.eq	LBB0_15
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_server_check_ready
	ldr	w8, [x23]
	cmp	w0, w8
	b.ne	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cbz	x20, LBB0_26
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	bl	_RPCS_DATA
	mov	x1, x20
	bl	_matches_pid
	cmp	w0, #0
	b.le	LBB0_5
	b	LBB0_26
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x24]
	cmp	w0, w8
	b.ne	LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x22]
	cmp	w8, w25
	b.gt	LBB0_5
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	cbz	x20, LBB0_4
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	bl	_RPCS_DATA
	mov	x1, x20
	bl	_matches_pid
	cmp	w0, #1
	b.ge	LBB0_4
	b	LBB0_5
LBB0_13:
	mov	w19, #0
	b	LBB0_27
LBB0_14:
	mov	w19, #-1
LBB0_15:
	ldr	x22, [x21]
	cmp	x22, x21
	b.eq	LBB0_27
; %bb.16:
Lloh4:
	adrp	x23, _cr_ok@GOTPAGE
Lloh5:
	ldr	x23, [x23, _cr_ok@GOTPAGEOFF]
Lloh6:
	adrp	x24, _cr_stopped@GOTPAGE
Lloh7:
	ldr	x24, [x24, _cr_stopped@GOTPAGEOFF]
	mov	w25, #9999
	b	LBB0_19
LBB0_17:                                ;   in Loop: Header=BB0_19 Depth=1
	mov	w19, #0
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	ldr	x22, [x22, #8]
	cmp	x22, x21
	b.eq	LBB0_27
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_server_check_ready
	ldr	w8, [x23]
	cmp	w0, w8
	b.ne	LBB0_22
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	cbz	x20, LBB0_26
; %bb.21:                               ;   in Loop: Header=BB0_19 Depth=1
	mov	x0, x22
	bl	_RPCS_DATA
	mov	x1, x20
	bl	_matches_pid
	cmp	w0, #0
	b.le	LBB0_18
	b	LBB0_26
LBB0_22:                                ;   in Loop: Header=BB0_19 Depth=1
	ldr	w8, [x24]
	cmp	w0, w8
	b.ne	LBB0_18
; %bb.23:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	w8, [x22]
	cmp	w8, w25
	b.gt	LBB0_18
; %bb.24:                               ;   in Loop: Header=BB0_19 Depth=1
	cbz	x20, LBB0_17
; %bb.25:                               ;   in Loop: Header=BB0_19 Depth=1
	mov	x0, x22
	bl	_RPCS_DATA
	mov	x1, x20
	bl	_matches_pid
	cmp	w0, #1
	b.ge	LBB0_17
	b	LBB0_18
LBB0_26:
	mov	w19, #1
LBB0_27:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_cr_ok,4,2                      ; @cr_ok
	.comm	_cr_stopped,4,2                 ; @cr_stopped
.subsections_via_symbols
