	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_adb_unregister                 ## -- Begin function adb_unregister
	.p2align	4, 0x90
_adb_unregister:                        ## @adb_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	movq	_adb_handler_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	_adb_handler_lock@GOTPCREL(%rip), %rdi
	callq	_write_lock_irq
	movq	_adb_handler@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movslq	%r14d, %rbx
	shlq	$4, %rbx
	cmpq	$0, (%rax,%rbx)
	je	LBB0_5
## %bb.1:
	cmpq	$0, 8(%rax,%rbx)
	je	LBB0_4
## %bb.2:
	movq	_adb_handler_lock@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_write_unlock_irq
	xorl	%eax, %eax
	callq	_yield
	movq	%r14, %rdi
	callq	_write_lock_irq
	movq	(%r12), %rax
	cmpq	$0, 8(%rax,%rbx)
	jne	LBB0_3
LBB0_4:
	movq	$0, (%rax,%rbx)
	xorl	%r15d, %r15d
LBB0_5:
	movq	_adb_handler_lock@GOTPCREL(%rip), %rdi
	callq	_write_unlock_irq
	movq	_adb_handler_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_adb_handler_mutex,4,2          ## @adb_handler_mutex
	.comm	_adb_handler_lock,4,2           ## @adb_handler_lock
	.comm	_adb_handler,8,3                ## @adb_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_adb_unregister                 ; -- Begin function adb_unregister
	.p2align	2
_adb_unregister:                        ; @adb_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	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x0, _adb_handler_mutex@GOTPAGE
Lloh4:
	ldr	x0, [x0, _adb_handler_mutex@GOTPAGEOFF]
	bl	_mutex_lock
Lloh5:
	adrp	x0, _adb_handler_lock@GOTPAGE
Lloh6:
	ldr	x0, [x0, _adb_handler_lock@GOTPAGEOFF]
	bl	_write_lock_irq
Lloh7:
	adrp	x21, _adb_handler@GOTPAGE
Lloh8:
	ldr	x21, [x21, _adb_handler@GOTPAGEOFF]
	ldr	x8, [x21]
	sbfiz	x9, x19, #4, #32
	ldr	x9, [x8, x9]
	cbz	x9, LBB0_5
; %bb.1:
	sxtw	x20, w19
	add	x9, x8, x20, lsl #4
	ldr	x9, [x9, #8]
	cbz	x9, LBB0_4
; %bb.2:
Lloh9:
	adrp	x19, _adb_handler_lock@GOTPAGE
Lloh10:
	ldr	x19, [x19, _adb_handler_lock@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_write_unlock_irq
	bl	_yield
	mov	x0, x19
	bl	_write_lock_irq
	ldr	x8, [x21]
	add	x9, x8, x20, lsl #4
	ldr	x9, [x9, #8]
	cbnz	x9, LBB0_3
LBB0_4:
	mov	w19, #0
	lsl	x9, x20, #4
	str	xzr, [x8, x9]
	b	LBB0_6
LBB0_5:
	neg	w19, w20
LBB0_6:
Lloh11:
	adrp	x0, _adb_handler_lock@GOTPAGE
Lloh12:
	ldr	x0, [x0, _adb_handler_lock@GOTPAGEOFF]
	bl	_write_unlock_irq
Lloh13:
	adrp	x0, _adb_handler_mutex@GOTPAGE
Lloh14:
	ldr	x0, [x0, _adb_handler_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
	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
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_adb_handler_mutex,4,2          ; @adb_handler_mutex
	.comm	_adb_handler_lock,4,2           ; @adb_handler_lock
	.comm	_adb_handler,8,3                ; @adb_handler
.subsections_via_symbols
