	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function catc_ctrl_done
_catc_ctrl_done:                        ## @catc_ctrl_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	16(%rdi), %rbx
	movl	(%rdi), %edx
	testl	%edx, %edx
	je	LBB0_2
## %bb.1:
	movq	8(%rdi), %rax
	movl	4(%rdi), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	callq	_dev_dbg
LBB0_2:
	leaq	16(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	32(%rbx), %rax
	movslq	(%rbx), %rcx
	shlq	$5, %rcx
	leaq	(%rax,%rcx), %r15
	cmpq	$0, 24(%rax,%rcx)
	je	LBB0_7
## %bb.3:
	movq	8(%rax,%rcx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.4:
	movq	16(%rax,%rcx), %rdx
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.5:
	movq	24(%rbx), %rsi
	callq	_memcpy
	jmp	LBB0_7
LBB0_6:
	addq	%rcx, %rax
	addq	$8, %rax
	movq	24(%rbx), %rcx
	movq	%rcx, (%rax)
LBB0_7:
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	*%rax
LBB0_9:
	movslq	(%rbx), %rax
	incq	%rax
	movq	_CTRL_QUEUE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	decq	%rcx
	andq	%rax, %rcx
	movl	%ecx, (%rbx)
	cmpq	%rcx, 8(%rbx)
	jne	LBB0_10
## %bb.11:
	movq	_CTRL_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$20, %rbx
	movq	%rbx, %rsi
	callq	_clear_bit
	jmp	LBB0_12
LBB0_10:
	movq	%rbx, %rdi
	callq	_catc_ctrl_run
LBB0_12:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ctrl_done, status %d, len %d.\n"

	.comm	_CTRL_QUEUE,4,2                 ## @CTRL_QUEUE
	.comm	_CTRL_RUNNING,4,2               ## @CTRL_RUNNING
	.no_dead_strip	_catc_ctrl_done
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function catc_ctrl_done
_catc_ctrl_done:                        ; @catc_ctrl_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
	ldr	x19, [x0, #16]
	ldr	w2, [x0]
	cbz	w2, LBB0_2
; %bb.1:
	ldr	x8, [x0, #8]
	ldr	w3, [x0, #4]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x8
	bl	_dev_dbg
LBB0_2:
	add	x20, x19, #16
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #32]
	ldrsw	x9, [x19]
	add	x21, x8, x9, lsl #5
	ldr	x10, [x21, #24]
	cbz	x10, LBB0_7
; %bb.3:
	mov	x10, x21
	ldr	x0, [x10, #8]!
	cbz	x0, LBB0_6
; %bb.4:
	add	x8, x8, x9, lsl #5
	ldr	x2, [x8, #16]
	cbz	x2, LBB0_6
; %bb.5:
	ldr	x1, [x19, #24]
	bl	_memcpy
	b	LBB0_7
LBB0_6:
	ldr	x8, [x19, #24]
	str	x8, [x10]
LBB0_7:
	ldr	x8, [x21]
	cbz	x8, LBB0_9
; %bb.8:
	mov	x0, x19
	mov	x1, x21
	blr	x8
LBB0_9:
	ldrsw	x8, [x19]
	add	x8, x8, #1
Lloh2:
	adrp	x9, _CTRL_QUEUE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _CTRL_QUEUE@GOTPAGEOFF]
Lloh4:
	ldrsw	x9, [x9]
	sub	x9, x9, #1
	and	x8, x9, x8
	str	w8, [x19]
	ldr	x9, [x19, #8]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
Lloh5:
	adrp	x8, _CTRL_RUNNING@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CTRL_RUNNING@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	add	x1, x19, #20
	bl	_clear_bit
	b	LBB0_12
LBB0_11:
	mov	x0, x19
	bl	_catc_ctrl_run
LBB0_12:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ctrl_done, status %d, len %d.\n"

	.comm	_CTRL_QUEUE,4,2                 ; @CTRL_QUEUE
	.comm	_CTRL_RUNNING,4,2               ; @CTRL_RUNNING
	.no_dead_strip	_catc_ctrl_done
.subsections_via_symbols
