	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dt_proc_attach
_dt_proc_attach:                        ## @dt_proc_attach
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	addq	$24, %rdi
	callq	_DT_MUTEX_HELD
	movl	%eax, %edi
	callq	_assert
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.1:
	movq	_B_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_dt_proc_bpdestroy
LBB0_2:
	movl	8(%rbx), %edi
	callq	_Prd_agent
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	_B_TRUE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_rd_event_enable
	movq	_RD_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_6
## %bb.4:
	movq	_RD_POSTINIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_dt_proc_rdwatch
	jmp	LBB0_10
LBB0_5:
	movq	(%rbx), %r14
	jmp	LBB0_8
LBB0_6:
	movq	(%rbx), %r14
	cmpq	$0, 16(%rbx)
	je	LBB0_8
## %bb.7:
	movl	%eax, %edi
	callq	_rd_errstr
	movq	%rax, %rdx
	jmp	LBB0_9
LBB0_8:
	leaq	L_.str.2(%rip), %rdx
LBB0_9:
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	callq	_dt_dprintf
LBB0_10:
	movl	8(%rbx), %edi
	callq	_Pupdate_maps
	movl	8(%rbx), %edi
	movq	_LM_ID_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	leaq	L_.str.4(%rip), %rcx
	leaq	-24(%rbp), %r8
	xorl	%r9d, %r9d
	callq	_Pxlookup_by_name
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movl	(%rbx), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.6(%rip), %rdi
	movl	%ebx, %esi
	movq	%rax, %rdx
	callq	_dt_dprintf
	jmp	LBB0_13
LBB0_12:
	movq	-24(%rbp), %rsi
	movq	_dt_proc_bpmain@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str.5(%rip), %rcx
	movq	%rbx, %rdi
	callq	_dt_proc_bpcreate
LBB0_13:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_B_FALSE,4,2                    ## @B_FALSE
	.comm	_B_TRUE,4,2                     ## @B_TRUE
	.comm	_RD_OK,4,2                      ## @RD_OK
	.comm	_RD_POSTINIT,4,2                ## @RD_POSTINIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RD_POSTINIT"

L_.str.1:                               ## @.str.1
	.asciz	"pid %d: failed to enable rtld events: %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"rtld_db agent initialization failed"

	.comm	_LM_ID_BASE,4,2                 ## @LM_ID_BASE
L_.str.3:                               ## @.str.3
	.asciz	"a.out"

L_.str.4:                               ## @.str.4
	.asciz	"main"

	.comm	_dt_proc_bpmain,8,3             ## @dt_proc_bpmain
L_.str.5:                               ## @.str.5
	.asciz	"a.out`main"

L_.str.6:                               ## @.str.6
	.asciz	"pid %d: failed to find a.out`main: %s\n"

	.comm	_errno,4,2                      ## @errno
	.comm	_RD_DLACTIVITY,4,2              ## @RD_DLACTIVITY
	.comm	_RD_PREINIT,4,2                 ## @RD_PREINIT
	.no_dead_strip	_dt_proc_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dt_proc_attach
_dt_proc_attach:                        ; @dt_proc_attach
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	add	x0, x0, #24
	bl	_DT_MUTEX_HELD
	bl	_assert
	cbz	w20, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _B_FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _B_FALSE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dt_proc_bpdestroy
LBB0_2:
	ldr	w0, [x19, #8]
	bl	_Prd_agent
	str	x0, [x19, #16]
	cbz	x0, LBB0_5
; %bb.3:
Lloh3:
	adrp	x8, _B_TRUE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _B_TRUE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_rd_event_enable
Lloh6:
	adrp	x8, _RD_OK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RD_OK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.4:
Lloh9:
	adrp	x8, _RD_POSTINIT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RD_POSTINIT@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dt_proc_rdwatch
	b	LBB0_10
LBB0_5:
	ldr	x20, [x19]
	b	LBB0_8
LBB0_6:
	ldr	x8, [x19, #16]
	ldr	x20, [x19]
	cbz	x8, LBB0_8
; %bb.7:
	bl	_rd_errstr
	mov	x2, x0
	b	LBB0_9
LBB0_8:
Lloh14:
	adrp	x2, l_.str.2@PAGE
Lloh15:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_9:
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_dt_dprintf
LBB0_10:
	ldr	w0, [x19, #8]
	bl	_Pupdate_maps
	ldr	w0, [x19, #8]
Lloh18:
	adrp	x8, _LM_ID_BASE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _LM_ID_BASE@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x2, l_.str.3@PAGE
Lloh22:
	add	x2, x2, l_.str.3@PAGEOFF
Lloh23:
	adrp	x3, l_.str.4@PAGE
Lloh24:
	add	x3, x3, l_.str.4@PAGEOFF
	add	x4, sp, #8
	mov	x5, #0
	bl	_Pxlookup_by_name
	cbz	x0, LBB0_12
; %bb.11:
	ldr	w19, [x19]
Lloh25:
	adrp	x8, _errno@GOTPAGE
Lloh26:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	bl	_strerror
	mov	x2, x0
Lloh28:
	adrp	x0, l_.str.6@PAGE
Lloh29:
	add	x0, x0, l_.str.6@PAGEOFF
	mov	x1, x19
	bl	_dt_dprintf
	b	LBB0_13
LBB0_12:
	ldr	x1, [sp, #8]
Lloh30:
	adrp	x8, _dt_proc_bpmain@GOTPAGE
Lloh31:
	ldr	x8, [x8, _dt_proc_bpmain@GOTPAGEOFF]
Lloh32:
	ldr	x2, [x8]
Lloh33:
	adrp	x3, l_.str.5@PAGE
Lloh34:
	add	x3, x3, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dt_proc_bpcreate
LBB0_13:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_B_FALSE,4,2                    ; @B_FALSE
	.comm	_B_TRUE,4,2                     ; @B_TRUE
	.comm	_RD_OK,4,2                      ; @RD_OK
	.comm	_RD_POSTINIT,4,2                ; @RD_POSTINIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RD_POSTINIT"

l_.str.1:                               ; @.str.1
	.asciz	"pid %d: failed to enable rtld events: %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"rtld_db agent initialization failed"

	.comm	_LM_ID_BASE,4,2                 ; @LM_ID_BASE
l_.str.3:                               ; @.str.3
	.asciz	"a.out"

l_.str.4:                               ; @.str.4
	.asciz	"main"

	.comm	_dt_proc_bpmain,8,3             ; @dt_proc_bpmain
l_.str.5:                               ; @.str.5
	.asciz	"a.out`main"

l_.str.6:                               ; @.str.6
	.asciz	"pid %d: failed to find a.out`main: %s\n"

	.comm	_errno,4,2                      ; @errno
	.comm	_RD_DLACTIVITY,4,2              ; @RD_DLACTIVITY
	.comm	_RD_PREINIT,4,2                 ; @RD_PREINIT
	.no_dead_strip	_dt_proc_attach
.subsections_via_symbols
