	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_enclosure_unregister           ## -- Begin function enclosure_unregister
	.p2align	4, 0x90
_enclosure_unregister:                  ## @enclosure_unregister
	.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, %r15
	movq	_container_list_lock@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	leaq	24(%r15), %rdi
	callq	_list_del
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	movl	$4, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	movslq	%eax, %rcx
	addq	$8, %rbx
	cmpq	%rcx, %r14
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rdi
	cmpl	$-1, -4(%rdi,%rbx)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	%rbx, %rdi
	callq	_device_unregister
	movl	(%r15), %eax
	jmp	LBB0_4
LBB0_5:
	movq	_enclosure_null_callbacks@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r15)
	addq	$4, %r15
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_device_unregister              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_container_list_lock,4,2        ## @container_list_lock
	.comm	_enclosure_null_callbacks,4,2   ## @enclosure_null_callbacks
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_enclosure_unregister           ; -- Begin function enclosure_unregister
	.p2align	2
_enclosure_unregister:                  ; @enclosure_unregister
	.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	x19, x0
Lloh0:
	adrp	x20, _container_list_lock@GOTPAGE
Lloh1:
	ldr	x20, [x20, _container_list_lock@GOTPAGEOFF]
	mov	x0, x20
	bl	_mutex_lock
	add	x0, x19, #24
	bl	_list_del
	mov	x0, x20
	bl	_mutex_unlock
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x20, #0
	mov	x21, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	add	x20, x20, #8
	cmp	x21, w8, sxtw
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #16]
	ldr	w10, [x9, x20]
	cmn	w10, #1
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x9, x20
	add	x0, x8, #4
	bl	_device_unregister
	ldr	w8, [x19]
	b	LBB0_2
LBB0_5:
Lloh2:
	adrp	x8, _enclosure_null_callbacks@GOTPAGE
Lloh3:
	ldr	x8, [x8, _enclosure_null_callbacks@GOTPAGEOFF]
	str	x8, [x19, #8]
	add	x0, x19, #4
	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	_device_unregister
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_container_list_lock,4,2        ; @container_list_lock
	.comm	_enclosure_null_callbacks,4,2   ; @enclosure_null_callbacks
.subsections_via_symbols
