	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmu_queue_request              ## -- Begin function pmu_queue_request
	.p2align	4, 0x90
_pmu_queue_request:                     ## @pmu_queue_request
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_pmu_state@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	_uninitialized@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movl	$1, (%rbx)
	movq	_ENXIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_3:
	movl	4(%rbx), %eax
	testl	%eax, %eax
	jle	LBB0_4
## %bb.5:
	movq	_pmu_data_len@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	8(%rbx), %rdx
	movq	(%rdx), %rdx
	movq	(%rcx,%rdx,8), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, %ecx
	js	LBB0_8
## %bb.6:
	incl	%ecx
	cmpl	%ecx, %eax
	je	LBB0_8
## %bb.7:
	movl	$1, (%rbx)
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_14
LBB0_4:
	movl	$1, (%rbx)
	jmp	LBB0_13
LBB0_8:
	movl	$0, (%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rbx)
	movq	_pmu_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irqsave
	movq	_current_req@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.9:
	movq	_last_req@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rbx, 16(%rcx)
	movq	%rbx, (%rax)
	jmp	LBB0_12
LBB0_10:
	movq	%rbx, (%rax)
	movq	_last_req@GOTPCREL(%rip), %rax
	movq	%rbx, (%rax)
	movq	(%r14), %rax
	movq	_idle@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.11:
	xorl	%eax, %eax
	callq	_pmu_start
LBB0_12:
	movq	_pmu_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_irqrestore
LBB0_13:
	xorl	%eax, %eax
LBB0_14:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pmu_state,8,3                  ## @pmu_state
	.comm	_uninitialized,8,3              ## @uninitialized
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_pmu_data_len,8,3               ## @pmu_data_len
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_pmu_lock,4,2                   ## @pmu_lock
	.comm	_current_req,8,3                ## @current_req
	.comm	_last_req,8,3                   ## @last_req
	.comm	_idle,8,3                       ## @idle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmu_queue_request              ; -- Begin function pmu_queue_request
	.p2align	2
_pmu_queue_request:                     ; @pmu_queue_request
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x20, _pmu_state@GOTPAGE
Lloh1:
	ldr	x20, [x20, _pmu_state@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _uninitialized@GOTPAGE
Lloh3:
	ldr	x9, [x9, _uninitialized@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w8, #1
	str	w8, [x19]
Lloh5:
	adrp	x8, _ENXIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_6
LBB0_2:
	ldr	w8, [x19, #4]
	cmp	w8, #0
	b.le	LBB0_7
; %bb.3:
Lloh7:
	adrp	x9, _pmu_data_len@GOTPAGE
Lloh8:
	ldr	x9, [x9, _pmu_data_len@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	ldr	x10, [x19, #8]
	ldr	x10, [x10]
	ldr	x9, [x9, x10, lsl #3]
	ldr	w9, [x9]
	tbnz	w9, #31, LBB0_8
; %bb.4:
	add	w9, w9, #1
	cmp	w8, w9
	b.eq	LBB0_8
; %bb.5:
	mov	w8, #1
	str	w8, [x19]
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_13
LBB0_7:
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_13
LBB0_8:
	str	wzr, [x19]
	stp	xzr, xzr, [x19, #16]
Lloh12:
	adrp	x0, _pmu_lock@GOTPAGE
Lloh13:
	ldr	x0, [x0, _pmu_lock@GOTPAGEOFF]
	bl	_spin_lock_irqsave
Lloh14:
	adrp	x8, _current_req@GOTPAGE
Lloh15:
	ldr	x8, [x8, _current_req@GOTPAGEOFF]
	ldr	x9, [x8]
	cbz	x9, LBB0_10
; %bb.9:
Lloh16:
	adrp	x8, _last_req@GOTPAGE
Lloh17:
	ldr	x8, [x8, _last_req@GOTPAGEOFF]
	ldr	x9, [x8]
	str	x19, [x9, #16]
	str	x19, [x8]
	b	LBB0_12
LBB0_10:
	str	x19, [x8]
Lloh18:
	adrp	x8, _last_req@GOTPAGE
Lloh19:
	ldr	x8, [x8, _last_req@GOTPAGEOFF]
Lloh20:
	str	x19, [x8]
	ldr	x8, [x20]
Lloh21:
	adrp	x9, _idle@GOTPAGE
Lloh22:
	ldr	x9, [x9, _idle@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.11:
	bl	_pmu_start
LBB0_12:
Lloh24:
	adrp	x0, _pmu_lock@GOTPAGE
Lloh25:
	ldr	x0, [x0, _pmu_lock@GOTPAGEOFF]
	bl	_spin_unlock_irqrestore
	mov	w0, #0
LBB0_13:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_pmu_state,8,3                  ; @pmu_state
	.comm	_uninitialized,8,3              ; @uninitialized
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_pmu_data_len,8,3               ; @pmu_data_len
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_pmu_lock,4,2                   ; @pmu_lock
	.comm	_current_req,8,3                ; @current_req
	.comm	_last_req,8,3                   ; @last_req
	.comm	_idle,8,3                       ; @idle
.subsections_via_symbols
