	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_th_gth_unassign
_intel_th_gth_unassign:                 ## @intel_th_gth_unassign
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	addq	$16, %rdi
	callq	_dev_get_drvdata
	cmpq	$0, 8(%rbx)
	je	LBB0_1
## %bb.7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rax, %r12
	movslq	(%r15), %rbx
	movq	%rax, %r14
	addq	$8, %r14
	movq	%r14, %rdi
	callq	_spin_lock
	movl	$4294967295, %eax               ## imm = 0xFFFFFFFF
	movq	%rax, (%r15)
	movq	16(%r12), %rax
	movq	$0, (%rax,%rbx,8)
	movq	_TH_CONFIGURABLE_MASTERS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	js	LBB0_6
## %bb.2:
	movq	(%r12), %rdx
	movq	$-1, %rsi
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movslq	%ecx, %rdi
	incq	%rsi
	cmpq	%rdi, %rsi
	jge	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%ebx, 4(%rdx,%rsi,4)
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$-1, 4(%rdx,%rsi,4)
	movl	(%rax), %ecx
	jmp	LBB0_5
LBB0_6:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TH_CONFIGURABLE_MASTERS,4,2    ## @TH_CONFIGURABLE_MASTERS
	.no_dead_strip	_intel_th_gth_unassign
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_th_gth_unassign
_intel_th_gth_unassign:                 ; @intel_th_gth_unassign
	.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	x21, x1
	mov	x19, x0
	add	x0, x0, #16
	bl	_dev_get_drvdata
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_2
; %bb.1:
	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_2:
	mov	x20, x0
	ldrsw	x22, [x21]
	add	x19, x0, #8
	mov	x0, x19
	bl	_spin_lock
	movi	d0, #0x000000ffffffff
	str	d0, [x21]
	ldr	x8, [x20, #16]
	str	xzr, [x8, x22, lsl #3]
Lloh0:
	adrp	x8, _TH_CONFIGURABLE_MASTERS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TH_CONFIGURABLE_MASTERS@GOTPAGEOFF]
	ldr	w9, [x8]
	tbnz	w9, #31, LBB0_7
; %bb.3:
	mov	x11, #0
	ldr	x10, [x20]
	mov	w12, #-1
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	x11, w9, sxtw
	add	x11, x11, #1
	b.ge	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x10, x11, lsl #2]
	cmp	w13, w22
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	str	w12, [x10, x11, lsl #2]
	ldr	w9, [x8]
	b	LBB0_4
LBB0_7:
	mov	x0, x19
	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
	b	_spin_unlock
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_TH_CONFIGURABLE_MASTERS,4,2    ; @TH_CONFIGURABLE_MASTERS
	.no_dead_strip	_intel_th_gth_unassign
.subsections_via_symbols
