	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function multi_thread_test_helper
_multi_thread_test_helper:              ## @multi_thread_test_helper
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	24(%rdi), %edi
	movq	_KIOENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rbx), %rdx
	callq	_ioctl
	movq	%rax, %r14
	movq	(%rbx), %r12
	movq	_modes@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_nitems
	cmpq	%rax, %r12
	jae	LBB0_1
## %bb.2:
	movq	(%r15), %rax
	movq	(%rbx), %rcx
	movq	(%rax,%rcx,8), %rdx
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str.1(%rip), %rdx
LBB0_3:
	xorl	%edi, %edi
	testq	%r14, %r14
	sete	%dil
	movl	8(%rbx), %ecx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_ATF_REQUIRE_MSG
	movq	16(%rbx), %rdi
	xorl	%esi, %esi
	callq	_atomic_store_64
	xorl	%edi, %edi
	callq	_sleep
	movq	16(%rbx), %rdi
	callq	_atomic_load_64
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	movslq	8(%rbx), %rdx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_ATF_REQUIRE_MSG
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KIOENABLE,4,2                  ## @KIOENABLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to enable kcov %s in thread %d"

	.comm	_modes,8,3                      ## @modes
L_.str.1:                               ## @.str.1
	.asciz	"unknown mode"

L_.str.2:                               ## @.str.2
	.asciz	"No records found in thread %d"

	.no_dead_strip	_multi_thread_test_helper
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function multi_thread_test_helper
_multi_thread_test_helper:              ; @multi_thread_test_helper
	.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	x19, x0
	ldr	w0, [x0, #24]
Lloh0:
	adrp	x8, _KIOENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KIOENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	x2, [x19]
	bl	_ioctl
	mov	x20, x0
	ldr	x22, [x19]
Lloh3:
	adrp	x21, _modes@GOTPAGE
Lloh4:
	ldr	x21, [x21, _modes@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_nitems
	cmp	x22, x0
	b.hs	LBB0_2
; %bb.1:
	ldr	x8, [x21]
	ldr	x9, [x19]
	ldr	x2, [x8, x9, lsl #3]
	b	LBB0_3
LBB0_2:
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_3:
	cmp	x20, #0
	cset	w0, eq
	ldr	w8, [x19, #8]
	str	x8, [sp]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ATF_REQUIRE_MSG
	ldr	x0, [x19, #16]
	mov	w1, #0
	bl	_atomic_store_64
	mov	w0, #0
	bl	_sleep
	ldr	x0, [x19, #16]
	bl	_atomic_load_64
	cmp	x0, #0
	cset	w0, ne
	ldrsw	x2, [x19, #8]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_ATF_REQUIRE_MSG
	mov	x0, #0
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_KIOENABLE,4,2                  ; @KIOENABLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to enable kcov %s in thread %d"

	.comm	_modes,8,3                      ; @modes
l_.str.1:                               ; @.str.1
	.asciz	"unknown mode"

l_.str.2:                               ; @.str.2
	.asciz	"No records found in thread %d"

	.no_dead_strip	_multi_thread_test_helper
.subsections_via_symbols
