	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_proc_rdagent                   ## -- Begin function proc_rdagent
	.p2align	4, 0x90
_proc_rdagent:                          ## @proc_rdagent
	.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
	movq	16(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_2
LBB0_1:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	_PS_UNDEAD@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	je	LBB0_1
## %bb.3:
	movq	_PS_IDLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_1
## %bb.4:
	movq	%r14, %rdi
	callq	_rd_new
	movq	%rax, 16(%r14)
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movq	%rax, %rbx
	movl	$64, 8(%r14)
	movl	$64, %edi
	movl	$4, %esi
	callq	_calloc
	movq	%rax, 24(%r14)
	testq	%rax, %rax
	je	LBB0_1
## %bb.6:
	movq	_map_iter@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_rd_loadobj_iter
	movq	_RD_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.7:
	movq	16(%r14), %rbx
	jmp	LBB0_1
LBB0_9:
	xorl	%ebx, %ebx
	jmp	LBB0_1
	.cfi_endproc
                                        ## -- End function
	.comm	_PS_UNDEAD,8,3                  ## @PS_UNDEAD
	.comm	_PS_IDLE,8,3                    ## @PS_IDLE
	.comm	_map_iter,4,2                   ## @map_iter
	.comm	_RD_OK,8,3                      ## @RD_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_proc_rdagent                   ; -- Begin function proc_rdagent
	.p2align	2
_proc_rdagent:                          ; @proc_rdagent
	.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
	ldr	x20, [x0, #16]
	cbnz	x20, LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _PS_UNDEAD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PS_UNDEAD@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _PS_IDLE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _PS_IDLE@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_3
LBB0_2:
	mov	x20, #0
	b	LBB0_7
LBB0_3:
	mov	x0, x19
	bl	_rd_new
	mov	x20, x0
	str	x0, [x19, #16]
	cbz	x0, LBB0_7
; %bb.4:
	mov	w8, #64
	str	w8, [x19, #8]
	mov	w0, #64
	mov	w1, #4
	bl	_calloc
	str	x0, [x19, #24]
	cbz	x0, LBB0_7
; %bb.5:
Lloh6:
	adrp	x8, _map_iter@GOTPAGE
Lloh7:
	ldr	x8, [x8, _map_iter@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	bl	_rd_loadobj_iter
Lloh9:
	adrp	x8, _RD_OK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RD_OK@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.6:
	ldr	x20, [x19, #16]
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PS_UNDEAD,8,3                  ; @PS_UNDEAD
	.comm	_PS_IDLE,8,3                    ; @PS_IDLE
	.comm	_map_iter,4,2                   ; @map_iter
	.comm	_RD_OK,8,3                      ; @RD_OK
.subsections_via_symbols
