	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function catc_ctrl_async
_catc_ctrl_async:                       ## @catc_ctrl_async
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -48(%rbp)                  ## 8-byte Spill
	movq	%r8, %r12
	movq	%rcx, %r13
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	addq	$8, %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	movq	24(%rbx), %rax
	movslq	(%rbx), %rcx
	imulq	$56, %rcx, %rdx
	movq	%r15, 48(%rax,%rdx)
	movq	%r14, 40(%rax,%rdx)
	movq	%r13, 32(%rax,%rdx)
	movq	%r12, 24(%rax,%rdx)
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%rsi, 16(%rax,%rdx)
	movl	16(%rbp), %esi
	movl	%esi, (%rax,%rdx)
	movq	24(%rbp), %rsi
	movq	%rsi, 8(%rax,%rdx)
	leal	1(%rcx), %eax
	movq	_CTRL_QUEUE@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	decl	%ecx
	andl	%eax, %ecx
	movl	%ecx, (%rbx)
	xorl	%r15d, %r15d
	cmpl	4(%rbx), %ecx
	jne	LBB0_2
## %bb.1:
	movq	16(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movl	4(%rbx), %eax
	incl	%eax
	movl	(%r14), %ecx
	decl	%ecx
	andl	%eax, %ecx
	movl	%ecx, 4(%rbx)
	movl	$-1, %r15d
LBB0_2:
	movq	_CTRL_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	12(%rbx), %rsi
	callq	_test_and_set_bit
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_catc_ctrl_run
LBB0_4:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CTRL_QUEUE,4,2                 ## @CTRL_QUEUE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ctrl queue full\n"

	.comm	_CTRL_RUNNING,4,2               ## @CTRL_RUNNING
	.no_dead_strip	_catc_ctrl_async
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function catc_ctrl_async
_catc_ctrl_async:                       ; @catc_ctrl_async
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x7
	mov	x22, x6
	mov	x23, x5
	mov	x24, x4
	mov	x25, x3
	mov	x26, x2
	mov	x27, x1
	mov	x20, x0
	add	x19, x0, #8
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x20, #24]
	mov	w9, #56
	ldp	w10, w11, [x20]
                                        ; kill: def $w10 killed $w10 def $x10
	sxtw	x10, w10
	madd	x8, x10, x9, x8
	stp	x26, x27, [x8, #40]
	stp	x24, x25, [x8, #24]
	str	w22, [x8]
	stp	x21, x23, [x8, #8]
Lloh0:
	adrp	x21, _CTRL_QUEUE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _CTRL_QUEUE@GOTPAGEOFF]
	add	w8, w10, #1
	ldr	w9, [x21]
	sub	w9, w9, #1
	and	w8, w9, w8
	str	w8, [x20]
	cmp	w8, w11
	b.ne	LBB0_2
; %bb.1:
	ldr	x0, [x20, #16]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	ldr	w8, [x20, #4]
	add	w8, w8, #1
	ldr	w9, [x21]
	sub	w9, w9, #1
	and	w8, w9, w8
	str	w8, [x20, #4]
	mov	w21, #-1
	b	LBB0_3
LBB0_2:
	mov	w21, #0
LBB0_3:
Lloh4:
	adrp	x8, _CTRL_RUNNING@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CTRL_RUNNING@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	add	x1, x20, #12
	bl	_test_and_set_bit
	cbnz	w0, LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_catc_ctrl_run
LBB0_5:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_CTRL_QUEUE,4,2                 ; @CTRL_QUEUE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ctrl queue full\n"

	.comm	_CTRL_RUNNING,4,2               ; @CTRL_RUNNING
	.no_dead_strip	_catc_ctrl_async
.subsections_via_symbols
