	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adb_write_done
_adb_write_done:                        ## @adb_write_done
	.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	%rdi, %rbx
	movq	48(%rdi), %r15
	cmpl	$0, (%rdi)
	jne	LBB0_2
## %bb.1:
	movq	$0, 40(%rbx)
	movl	$1, (%rbx)
LBB0_2:
	leaq	4(%r15), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	leaq	32(%r15), %r12
	movq	%r12, %rdi
	callq	_atomic_dec
	cmpl	$0, 36(%r15)
	je	LBB0_3
## %bb.5:
	leaq	24(%r15), %rcx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %rax
	movq	(%rcx), %rdx
	leaq	16(%rdx), %rcx
	testq	%rdx, %rdx
	jne	LBB0_6
## %bb.7:
	movq	$0, 16(%rbx)
	movq	%rbx, (%rax)
	addq	$8, %r15
	movq	%r15, %rdi
	callq	_wake_up_interruptible
	jmp	LBB0_8
LBB0_3:
	movq	%rbx, %rdi
	callq	_kfree
	movq	%r12, %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_4
LBB0_8:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
LBB0_4:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_adb_write_done
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adb_write_done
_adb_write_done:                        ; @adb_write_done
	.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, x0
	ldr	x19, [x0, #48]
	ldr	w8, [x0]
	cbnz	w8, LBB0_2
; %bb.1:
	str	xzr, [x21, #40]
	mov	w8, #1
	str	w8, [x21]
LBB0_2:
	add	x20, x19, #4
	mov	x0, x20
	bl	_spin_lock_irqsave
	add	x22, x19, #32
	mov	x0, x22
	bl	_atomic_dec
	ldr	w8, [x19, #36]
	cbz	w8, LBB0_6
; %bb.3:
	add	x9, x19, #24
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x8, x9
	ldr	x10, [x9]
	add	x9, x10, #16
	cbnz	x10, LBB0_4
; %bb.5:
	str	xzr, [x21, #16]
	str	x21, [x8]
	add	x0, x19, #8
	bl	_wake_up_interruptible
	b	LBB0_7
LBB0_6:
	mov	x0, x21
	bl	_kfree
	mov	x0, x22
	bl	_atomic_read
	cbz	x0, LBB0_8
LBB0_7:
	mov	x0, x20
	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_irqrestore
LBB0_8:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	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	_kfree
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_adb_write_done
.subsections_via_symbols
