	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cleanup_cs
_cleanup_cs:                            ## @cleanup_cs
	.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
	leaq	40(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_M_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 128(%r15)
	movq	_MS_UNINITIALIZED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 124(%r15)
	leaq	120(%r15), %rbx
	movq	%rbx, %rdi
	callq	_clear_at_state
	movq	%r15, %rdi
	callq	_dealloc_at_states
	movq	%rbx, %rdi
	callq	_free_strings
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	callq	_gigaset_at_init
	movq	112(%r15), %rax
	movq	24(%rax), %rdi
	callq	_kfree
	movq	112(%r15), %rax
	movq	$0, 24(%rax)
	movq	_INS_command@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rax)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
	movq	104(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdi), %rbx
	callq	_kfree
	movq	%rbx, %rdi
	testq	%rbx, %rbx
	jne	LBB0_1
LBB0_2:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 96(%r15)
	movups	%xmm0, 80(%r15)
	movl	$-1, (%r15)
	movups	%xmm0, 48(%r15)
	movups	%xmm0, 64(%r15)
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	cmpl	$0, 4(%r15)
	jle	LBB0_7
## %bb.3:
	xorl	%ebx, %ebx
	leaq	L_.str(%rip), %r14
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movslq	4(%r15), %rax
	cmpq	%rax, %rbx
	jge	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r15), %rdi
	addq	%rbx, %rdi
	callq	_gigaset_freebcs
	movq	32(%r15), %rdi
	addq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_gigaset_initbcs
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_pr_err
	jmp	LBB0_6
LBB0_7:
	cmpq	$0, 16(%r15)
	je	LBB0_8
## %bb.9:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, 24(%r15)
	movq	$0, 16(%r15)
	addq	$8, %r15
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wake_up_interruptible          ## TAILCALL
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M_UNKNOWN,4,2                  ## @M_UNKNOWN
	.comm	_MS_UNINITIALIZED,4,2           ## @MS_UNINITIALIZED
	.comm	_INS_command,4,2                ## @INS_command
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not allocate channel %d data\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_cleanup_cs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cleanup_cs
_cleanup_cs:                            ; @cleanup_cs
	.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
	add	x20, x0, #40
	mov	x0, x20
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x8, _M_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _M_UNKNOWN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MS_UNINITIALIZED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MS_UNINITIALIZED@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #124]
	add	x21, x19, #120
	mov	x0, x21
	bl	_clear_at_state
	mov	x0, x19
	bl	_dealloc_at_states
	mov	x0, x21
	bl	_free_strings
	mov	x0, x21
	mov	x1, #0
	mov	x2, x19
	mov	w3, #0
	bl	_gigaset_at_init
	ldr	x8, [x19, #112]
	ldr	x0, [x8, #24]
	bl	_kfree
	ldr	x8, [x19, #112]
Lloh6:
	adrp	x9, _INS_command@GOTPAGE
Lloh7:
	ldr	x9, [x9, _INS_command@GOTPAGEOFF]
	str	xzr, [x8, #24]
Lloh8:
	ldr	w9, [x9]
	str	w9, [x8, #16]
	stp	xzr, xzr, [x8]
	ldr	x0, [x19, #104]
	cbz	x0, LBB0_2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x21, [x0]
	bl	_kfree
	mov	x0, x21
	cbnz	x21, LBB0_1
LBB0_2:
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x19, #80]
	mov	w8, #-1
	str	w8, [x19]
	stp	q0, q0, [x19, #48]
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.3:
	mov	x20, #0
Lloh9:
	adrp	x21, l_.str@PAGE
Lloh10:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [x19, #4]
	cmp	x20, x8
	b.ge	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	add	x0, x20, x8
	bl	_gigaset_freebcs
	ldr	x8, [x19, #32]
	add	x0, x20, x8
	mov	x1, x19
	mov	x2, x20
	bl	_gigaset_initbcs
	cbnz	w0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	mov	x1, x20
	bl	_pr_err
	b	LBB0_4
LBB0_7:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_9
; %bb.8:
Lloh11:
	adrp	x8, _ENODEV@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [x19, #24]
	str	xzr, [x19, #16]
	add	x0, x19, #8
	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	_wake_up_interruptible
LBB0_9:
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_M_UNKNOWN,4,2                  ; @M_UNKNOWN
	.comm	_MS_UNINITIALIZED,4,2           ; @MS_UNINITIALIZED
	.comm	_INS_command,4,2                ; @INS_command
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not allocate channel %d data\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_cleanup_cs
.subsections_via_symbols
