	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function perf_submit_test
_perf_submit_test:                      ## @perf_submit_test
	.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
	movq	%rdi, %r12
	movq	8(%rdi), %r13
	movq	_PERF_STS_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	leaq	4(%r13), %rbx
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	_test_and_set_bit_lock
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_12
LBB0_1:
	movq	_ENOLINK@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_12
LBB0_4:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, 24(%r13)
	leaq	8(%r13), %rdi
	movl	(%r13), %esi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_atomic_set
	movq	_MAX_THREADS_CNT@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_9
## %bb.5:
	xorl	%r15d, %r15d
	movq	_ENODATA@GOTPCREL(%rip), %r14
	xorl	%r12d, %r12d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%r12
	movq	_MAX_THREADS_CNT@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$24, %r15
	cmpq	%rax, %r12
	jge	LBB0_9
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %rbx
	xorl	%eax, %eax
	subl	(%r14), %eax
	movl	%eax, 16(%rbx,%r15)
	movq	$0, 8(%rbx,%r15)
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_ktime_set
	movl	%eax, 4(%rbx,%r15)
	movslq	(%r13), %rax
	cmpq	%rax, %r12
	jge	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_perf_wq@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	%r15, %rbx
	movq	%rbx, %rsi
	callq	_queue_work
	jmp	LBB0_8
LBB0_9:
	movl	12(%r13), %ebx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_atomic_read
	xorl	%esi, %esi
	testq	%rax, %rax
	setle	%sil
	movl	%ebx, %edi
	callq	_wait_event_interruptible
	movl	%eax, %r15d
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rax
	movl	%r15d, %ecx
	addl	(%rax), %ecx
	jne	LBB0_11
## %bb.10:
	movq	%r13, %rdi
	callq	_perf_terminate_test
	movq	_EINTR@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_11:
	xorl	%edi, %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_clear_bit_unlock
LBB0_12:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PERF_STS_DONE,4,2              ## @PERF_STS_DONE
	.comm	_ENOLINK,4,2                    ## @ENOLINK
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_MAX_THREADS_CNT,4,2            ## @MAX_THREADS_CNT
	.comm	_ENODATA,4,2                    ## @ENODATA
	.comm	_perf_wq,4,2                    ## @perf_wq
	.comm	_ERESTARTSYS,4,2                ## @ERESTARTSYS
	.comm	_EINTR,4,2                      ## @EINTR
	.no_dead_strip	_perf_submit_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function perf_submit_test
_perf_submit_test:                      ; @perf_submit_test
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x0
	ldr	x20, [x0, #8]
Lloh0:
	adrp	x8, _PERF_STS_DONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PERF_STS_DONE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_test_bit
	cbz	w0, LBB0_3
; %bb.1:
	add	x19, x20, #4
	mov	w0, #0
	mov	x1, x19
	bl	_test_and_set_bit_lock
	cbz	x0, LBB0_5
; %bb.2:
Lloh3:
	adrp	x8, _EBUSY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x8, _ENOLINK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOLINK@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_13
LBB0_5:
	str	x21, [x20, #24]
	add	x21, x20, #8
	ldr	w1, [x20]
	mov	x0, x21
	bl	_atomic_set
Lloh7:
	adrp	x23, _MAX_THREADS_CNT@GOTPAGE
Lloh8:
	ldr	x23, [x23, _MAX_THREADS_CNT@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.6:
	mov	x24, #0
	mov	x25, #0
Lloh9:
	adrp	x26, _ENODATA@GOTPAGE
Lloh10:
	ldr	x26, [x26, _ENODATA@GOTPAGEOFF]
Lloh11:
	adrp	x27, _perf_wq@GOTPAGE
Lloh12:
	ldr	x27, [x27, _perf_wq@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x23]
	add	x24, x24, #24
	cmp	x25, x8
	b.ge	LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	ldr	w9, [x26]
	neg	w9, w9
	add	x22, x8, x24
	str	w9, [x22, #16]
	str	xzr, [x22, #8]
	mov	w0, #0
	mov	w1, #0
	bl	_ktime_set
	str	w0, [x22, #4]
	ldrsw	x8, [x20]
	cmp	x25, x8
	b.ge	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [x27]
	mov	x1, x22
	bl	_queue_work
	b	LBB0_7
LBB0_10:
	ldr	w22, [x20, #12]
	mov	x0, x21
	bl	_atomic_read
	cmp	x0, #1
	cset	w1, lt
	mov	x0, x22
	bl	_wait_event_interruptible
	mov	x21, x0
Lloh13:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_12
; %bb.11:
	mov	x0, x20
	bl	_perf_terminate_test
Lloh16:
	adrp	x8, _EINTR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINTR@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_12:
	mov	w0, #0
	mov	x1, x19
	bl	_clear_bit_unlock
LBB0_13:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_PERF_STS_DONE,4,2              ; @PERF_STS_DONE
	.comm	_ENOLINK,4,2                    ; @ENOLINK
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_MAX_THREADS_CNT,4,2            ; @MAX_THREADS_CNT
	.comm	_ENODATA,4,2                    ; @ENODATA
	.comm	_perf_wq,4,2                    ; @perf_wq
	.comm	_ERESTARTSYS,4,2                ; @ERESTARTSYS
	.comm	_EINTR,4,2                      ; @EINTR
	.no_dead_strip	_perf_submit_test
.subsections_via_symbols
