	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tx2_uncore_probe
_tx2_uncore_probe:                      ## @tx2_uncore_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_ACPI_HANDLE
	movl	%eax, %edi
	callq	_acpi_get_node
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_set_dev_node
	movq	%rbx, %rdi
	callq	_has_acpi_companion
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	%rbx, %rdi
	callq	_ACPI_HANDLE
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	_ACPI_TYPE_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_tx2_uncore_pmu_add@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	$0, (%rsp)
	xorl	%r14d, %r14d
	movl	%eax, %esi
	movl	$1, %edx
	xorl	%r8d, %r8d
	movq	%rbx, %r9
	callq	_acpi_walk_namespace
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_err
	movl	%r15d, %edi
	callq	_return_ACPI_STATUS
LBB0_7:
	movq	%rbx, %rdi
	callq	_dev_to_node
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_dev_info
	jmp	LBB0_8
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ACPI_TYPE_DEVICE,4,2           ## @ACPI_TYPE_DEVICE
	.comm	_tx2_uncore_pmu_add,4,2         ## @tx2_uncore_pmu_add
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to probe PMU devices\n"

L_.str.1:                               ## @.str.1
	.asciz	"node%d: pmu uncore registered\n"

	.no_dead_strip	_tx2_uncore_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tx2_uncore_probe
_tx2_uncore_probe:                      ; @tx2_uncore_probe
	.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
	bl	_ACPI_HANDLE
	bl	_acpi_get_node
	mov	x1, x0
	mov	x0, x19
	bl	_set_dev_node
	mov	x0, x19
	bl	_has_acpi_companion
	cbz	w0, LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_ACPI_HANDLE
	cbz	w0, LBB0_6
; %bb.2:
	mov	x1, x0
Lloh0:
	adrp	x8, _ACPI_TYPE_DEVICE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ACPI_TYPE_DEVICE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _tx2_uncore_pmu_add@GOTPAGE
Lloh4:
	ldr	x8, [x8, _tx2_uncore_pmu_add@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	w2, #1
	mov	x4, #0
	mov	x5, x19
	mov	x6, #0
	bl	_acpi_walk_namespace
	mov	x20, x0
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_4
; %bb.3:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x20
	bl	_return_ACPI_STATUS
LBB0_4:
	mov	x0, x19
	bl	_dev_to_node
	mov	x2, x0
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	w0, #0
	b	LBB0_8
LBB0_5:
Lloh10:
	adrp	x8, _ENODEV@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ACPI_TYPE_DEVICE,4,2           ; @ACPI_TYPE_DEVICE
	.comm	_tx2_uncore_pmu_add,4,2         ; @tx2_uncore_pmu_add
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to probe PMU devices\n"

l_.str.1:                               ; @.str.1
	.asciz	"node%d: pmu uncore registered\n"

	.no_dead_strip	_tx2_uncore_probe
.subsections_via_symbols
