	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arm_spe_pmu_dev_init
_arm_spe_pmu_dev_init:                  ## @arm_spe_pmu_dev_init
	.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, %r14
	addq	$16, %rdi
	movq	___arm_spe_pmu_dev_probe@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	movl	$1, %ecx
	callq	_smp_call_function_any
	testl	%eax, %eax
	je	LBB0_1
LBB0_2:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	_SPE_PMU_FEAT_DEV_PROBED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_2
## %bb.3:
	movl	4(%r14), %ecx
	movl	8(%r14), %edi
	movq	_arm_spe_pmu_irq_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DRVNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_request_percpu_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	movq	_arm_spe_pmu_online@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	12(%r14), %rsi
	callq	_cpuhp_state_add_instance
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	%eax, %ebx
	movl	4(%r14), %esi
	movl	8(%r14), %edi
	callq	_free_percpu_irq
	jmp	LBB0_7
LBB0_5:
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	___arm_spe_pmu_dev_probe,4,2    ## @__arm_spe_pmu_dev_probe
	.comm	_SPE_PMU_FEAT_DEV_PROBED,4,2    ## @SPE_PMU_FEAT_DEV_PROBED
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_arm_spe_pmu_irq_handler,4,2    ## @arm_spe_pmu_irq_handler
	.comm	_DRVNAME,4,2                    ## @DRVNAME
	.comm	_arm_spe_pmu_online,4,2         ## @arm_spe_pmu_online
	.no_dead_strip	_arm_spe_pmu_dev_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arm_spe_pmu_dev_init
_arm_spe_pmu_dev_init:                  ; @arm_spe_pmu_dev_init
	.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
	add	x0, x0, #16
Lloh0:
	adrp	x8, ___arm_spe_pmu_dev_probe@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___arm_spe_pmu_dev_probe@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x2, x19
	mov	w3, #1
	bl	_smp_call_function_any
	cbz	w0, LBB0_3
LBB0_1:
Lloh3:
	adrp	x8, _ENXIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldr	w8, [x19]
Lloh6:
	adrp	x9, _SPE_PMU_FEAT_DEV_PROBED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SPE_PMU_FEAT_DEV_PROBED@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_1
; %bb.4:
Lloh9:
	adrp	x8, _arm_spe_pmu_irq_handler@GOTPAGE
Lloh10:
	ldr	x8, [x8, _arm_spe_pmu_irq_handler@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _DRVNAME@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DRVNAME@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	ldp	w3, w0, [x19, #4]
	bl	_request_percpu_irq
	mov	x20, x0
	cbnz	w0, LBB0_2
; %bb.5:
Lloh15:
	adrp	x8, _arm_spe_pmu_online@GOTPAGE
Lloh16:
	ldr	x8, [x8, _arm_spe_pmu_online@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	add	x1, x19, #12
	bl	_cpuhp_state_add_instance
	mov	x20, x0
	cbz	w0, LBB0_2
; %bb.6:
	ldp	w1, w0, [x19, #4]
	bl	_free_percpu_irq
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	___arm_spe_pmu_dev_probe,4,2    ; @__arm_spe_pmu_dev_probe
	.comm	_SPE_PMU_FEAT_DEV_PROBED,4,2    ; @SPE_PMU_FEAT_DEV_PROBED
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_arm_spe_pmu_irq_handler,4,2    ; @arm_spe_pmu_irq_handler
	.comm	_DRVNAME,4,2                    ; @DRVNAME
	.comm	_arm_spe_pmu_online,4,2         ; @arm_spe_pmu_online
	.no_dead_strip	_arm_spe_pmu_dev_init
.subsections_via_symbols
