	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	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_5
## %bb.3:
	incl	%ecx
	cmpl	%ecx, %eax
	je	LBB0_5
## %bb.4:
	movl	$1, 4(%rbx)
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_11
LBB0_1:
	movl	$1, 4(%rbx)
	jmp	LBB0_10
LBB0_5:
	movl	$0, 4(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rbx)
	callq	_local_irq_save
	movq	_current_req@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.6:
	movq	_last_req@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rbx, 16(%rcx)
	movq	%rbx, (%rax)
	jmp	LBB0_9
LBB0_7:
	movq	%rbx, (%rax)
	movq	_last_req@GOTPCREL(%rip), %rax
	movq	%rbx, (%rax)
	movq	_pmu_state@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_idle@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:
	xorl	%eax, %eax
	callq	_pmu_start
LBB0_9:
	callq	_local_irq_restore
LBB0_10:
	xorl	%eax, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pmu_data_len,8,3               ## @pmu_data_len
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_current_req,8,3                ## @current_req
	.comm	_last_req,8,3                   ## @last_req
	.comm	_pmu_state,8,3                  ## @pmu_state
	.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
	ldr	w8, [x0]
	cmp	w8, #0
	b.le	LBB0_4
; %bb.1:
Lloh0:
	adrp	x9, _pmu_data_len@GOTPAGE
Lloh1:
	ldr	x9, [x9, _pmu_data_len@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x10, [x19, #8]
	ldr	x10, [x10]
	ldr	x9, [x9, x10, lsl #3]
	ldr	w9, [x9]
	tbnz	w9, #31, LBB0_5
; %bb.2:
	add	w9, w9, #1
	cmp	w8, w9
	b.eq	LBB0_5
; %bb.3:
	mov	w8, #1
	str	w8, [x19, #4]
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_4:
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19, #4]
	b	LBB0_10
LBB0_5:
	str	wzr, [x19, #4]
	stp	xzr, xzr, [x19, #16]
	bl	_local_irq_save
Lloh6:
	adrp	x8, _current_req@GOTPAGE
Lloh7:
	ldr	x8, [x8, _current_req@GOTPAGEOFF]
	ldr	x9, [x8]
	cbz	x9, LBB0_7
; %bb.6:
Lloh8:
	adrp	x8, _last_req@GOTPAGE
Lloh9:
	ldr	x8, [x8, _last_req@GOTPAGEOFF]
	ldr	x9, [x8]
	str	x19, [x9, #16]
	str	x19, [x8]
	b	LBB0_9
LBB0_7:
	str	x19, [x8]
Lloh10:
	adrp	x8, _last_req@GOTPAGE
Lloh11:
	ldr	x8, [x8, _last_req@GOTPAGEOFF]
Lloh12:
	adrp	x9, _pmu_state@GOTPAGE
Lloh13:
	ldr	x9, [x9, _pmu_state@GOTPAGEOFF]
Lloh14:
	str	x19, [x8]
Lloh15:
	ldr	x8, [x9]
Lloh16:
	adrp	x9, _idle@GOTPAGE
Lloh17:
	ldr	x9, [x9, _idle@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:
	bl	_pmu_start
LBB0_9:
	bl	_local_irq_restore
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh15
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_pmu_data_len,8,3               ; @pmu_data_len
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_current_req,8,3                ; @current_req
	.comm	_last_req,8,3                   ; @last_req
	.comm	_pmu_state,8,3                  ; @pmu_state
	.comm	_idle,8,3                       ; @idle
.subsections_via_symbols
