	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function table_clear
_table_clear:                           ## @table_clear
	.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	%rsi, %r15
	movq	__hash_lock@GOTPCREL(%rip), %rdi
	callq	_down_write
	movq	%r15, %rdi
	callq	___find_device_hash_cell
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	8(%rax), %r14
	testq	%r14, %r14
	je	LBB0_4
## %bb.3:
	movq	$0, 8(%rbx)
LBB0_4:
	movq	_DM_INACTIVE_PRESENT_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r15)
	movq	(%rbx), %rdi
	movq	%r15, %rsi
	callq	___dev_status
	movq	(%rbx), %rbx
	movq	__hash_lock@GOTPCREL(%rip), %rdi
	callq	_up_write
	testq	%r14, %r14
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_dm_sync_table
	movq	%r14, %rdi
	callq	_dm_table_destroy
LBB0_6:
	movq	%rbx, %rdi
	callq	_dm_put
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_DMDEBUG_LIMIT
	movq	__hash_lock@GOTPCREL(%rip), %rdi
	callq	_up_write
	movq	_ENXIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__hash_lock,4,2                 ## @_hash_lock
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"device doesn't appear to be in the dev hash table."

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_DM_INACTIVE_PRESENT_FLAG,4,2   ## @DM_INACTIVE_PRESENT_FLAG
	.no_dead_strip	_table_clear
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function table_clear
_table_clear:                           ; @table_clear
	.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	x20, x1
Lloh0:
	adrp	x0, __hash_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, __hash_lock@GOTPAGEOFF]
	bl	_down_write
	mov	x0, x20
	bl	___find_device_hash_cell
	cbz	x0, LBB0_6
; %bb.1:
	mov	x21, x0
	ldr	x19, [x0, #8]
	cbz	x19, LBB0_3
; %bb.2:
	str	xzr, [x21, #8]
LBB0_3:
Lloh2:
	adrp	x8, _DM_INACTIVE_PRESENT_FLAG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DM_INACTIVE_PRESENT_FLAG@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x20]
	bic	w8, w9, w8
	str	w8, [x20]
	ldr	x0, [x21]
	mov	x1, x20
	bl	___dev_status
	ldr	x20, [x21]
Lloh5:
	adrp	x0, __hash_lock@GOTPAGE
Lloh6:
	ldr	x0, [x0, __hash_lock@GOTPAGEOFF]
	bl	_up_write
	cbz	x19, LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_dm_sync_table
	mov	x0, x19
	bl	_dm_table_destroy
LBB0_5:
	mov	x0, x20
	bl	_dm_put
	mov	w0, #0
	b	LBB0_7
LBB0_6:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DMDEBUG_LIMIT
Lloh9:
	adrp	x0, __hash_lock@GOTPAGE
Lloh10:
	ldr	x0, [x0, __hash_lock@GOTPAGEOFF]
	bl	_up_write
Lloh11:
	adrp	x8, _ENXIO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	__hash_lock,4,2                 ; @_hash_lock
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"device doesn't appear to be in the dev hash table."

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_DM_INACTIVE_PRESENT_FLAG,4,2   ; @DM_INACTIVE_PRESENT_FLAG
	.no_dead_strip	_table_clear
.subsections_via_symbols
