	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_arm_pmu_device_probe           ## -- Begin function arm_pmu_device_probe
	.p2align	4, 0x90
_arm_pmu_device_probe:                  ## @arm_pmu_device_probe
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_armpmu_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%r13, 8(%rax)
	movq	%rax, %rdi
	callq	_pmu_parse_irqs
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.3:
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_9
## %bb.4:
	movq	(%r13), %rsi
	movq	%r14, %rdi
	callq	_of_match_node
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movq	(%rax), %rbx
	movq	(%r13), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_of_property_read_bool
	movl	%eax, (%r15)
	movq	_CONFIG_ARM64@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	cmpl	$0, (%r15)
	je	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_warn
	movl	$0, (%r15)
LBB0_8:
	movq	%r15, %rdi
	callq	*%rbx
	jmp	LBB0_11
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_18
LBB0_9:
	testq	%r12, %r12
	je	LBB0_13
## %bb.10:
	movq	%r15, %rdi
	addq	$4, %rdi
	callq	_cpumask_setall
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_probe_current_pmu
LBB0_11:
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	leaq	L_.str.2(%rip), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_pr_info
	jmp	LBB0_17
LBB0_13:
	movq	%r15, %rdi
	callq	_armpmu_request_irqs
	testl	%eax, %eax
	je	LBB0_14
## %bb.16:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_armpmu_free_irqs
	jmp	LBB0_17
LBB0_14:
	movq	%r15, %rdi
	callq	_armpmu_register
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_15
LBB0_17:
	leaq	L_.str.3(%rip), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_pr_info
	movq	%r15, %rdi
	callq	_armpmu_free
LBB0_18:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	xorl	%ebx, %ebx
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"secure-reg-access"

	.comm	_CONFIG_ARM64,4,2               ## @CONFIG_ARM64
L_.str.1:                               ## @.str.1
	.asciz	"ignoring \"secure-reg-access\" property for arm64\n"

L_.str.2:                               ## @.str.2
	.asciz	"%pOF: failed to probe PMU!\n"

L_.str.3:                               ## @.str.3
	.asciz	"%pOF: failed to register PMU devices!\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_arm_pmu_device_probe           ; -- Begin function arm_pmu_device_probe
	.p2align	2
_arm_pmu_device_probe:                  ; @arm_pmu_device_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x2
	mov	x24, x1
	mov	x23, x0
	ldr	x19, [x0]
	bl	_armpmu_alloc
	cbz	x0, LBB0_8
; %bb.1:
	mov	x20, x0
	str	x23, [x0, #8]
	bl	_pmu_parse_irqs
	mov	x21, x0
	cbnz	w0, LBB0_15
; %bb.2:
	cbz	x19, LBB0_9
; %bb.3:
	ldr	x1, [x23]
	mov	x0, x24
	bl	_of_match_node
	cbz	x0, LBB0_9
; %bb.4:
	ldr	x21, [x0]
	ldr	x0, [x23]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_of_property_read_bool
	str	w0, [x20]
Lloh2:
	adrp	x8, _CONFIG_ARM64@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CONFIG_ARM64@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_IS_ENABLED
	cbz	x0, LBB0_7
; %bb.5:
	ldr	w8, [x20]
	cbz	w8, LBB0_7
; %bb.6:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_warn
	str	wzr, [x20]
LBB0_7:
	mov	x0, x20
	blr	x21
	mov	x21, x0
	cbnz	w0, LBB0_11
	b	LBB0_12
LBB0_8:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_16
LBB0_9:
	cbz	x22, LBB0_12
; %bb.10:
	add	x0, x20, #4
	bl	_cpumask_setall
	mov	x0, x20
	mov	x1, x22
	bl	_probe_current_pmu
	mov	x21, x0
	cbz	w0, LBB0_12
LBB0_11:
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_pr_info
	b	LBB0_15
LBB0_12:
	mov	x0, x20
	bl	_armpmu_request_irqs
	cbz	w0, LBB0_14
; %bb.13:
	mov	x21, x0
	mov	x0, x20
	bl	_armpmu_free_irqs
	b	LBB0_15
LBB0_14:
	mov	x0, x20
	bl	_armpmu_register
	mov	x21, x0
	cbz	w0, LBB0_16
LBB0_15:
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x19
	bl	_pr_info
	mov	x0, x20
	bl	_armpmu_free
LBB0_16:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"secure-reg-access"

	.comm	_CONFIG_ARM64,4,2               ; @CONFIG_ARM64
l_.str.1:                               ; @.str.1
	.asciz	"ignoring \"secure-reg-access\" property for arm64\n"

l_.str.2:                               ; @.str.2
	.asciz	"%pOF: failed to probe PMU!\n"

l_.str.3:                               ; @.str.3
	.asciz	"%pOF: failed to register PMU devices!\n"

.subsections_via_symbols
