	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgene_pmu_dev_add
_xgene_pmu_dev_add:                     ## @xgene_pmu_dev_add
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	16(%rdi), %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rbx, 16(%rax)
	leaq	16(%r15), %rcx
	movq	%rcx, 8(%rax)
	movq	%rax, 8(%r15)
	movl	16(%r15), %ecx
	addl	$-128, %ecx
	cmpl	$4, %ecx
	ja	LBB0_7
## %bb.2:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_3:
	movl	20(%r15), %ecx
	testl	%ecx, 4(%rbx)
	je	LBB0_26
## %bb.4:
	movl	12(%rbx), %ecx
	movq	_PCP_PMU_V3@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_20
## %bb.5:
	movq	_mcb_pmu_v3_attr_groups@GOTPCREL(%rip), %rcx
	jmp	LBB0_23
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_27
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_27
LBB0_8:
	movl	20(%r15), %ecx
	testl	%ecx, 8(%rbx)
	je	LBB0_26
## %bb.9:
	movl	12(%rbx), %ecx
	movq	_PCP_PMU_V3@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_21
## %bb.10:
	movq	_mc_pmu_v3_attr_groups@GOTPCREL(%rip), %rcx
	jmp	LBB0_23
LBB0_11:
	movl	20(%r15), %ecx
	testl	%ecx, (%rbx)
	je	LBB0_26
## %bb.12:
	movl	12(%rbx), %ecx
	movq	_PCP_PMU_V3@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_22
## %bb.13:
	movq	_l3c_pmu_v3_attr_groups@GOTPCREL(%rip), %rcx
	jmp	LBB0_23
LBB0_15:
	movl	12(%rbx), %ecx
	movq	_PCP_PMU_V3@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_24
## %bb.16:
	movq	_iob_slow_pmu_v3_attr_groups@GOTPCREL(%rip), %rcx
	jmp	LBB0_23
LBB0_17:
	movl	12(%rbx), %ecx
	movq	_PCP_PMU_V3@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_19
## %bb.18:
	movq	_iob_fast_pmu_v3_attr_groups@GOTPCREL(%rip), %rcx
	jmp	LBB0_23
LBB0_19:
	movq	_iob_pmu_attr_groups@GOTPCREL(%rip), %rcx
	jmp	LBB0_23
LBB0_20:
	movq	_mcb_pmu_attr_groups@GOTPCREL(%rip), %rcx
	jmp	LBB0_23
LBB0_21:
	movq	_mc_pmu_attr_groups@GOTPCREL(%rip), %rcx
	jmp	LBB0_23
LBB0_22:
	movq	_l3c_pmu_attr_groups@GOTPCREL(%rip), %rcx
LBB0_23:
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
LBB0_24:
	movl	(%r15), %esi
	movq	%rax, %rdi
	callq	_xgene_init_perf
	movl	(%r15), %edx
	testq	%rax, %rax
	je	LBB0_29
## %bb.25:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
LBB0_26:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
LBB0_27:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_28:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_29:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	xorl	%eax, %eax
	jmp	LBB0_28
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_8
	.long	L0_0_set_11
	.long	L0_0_set_15
	.long	L0_0_set_17
	.end_data_region
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_PCP_PMU_V3,4,2                 ## @PCP_PMU_V3
	.comm	_l3c_pmu_v3_attr_groups,4,2     ## @l3c_pmu_v3_attr_groups
	.comm	_l3c_pmu_attr_groups,4,2        ## @l3c_pmu_attr_groups
	.comm	_iob_fast_pmu_v3_attr_groups,4,2 ## @iob_fast_pmu_v3_attr_groups
	.comm	_iob_pmu_attr_groups,4,2        ## @iob_pmu_attr_groups
	.comm	_iob_slow_pmu_v3_attr_groups,4,2 ## @iob_slow_pmu_v3_attr_groups
	.comm	_mcb_pmu_v3_attr_groups,4,2     ## @mcb_pmu_v3_attr_groups
	.comm	_mcb_pmu_attr_groups,4,2        ## @mcb_pmu_attr_groups
	.comm	_mc_pmu_v3_attr_groups,4,2      ## @mc_pmu_v3_attr_groups
	.comm	_mc_pmu_attr_groups,4,2         ## @mc_pmu_attr_groups
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s PMU: Failed to init perf driver\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s PMU registered\n"

	.no_dead_strip	_xgene_pmu_dev_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgene_pmu_dev_add
_xgene_pmu_dev_add:                     ; @xgene_pmu_dev_add
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x21, x0
	ldr	x19, [x0, #16]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x8, x20
	ldr	w9, [x8, #16]!
	stp	x8, x21, [x0, #8]
	stur	x0, [x8, #-8]
	sub	w8, w9, #128
	cmp	w8, #4
	b.hi	LBB0_9
; %bb.2:
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
	ldr	w8, [x21, #4]
	ldr	w9, [x20, #20]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.4:
	ldr	w8, [x21, #12]
Lloh5:
	adrp	x9, _PCP_PMU_V3@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PCP_PMU_V3@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x10, _mcb_pmu_attr_groups@GOTPAGE
Lloh9:
	ldr	x10, [x10, _mcb_pmu_attr_groups@GOTPAGEOFF]
Lloh10:
	adrp	x11, _mcb_pmu_v3_attr_groups@GOTPAGE
Lloh11:
	ldr	x11, [x11, _mcb_pmu_v3_attr_groups@GOTPAGEOFF]
	b	LBB0_12
LBB0_5:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_17
LBB0_6:
	ldr	w8, [x21]
	ldr	w9, [x20, #20]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.7:
	ldr	w8, [x21, #12]
Lloh14:
	adrp	x9, _PCP_PMU_V3@GOTPAGE
Lloh15:
	ldr	x9, [x9, _PCP_PMU_V3@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
Lloh17:
	adrp	x10, _l3c_pmu_attr_groups@GOTPAGE
Lloh18:
	ldr	x10, [x10, _l3c_pmu_attr_groups@GOTPAGEOFF]
Lloh19:
	adrp	x11, _l3c_pmu_v3_attr_groups@GOTPAGE
Lloh20:
	ldr	x11, [x11, _l3c_pmu_v3_attr_groups@GOTPAGEOFF]
	b	LBB0_12
LBB0_8:
	ldr	w8, [x21, #12]
Lloh21:
	adrp	x9, _PCP_PMU_V3@GOTPAGE
Lloh22:
	ldr	x9, [x9, _PCP_PMU_V3@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
Lloh24:
	adrp	x10, _iob_pmu_attr_groups@GOTPAGE
Lloh25:
	ldr	x10, [x10, _iob_pmu_attr_groups@GOTPAGEOFF]
Lloh26:
	adrp	x11, _iob_fast_pmu_v3_attr_groups@GOTPAGE
Lloh27:
	ldr	x11, [x11, _iob_fast_pmu_v3_attr_groups@GOTPAGEOFF]
	b	LBB0_12
LBB0_9:
Lloh28:
	adrp	x8, _EINVAL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_17
LBB0_10:
	ldr	w8, [x21, #8]
	ldr	w9, [x20, #20]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.11:
	ldr	w8, [x21, #12]
Lloh30:
	adrp	x9, _PCP_PMU_V3@GOTPAGE
Lloh31:
	ldr	x9, [x9, _PCP_PMU_V3@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
Lloh33:
	adrp	x10, _mc_pmu_attr_groups@GOTPAGE
Lloh34:
	ldr	x10, [x10, _mc_pmu_attr_groups@GOTPAGEOFF]
Lloh35:
	adrp	x11, _mc_pmu_v3_attr_groups@GOTPAGE
Lloh36:
	ldr	x11, [x11, _mc_pmu_v3_attr_groups@GOTPAGEOFF]
LBB0_12:
	cmp	w8, w9
	csel	x8, x11, x10, eq
LBB0_13:
	ldr	w8, [x8]
	str	w8, [x0]
LBB0_14:
	ldr	w1, [x20]
	bl	_xgene_init_perf
	ldr	w2, [x20]
	cbz	x0, LBB0_19
; %bb.15:
Lloh37:
	adrp	x1, l_.str@PAGE
Lloh38:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_16:
Lloh39:
	adrp	x8, _ENODEV@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_18:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_19:
Lloh41:
	adrp	x1, l_.str.1@PAGE
Lloh42:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	w0, #0
	b	LBB0_18
LBB0_20:
	ldr	w8, [x21, #12]
Lloh43:
	adrp	x9, _PCP_PMU_V3@GOTPAGE
Lloh44:
	ldr	x9, [x9, _PCP_PMU_V3@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_14
; %bb.21:
Lloh46:
	adrp	x8, _iob_slow_pmu_v3_attr_groups@GOTPAGE
Lloh47:
	ldr	x8, [x8, _iob_slow_pmu_v3_attr_groups@GOTPAGEOFF]
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh46, Lloh47
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_20-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_PCP_PMU_V3,4,2                 ; @PCP_PMU_V3
	.comm	_l3c_pmu_v3_attr_groups,4,2     ; @l3c_pmu_v3_attr_groups
	.comm	_l3c_pmu_attr_groups,4,2        ; @l3c_pmu_attr_groups
	.comm	_iob_fast_pmu_v3_attr_groups,4,2 ; @iob_fast_pmu_v3_attr_groups
	.comm	_iob_pmu_attr_groups,4,2        ; @iob_pmu_attr_groups
	.comm	_iob_slow_pmu_v3_attr_groups,4,2 ; @iob_slow_pmu_v3_attr_groups
	.comm	_mcb_pmu_v3_attr_groups,4,2     ; @mcb_pmu_v3_attr_groups
	.comm	_mcb_pmu_attr_groups,4,2        ; @mcb_pmu_attr_groups
	.comm	_mc_pmu_v3_attr_groups,4,2      ; @mc_pmu_v3_attr_groups
	.comm	_mc_pmu_attr_groups,4,2         ; @mc_pmu_attr_groups
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s PMU: Failed to init perf driver\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s PMU registered\n"

	.no_dead_strip	_xgene_pmu_dev_add
.subsections_via_symbols
