	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tx2_uncore_pmu_add_dev
_tx2_uncore_pmu_add_dev:                ## @tx2_uncore_pmu_add_dev
	.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
	movl	28(%rdi), %edi
	callq	_cpumask_of_node
	movq	_cpu_online_mask@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_cpumask_any_and
	movl	%eax, (%rbx)
	leaq	24(%rbx), %rdi
	movq	_CLOCK_MONOTONIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HRTIMER_MODE_REL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_hrtimer_init
	movq	_tx2_hrtimer_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	%rbx, %rdi
	callq	_tx2_uncore_pmu_register
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	4(%rbx), %edx
	movl	12(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_5
LBB0_2:
	movq	_CPUHP_AP_PERF_ARM_CAVIUM_TX2_UNCORE_ONLINE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	20(%rbx), %rsi
	callq	_cpuhp_state_add_instance
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r14d
	movl	12(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_5
LBB0_4:
	leaq	16(%rbx), %rdi
	movq	_tx2_pmus@GOTPCREL(%rip), %rsi
	callq	_list_add
	movl	8(%rbx), %edx
	movl	12(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_dbg
	xorl	%r14d, %r14d
LBB0_5:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cpu_online_mask,4,2            ## @cpu_online_mask
	.comm	_CLOCK_MONOTONIC,4,2            ## @CLOCK_MONOTONIC
	.comm	_HRTIMER_MODE_REL,4,2           ## @HRTIMER_MODE_REL
	.comm	_tx2_hrtimer_callback,4,2       ## @tx2_hrtimer_callback
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s PMU: Failed to init driver\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_CPUHP_AP_PERF_ARM_CAVIUM_TX2_UNCORE_ONLINE,4,2 ## @CPUHP_AP_PERF_ARM_CAVIUM_TX2_UNCORE_ONLINE
L_.str.1:                               ## @.str.1
	.asciz	"Error %d registering hotplug"

	.comm	_tx2_pmus,4,2                   ## @tx2_pmus
L_.str.2:                               ## @.str.2
	.asciz	"%s PMU UNCORE registered\n"

	.no_dead_strip	_tx2_uncore_pmu_add_dev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tx2_uncore_pmu_add_dev
_tx2_uncore_pmu_add_dev:                ; @tx2_uncore_pmu_add_dev
	.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	w0, [x0, #28]
	bl	_cpumask_of_node
Lloh0:
	adrp	x8, _cpu_online_mask@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cpu_online_mask@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_cpumask_any_and
	str	w0, [x19]
	add	x0, x19, #24
Lloh3:
	adrp	x8, _CLOCK_MONOTONIC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CLOCK_MONOTONIC@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _HRTIMER_MODE_REL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HRTIMER_MODE_REL@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	bl	_hrtimer_init
Lloh9:
	adrp	x8, _tx2_hrtimer_callback@GOTPAGE
Lloh10:
	ldr	x8, [x8, _tx2_hrtimer_callback@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	mov	x0, x19
	bl	_tx2_uncore_pmu_register
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x19, #12]
	ldr	w2, [x19, #4]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh14:
	adrp	x8, _ENODEV@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_5
LBB0_2:
Lloh17:
	adrp	x8, _CPUHP_AP_PERF_ARM_CAVIUM_TX2_UNCORE_ONLINE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CPUHP_AP_PERF_ARM_CAVIUM_TX2_UNCORE_ONLINE@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	add	x1, x19, #20
	bl	_cpuhp_state_add_instance
	mov	x20, x0
	cbz	w0, LBB0_4
; %bb.3:
	ldr	w0, [x19, #12]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_dev_err
	b	LBB0_5
LBB0_4:
	add	x0, x19, #16
Lloh22:
	adrp	x1, _tx2_pmus@GOTPAGE
Lloh23:
	ldr	x1, [x1, _tx2_pmus@GOTPAGEOFF]
	bl	_list_add
	ldp	w2, w0, [x19, #8]
Lloh24:
	adrp	x1, l_.str.2@PAGE
Lloh25:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_dbg
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_cpu_online_mask,4,2            ; @cpu_online_mask
	.comm	_CLOCK_MONOTONIC,4,2            ; @CLOCK_MONOTONIC
	.comm	_HRTIMER_MODE_REL,4,2           ; @HRTIMER_MODE_REL
	.comm	_tx2_hrtimer_callback,4,2       ; @tx2_hrtimer_callback
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s PMU: Failed to init driver\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_CPUHP_AP_PERF_ARM_CAVIUM_TX2_UNCORE_ONLINE,4,2 ; @CPUHP_AP_PERF_ARM_CAVIUM_TX2_UNCORE_ONLINE
l_.str.1:                               ; @.str.1
	.asciz	"Error %d registering hotplug"

	.comm	_tx2_pmus,4,2                   ; @tx2_pmus
l_.str.2:                               ; @.str.2
	.asciz	"%s PMU UNCORE registered\n"

	.no_dead_strip	_tx2_uncore_pmu_add_dev
.subsections_via_symbols
