	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_th_probe
_intel_th_probe:                        ## @intel_th_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	callq	_to_intel_th_driver
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_to_intel_th_device
	movq	%rax, %r15
	movq	(%rax), %rax
	movq	_INTEL_TH_SWITCH@GOTPCREL(%rip), %rcx
	movq	%r15, %r12
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.1:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.2:
	callq	_to_intel_th_device
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_4
LBB0_3:
	movl	12(%r12), %edi
	testl	%edi, %edi
	je	LBB0_4
## %bb.5:
	callq	_to_intel_th_driver
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_pm_runtime_set_active
	movq	%rbx, %rdi
	callq	_pm_runtime_no_callbacks
	movq	%rbx, %rdi
	callq	_pm_runtime_enable
	movq	(%r13), %r14
	movq	%rbx, %rdi
	callq	_to_intel_th_device
	movq	%rax, %rdi
	callq	*%r14
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_12
## %bb.6:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	24(%r13), %rsi
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.7:
	movq	%r15, %rdi
	addq	$8, %rdi
	callq	_sysfs_create_group
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_8
LBB0_11:
	movq	%r15, %rdi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	callq	*16(%rax)
LBB0_12:
	movq	%rbx, %rdi
	callq	_pm_runtime_disable
	movl	%r14d, %r13d
	jmp	LBB0_13
LBB0_4:
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_13:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	(%r15), %rax
	movq	_INTEL_TH_OUTPUT@GOTPCREL(%rip), %rcx
	xorl	%r13d, %r13d
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.9:
	movq	%r15, %rdi
	callq	_intel_th_output_assigned
	testl	%eax, %eax
	jne	LBB0_13
## %bb.10:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	callq	*8(%rax)
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_11
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_INTEL_TH_SWITCH,8,3            ## @INTEL_TH_SWITCH
	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
	.comm	_INTEL_TH_OUTPUT,8,3            ## @INTEL_TH_OUTPUT
	.no_dead_strip	_intel_th_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_th_probe
_intel_th_probe:                        ; @intel_th_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	x19, x0
	ldr	w0, [x0, #8]
	bl	_to_intel_th_driver
	mov	x20, x0
	mov	x0, x19
	bl	_to_intel_th_device
	mov	x21, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _INTEL_TH_SWITCH@GOTPAGE
Lloh1:
	ldr	x9, [x9, _INTEL_TH_SWITCH@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	mov	x22, x0
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.1:
	ldr	x0, [x19]
	cbz	x0, LBB0_9
; %bb.2:
	bl	_to_intel_th_device
	mov	x22, x0
	cbz	x0, LBB0_9
LBB0_3:
	ldr	w0, [x22, #12]
	cbz	w0, LBB0_9
; %bb.4:
	bl	_to_intel_th_driver
	mov	x23, x0
	mov	x0, x19
	bl	_pm_runtime_set_active
	mov	x0, x19
	bl	_pm_runtime_no_callbacks
	mov	x0, x19
	bl	_pm_runtime_enable
	ldr	x24, [x20]
	mov	x0, x19
	bl	_to_intel_th_device
	blr	x24
	mov	x24, x0
	cbnz	w0, LBB0_8
; %bb.5:
	ldr	x1, [x20, #24]
	cbz	x1, LBB0_11
; %bb.6:
	add	x0, x21, #8
	bl	_sysfs_create_group
	mov	x24, x0
	cbz	w0, LBB0_11
LBB0_7:
	ldr	x8, [x20, #16]
	mov	x0, x21
	blr	x8
LBB0_8:
	mov	x0, x19
	bl	_pm_runtime_disable
	b	LBB0_10
LBB0_9:
Lloh3:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_10:
	mov	x0, x24
	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
LBB0_11:
	ldr	x8, [x21]
Lloh6:
	adrp	x9, _INTEL_TH_OUTPUT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _INTEL_TH_OUTPUT@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.12:
	mov	x0, x21
	bl	_intel_th_output_assigned
	cbz	w0, LBB0_14
LBB0_13:
	mov	w24, #0
	b	LBB0_10
LBB0_14:
	ldr	x8, [x23, #8]
	mov	x0, x22
	mov	x1, x21
	blr	x8
	mov	x24, x0
	cbnz	w0, LBB0_7
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_INTEL_TH_SWITCH,8,3            ; @INTEL_TH_SWITCH
	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
	.comm	_INTEL_TH_OUTPUT,8,3            ; @INTEL_TH_OUTPUT
	.no_dead_strip	_intel_th_probe
.subsections_via_symbols
