	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_th_free                  ## -- Begin function intel_th_free
	.p2align	4, 0x90
_intel_th_free:                         ## @intel_th_free
	.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, %r14
	callq	_intel_th_request_hub_module_flush
	movq	24(%r14), %rdi
	callq	_intel_th_device_remove
	movl	(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	$0, (%rcx,%rbx,8)
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %rcx
	movq	(%rcx,%rbx,8), %rdi
	cmpq	24(%r14), %rdi
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_intel_th_device_remove
	movq	16(%r14), %rcx
	movl	(%r14), %eax
	jmp	LBB0_4
LBB0_5:
	movl	$0, (%r14)
	movl	12(%r14), %edi
	callq	_pm_runtime_get_sync
	movl	12(%r14), %edi
	callq	_pm_runtime_forbid
	movl	8(%r14), %edi
	movq	_TH_POSSIBLE_OUTPUTS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	xorl	%esi, %esi
	callq	___unregister_chrdev
	movl	4(%r14), %esi
	movq	_intel_th_ida@GOTPCREL(%rip), %rdi
	callq	_ida_simple_remove
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TH_POSSIBLE_OUTPUTS,4,2        ## @TH_POSSIBLE_OUTPUTS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"intel_th/output"

	.comm	_intel_th_ida,4,2               ## @intel_th_ida
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_th_free                  ; -- Begin function intel_th_free
	.p2align	2
_intel_th_free:                         ; @intel_th_free
	.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	_intel_th_request_hub_module_flush
	ldr	x0, [x19, #24]
	bl	_intel_th_device_remove
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x20, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	str	xzr, [x9, x20, lsl #3]
	add	x20, x20, #1
	cmp	x20, w8, sxtw
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x9, x10, [x19, #16]
	ldr	x0, [x9, x20, lsl #3]
	cmp	x0, x10
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_intel_th_device_remove
	ldr	x9, [x19, #16]
	ldr	w8, [x19]
	b	LBB0_2
LBB0_5:
	str	wzr, [x19]
	ldr	w0, [x19, #12]
	bl	_pm_runtime_get_sync
	ldr	w0, [x19, #12]
	bl	_pm_runtime_forbid
	ldr	w0, [x19, #8]
Lloh0:
	adrp	x8, _TH_POSSIBLE_OUTPUTS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TH_POSSIBLE_OUTPUTS@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	mov	w1, #0
	bl	___unregister_chrdev
	ldr	w1, [x19, #4]
Lloh5:
	adrp	x0, _intel_th_ida@GOTPAGE
Lloh6:
	ldr	x0, [x0, _intel_th_ida@GOTPAGEOFF]
	bl	_ida_simple_remove
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_kfree
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TH_POSSIBLE_OUTPUTS,4,2        ; @TH_POSSIBLE_OUTPUTS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"intel_th/output"

	.comm	_intel_th_ida,4,2               ; @intel_th_ida
.subsections_via_symbols
