	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function telemetry_setup_evtconfig
_telemetry_setup_evtconfig:             ## @telemetry_setup_evtconfig
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r14d
	movl	%ecx, %r12d
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	_telm_conf@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	addq	$4, %rdi
	callq	_mutex_lock
	movq	_TELEM_UPDATE@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_3
## %bb.1:
	movq	(%r13), %rax
	cmpl	$0, (%rax)
	je	LBB0_3
## %bb.2:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_14
LBB0_3:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movq	_TELEM_PSS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	movl	%ebx, %esi
	movq	%r15, %rdx
	movl	%r14d, %ecx
	callq	_telemetry_check_evtid
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_14
## %bb.4:
	movq	_TELEM_IOSS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%r14d, %ecx
	callq	_telemetry_check_evtid
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_5
LBB0_14:
	movq	(%r13), %rdi
	addq	$4, %rdi
	callq	_mutex_unlock
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_7
## %bb.6:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r14d, %edx
	callq	_telemetry_setup_iossevtconfig
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_14
LBB0_7:
	testq	%r15, %r15
	je	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	movl	%r14d, %edx
	callq	_telemetry_setup_pssevtconfig
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_14
LBB0_9:
	movq	(%r13), %rax
	movq	_TELEM_UPDATE@GOTPCREL(%rip), %rcx
	cmpl	%r14d, (%rcx)
	je	LBB0_11
## %bb.10:
	movq	_TELEM_ADD@GOTPCREL(%rip), %rcx
	cmpl	%r14d, (%rcx)
	je	LBB0_11
## %bb.12:
	movl	$0, (%rax)
	jmp	LBB0_13
LBB0_11:
	movl	$1, (%rax)
LBB0_13:
	xorl	%r12d, %r12d
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_telm_conf,8,3                  ## @telm_conf
	.comm	_TELEM_UPDATE,4,2               ## @TELEM_UPDATE
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_TELEM_PSS,4,2                  ## @TELEM_PSS
	.comm	_TELEM_IOSS,4,2                 ## @TELEM_IOSS
	.comm	_TELEM_ADD,4,2                  ## @TELEM_ADD
	.no_dead_strip	_telemetry_setup_evtconfig
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function telemetry_setup_evtconfig
_telemetry_setup_evtconfig:             ; @telemetry_setup_evtconfig
	.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
	mov	x19, x4
	mov	x22, x3
	mov	x23, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x25, _telm_conf@GOTPAGE
Lloh1:
	ldr	x25, [x25, _telm_conf@GOTPAGEOFF]
	ldr	x8, [x25]
	add	x0, x8, #4
	bl	_mutex_lock
Lloh2:
	adrp	x26, _TELEM_UPDATE@GOTPAGE
Lloh3:
	ldr	x26, [x26, _TELEM_UPDATE@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w8, w19
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x25]
	ldr	w8, [x8]
	cbz	w8, LBB0_3
; %bb.2:
Lloh4:
	adrp	x8, _EBUSY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_5
LBB0_3:
Lloh7:
	adrp	x8, _TELEM_PSS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TELEM_PSS@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	mov	x1, x20
	mov	x2, x21
	mov	x3, x19
	bl	_telemetry_check_evtid
	mov	x24, x0
	cbnz	w0, LBB0_5
; %bb.4:
Lloh10:
	adrp	x8, _TELEM_IOSS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TELEM_IOSS@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	mov	x1, x22
	mov	x2, x23
	mov	x3, x19
	bl	_telemetry_check_evtid
	mov	x24, x0
	cbz	w0, LBB0_6
LBB0_5:
	ldr	x8, [x25]
	add	x0, x8, #4
	bl	_mutex_unlock
	mov	x0, x24
	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
LBB0_6:
	cbz	x23, LBB0_8
; %bb.7:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x19
	bl	_telemetry_setup_iossevtconfig
	mov	x24, x0
	cbnz	w0, LBB0_5
LBB0_8:
	cbz	x21, LBB0_10
; %bb.9:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_telemetry_setup_pssevtconfig
	mov	x24, x0
	cbnz	w0, LBB0_5
LBB0_10:
	ldr	w9, [x26]
Lloh13:
	adrp	x8, _TELEM_ADD@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TELEM_ADD@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x8]
	ldr	x8, [x25]
	cmp	w9, w19
	mov	w24, #0
	ccmp	w10, w19, #4, ne
	b.ne	LBB0_12
; %bb.11:
	mov	w9, #1
	str	w9, [x8]
	b	LBB0_5
LBB0_12:
	str	wzr, [x8]
	b	LBB0_5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_telm_conf,8,3                  ; @telm_conf
	.comm	_TELEM_UPDATE,4,2               ; @TELEM_UPDATE
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_TELEM_PSS,4,2                  ; @TELEM_PSS
	.comm	_TELEM_IOSS,4,2                 ; @TELEM_IOSS
	.comm	_TELEM_ADD,4,2                  ; @TELEM_ADD
	.no_dead_strip	_telemetry_setup_evtconfig
.subsections_via_symbols
