	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dt_proc_rdevent
_dt_proc_rdevent:                       ## @dt_proc_rdevent
	.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	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r14
	movl	16(%rsi), %edi
	leaq	-40(%rbp), %rsi
	callq	_rd_event_getmsg
	movq	_RD_OK@GOTPCREL(%rip), %rcx
	movl	8(%r12), %ebx
	cmpl	(%rcx), %eax
	jne	LBB0_1
## %bb.2:
	movl	-40(%rbp), %ecx
	movl	-36(%rbp), %r8d
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_dt_dprintf
	movl	-40(%rbp), %eax
	cmpl	$128, %eax
	je	LBB0_8
## %bb.3:
	cmpl	$129, %eax
	je	LBB0_9
## %bb.4:
	cmpl	$130, %eax
	jne	LBB0_11
## %bb.5:
	movl	-36(%rbp), %eax
	movq	_RD_CONSISTENT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_11
## %bb.6:
	movl	(%r12), %edi
	callq	_Pupdate_syms
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_dt_pid_create_probes_module
	testl	%eax, %eax
	je	LBB0_11
## %bb.7:
	movl	(%r14), %esi
	movl	4(%r12), %ecx
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_dt_proc_notify
	jmp	LBB0_11
LBB0_1:
	movl	%eax, %edi
	callq	_rd_errstr
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movq	%r15, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dt_dprintf
	jmp	LBB0_11
LBB0_8:
	movl	(%r12), %edi
	callq	_Pupdate_syms
	movq	_DT_PROC_STOP_PREINIT@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_9:
	movl	(%r12), %edi
	callq	_Pupdate_syms
	movq	_DT_PROC_STOP_POSTINIT@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_dt_proc_stop
LBB0_11:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RD_OK,4,2                      ## @RD_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pid %d: failed to get %s event message: %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"pid %d: rtld event %s type=%d state %d\n"

	.comm	_RD_CONSISTENT,4,2              ## @RD_CONSISTENT
	.comm	_DT_PROC_STOP_PREINIT,4,2       ## @DT_PROC_STOP_PREINIT
	.comm	_DT_PROC_STOP_POSTINIT,4,2      ## @DT_PROC_STOP_POSTINIT
	.no_dead_strip	_dt_proc_rdevent
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dt_proc_rdevent
_dt_proc_rdevent:                       ; @dt_proc_rdevent
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x1, #16]
	add	x1, sp, #8
	bl	_rd_event_getmsg
Lloh0:
	adrp	x8, _RD_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RD_OK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w22, [x19, #8]
	cmp	w0, w8
	b.ne	LBB0_7
; %bb.1:
	ldp	w3, w8, [sp, #8]
	str	x8, [sp]
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x22
	mov	x2, x21
	bl	_dt_dprintf
	ldr	w8, [sp, #8]
	cmp	w8, #128
	b.eq	LBB0_8
; %bb.2:
	cmp	w8, #129
	b.eq	LBB0_9
; %bb.3:
	cmp	w8, #130
	b.ne	LBB0_11
; %bb.4:
	ldr	w8, [sp, #12]
Lloh5:
	adrp	x9, _RD_CONSISTENT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _RD_CONSISTENT@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_11
; %bb.5:
	ldr	w0, [x19]
	bl	_Pupdate_syms
	mov	x0, x20
	mov	x1, x19
	bl	_dt_pid_create_probes_module
	cbz	w0, LBB0_11
; %bb.6:
	ldr	w1, [x20]
	ldr	w3, [x19, #4]
	mov	x0, x20
	mov	x2, x19
	bl	_dt_proc_notify
	b	LBB0_11
LBB0_7:
	bl	_rd_errstr
	mov	x3, x0
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	mov	x2, x21
	bl	_dt_dprintf
	b	LBB0_11
LBB0_8:
	ldr	w0, [x19]
	bl	_Pupdate_syms
Lloh10:
	adrp	x8, _DT_PROC_STOP_PREINIT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DT_PROC_STOP_PREINIT@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
	ldr	w0, [x19]
	bl	_Pupdate_syms
Lloh12:
	adrp	x8, _DT_PROC_STOP_POSTINIT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DT_PROC_STOP_POSTINIT@GOTPAGEOFF]
LBB0_10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dt_proc_stop
LBB0_11:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_RD_OK,4,2                      ; @RD_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pid %d: failed to get %s event message: %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"pid %d: rtld event %s type=%d state %d\n"

	.comm	_RD_CONSISTENT,4,2              ; @RD_CONSISTENT
	.comm	_DT_PROC_STOP_PREINIT,4,2       ; @DT_PROC_STOP_PREINIT
	.comm	_DT_PROC_STOP_POSTINIT,4,2      ; @DT_PROC_STOP_POSTINIT
	.no_dead_strip	_dt_proc_rdevent
.subsections_via_symbols
