	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function enable_thread_event_reporting
_enable_thread_event_reporting:         ## @enable_thread_event_reporting
	.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	_td_ta_event_addr_p@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.1:
	movq	_td_ta_event_getmsg_p@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.2:
	movq	_td_thr_event_enable_p@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.3:
	leaq	-36(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_td_event_emptyset
	movq	_TD_CREATE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_td_event_addset
	movq	_TD_DEATH@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_td_event_addset
	movq	_thread_agent@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	%rbx, %rsi
	callq	_td_ta_set_event_p
	movq	_TD_OK@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jne	LBB0_4
## %bb.5:
	xorl	%eax, %eax
	callq	_remove_thread_event_breakpoints
	movq	_td_create_bp_addr@GOTPCREL(%rip), %rdx
	movq	$0, (%rdx)
	movq	_td_death_bp_addr@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movl	(%r12), %edi
	movl	(%r15), %esi
	callq	_enable_thread_event
	cmpq	(%rbx), %rax
	jne	LBB0_6
## %bb.7:
	movl	(%r12), %edi
	movl	(%r14), %esi
	movq	_td_death_bp_addr@GOTPCREL(%rip), %rdx
	callq	_enable_thread_event
	cmpq	(%rbx), %rax
	je	LBB0_10
## %bb.8:
	leaq	L_.str.2(%rip), %rbx
	jmp	LBB0_9
LBB0_4:
	leaq	L_.str(%rip), %rbx
	jmp	LBB0_9
LBB0_6:
	leaq	L_.str.1(%rip), %rbx
LBB0_9:
	movq	%rax, %rdi
	callq	_thread_db_err_str
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_warning
LBB0_10:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_td_ta_event_addr_p,8,3         ## @td_ta_event_addr_p
	.comm	_td_ta_event_getmsg_p,8,3       ## @td_ta_event_getmsg_p
	.comm	_td_thr_event_enable_p,8,3      ## @td_thr_event_enable_p
	.comm	_TD_CREATE,4,2                  ## @TD_CREATE
	.comm	_TD_DEATH,4,2                   ## @TD_DEATH
	.comm	_thread_agent,4,2               ## @thread_agent
	.comm	_TD_OK,8,3                      ## @TD_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to set global thread event mask: %s"

	.comm	_td_create_bp_addr,8,3          ## @td_create_bp_addr
	.comm	_td_death_bp_addr,8,3           ## @td_death_bp_addr
L_.str.1:                               ## @.str.1
	.asciz	"Unable to get location for thread creation breakpoint: %s"

L_.str.2:                               ## @.str.2
	.asciz	"Unable to get location for thread death breakpoint: %s"

	.no_dead_strip	_enable_thread_event_reporting
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function enable_thread_event_reporting
_enable_thread_event_reporting:         ; @enable_thread_event_reporting
	.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
Lloh0:
	adrp	x8, _td_ta_event_addr_p@GOTPAGE
Lloh1:
	ldr	x8, [x8, _td_ta_event_addr_p@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _td_ta_event_getmsg_p@GOTPAGE
Lloh4:
	ldr	x9, [x9, _td_ta_event_getmsg_p@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _td_thr_event_enable_p@GOTPAGE
Lloh7:
	ldr	x10, [x10, _td_thr_event_enable_p@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x8, #0
	ccmp	x9, #0, #4, ne
	ccmp	x10, #0, #4, ne
	b.eq	LBB0_8
; %bb.1:
	add	x0, sp, #12
	bl	_td_event_emptyset
Lloh9:
	adrp	x20, _TD_CREATE@GOTPAGE
Lloh10:
	ldr	x20, [x20, _TD_CREATE@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x0, sp, #12
	bl	_td_event_addset
Lloh11:
	adrp	x19, _TD_DEATH@GOTPAGE
Lloh12:
	ldr	x19, [x19, _TD_DEATH@GOTPAGEOFF]
	ldr	w1, [x19]
	add	x0, sp, #12
	bl	_td_event_addset
Lloh13:
	adrp	x22, _thread_agent@GOTPAGE
Lloh14:
	ldr	x22, [x22, _thread_agent@GOTPAGEOFF]
	ldr	w0, [x22]
	add	x1, sp, #12
	bl	_td_ta_set_event_p
Lloh15:
	adrp	x21, _TD_OK@GOTPAGE
Lloh16:
	ldr	x21, [x21, _TD_OK@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.2:
	bl	_remove_thread_event_breakpoints
Lloh17:
	adrp	x2, _td_create_bp_addr@GOTPAGE
Lloh18:
	ldr	x2, [x2, _td_create_bp_addr@GOTPAGEOFF]
	str	xzr, [x2]
Lloh19:
	adrp	x8, _td_death_bp_addr@GOTPAGE
Lloh20:
	ldr	x8, [x8, _td_death_bp_addr@GOTPAGEOFF]
Lloh21:
	str	xzr, [x8]
	ldr	w0, [x22]
	ldr	w1, [x20]
	bl	_enable_thread_event
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.3:
	ldr	w0, [x22]
	ldr	w1, [x19]
Lloh22:
	adrp	x2, _td_death_bp_addr@GOTPAGE
Lloh23:
	ldr	x2, [x2, _td_death_bp_addr@GOTPAGEOFF]
	bl	_enable_thread_event
	ldr	x8, [x21]
	cmp	x0, x8
	b.eq	LBB0_8
; %bb.4:
Lloh24:
	adrp	x19, l_.str.2@PAGE
Lloh25:
	add	x19, x19, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_5:
Lloh26:
	adrp	x19, l_.str@PAGE
Lloh27:
	add	x19, x19, l_.str@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh28:
	adrp	x19, l_.str.1@PAGE
Lloh29:
	add	x19, x19, l_.str.1@PAGEOFF
LBB0_7:
	bl	_thread_db_err_str
	mov	x1, x0
	mov	x0, x19
	bl	_warning
LBB0_8:
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_td_ta_event_addr_p,8,3         ; @td_ta_event_addr_p
	.comm	_td_ta_event_getmsg_p,8,3       ; @td_ta_event_getmsg_p
	.comm	_td_thr_event_enable_p,8,3      ; @td_thr_event_enable_p
	.comm	_TD_CREATE,4,2                  ; @TD_CREATE
	.comm	_TD_DEATH,4,2                   ; @TD_DEATH
	.comm	_thread_agent,4,2               ; @thread_agent
	.comm	_TD_OK,8,3                      ; @TD_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to set global thread event mask: %s"

	.comm	_td_create_bp_addr,8,3          ; @td_create_bp_addr
	.comm	_td_death_bp_addr,8,3           ; @td_death_bp_addr
l_.str.1:                               ; @.str.1
	.asciz	"Unable to get location for thread creation breakpoint: %s"

l_.str.2:                               ; @.str.2
	.asciz	"Unable to get location for thread death breakpoint: %s"

	.no_dead_strip	_enable_thread_event_reporting
.subsections_via_symbols
