	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function clean_adapter
_clean_adapter:                         ## @clean_adapter
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	_adapter@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%edi, %r14
	leaq	(%r14,%r14,2), %rdx
	leaq	(%rax,%rdx,8), %rbx
	movq	_li_total_channels@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%rax,%rdx,8), %ecx
	subl	%ecx, %esi
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movl	%edi, -52(%rbp)                 ## 4-byte Spill
	jne	LBB0_3
## %bb.1:
	movq	%rbx, %rdx
	movl	%esi, %ebx
	movq	_li_config_table@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.2:
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%rdx, %r15
	callq	_list_add
	movq	%r15, %rdx
	movq	$0, (%r12)
	jmp	LBB0_7
LBB0_3:
	movslq	4(%rax,%rdx,8), %rax
	cmpl	%eax, %esi
	movq	%rbx, %rdx
	movl	%esi, %ebx
	jle	LBB0_7
## %bb.4:
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	_li_config_table@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rax, %rdi
	shlq	$4, %rdi
	addq	%rdx, %rdi
	addl	%eax, %ecx
	movslq	%ecx, %rsi
	shlq	$4, %rsi
	addq	%rdx, %rsi
	movl	%ebx, %edx
	subl	%eax, %edx
	shll	$2, %edx
	callq	_memmove
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	testl	%ebx, %ebx
	jle	LBB0_7
## %bb.5:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx,8), %r12
	addq	$4, %r12
	movl	%ebx, %eax
	shlq	$4, %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	_li_config_table@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	8(%rax,%r13), %rax
	movslq	(%r12), %rdi
	movslq	(%rdx), %rsi
	addq	%rdi, %rsi
	movl	%ebx, %edx
	subl	%edi, %edx
	shlq	$4, %rdi
	addq	%rax, %rdi
	shlq	$4, %rsi
	addq	%rax, %rsi
	callq	_memmove
	movq	(%r15), %rax
	movq	(%rax,%r13), %rax
	movslq	(%r12), %rdi
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movslq	(%rcx), %rsi
	addq	%rdi, %rsi
	movl	%ebx, %edx
	subl	%edi, %edx
	shlq	$4, %rdi
	addq	%rax, %rdi
	shlq	$4, %rsi
	addq	%rax, %rsi
	callq	_memmove
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	addq	$16, %r13
	cmpq	%r13, -88(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_6
LBB0_7:
	movq	_li_total_channels@GOTPCREL(%rip), %rax
	movl	%ebx, (%rax)
	movq	_max_adapter@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	cmpl	-52(%rbp), %eax                 ## 4-byte Folded Reload
	movq	_adapter@GOTPCREL(%rip), %r12
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	%rdx, %rbx
	jle	LBB0_12
## %bb.8:
	movq	(%r12), %rcx
	leaq	(%rcx,%rsi,8), %rcx
	addq	$4, %rcx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%r14
	movslq	%eax, %rdx
	addq	$24, %rcx
	cmpq	%rdx, %r14
	jge	LBB0_12
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, 4(%rcx)
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	(%rbx), %eax
	subl	%eax, (%rcx)
	movl	(%r15), %eax
	jmp	LBB0_11
LBB0_12:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax,%rsi,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.13:
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_list_add
LBB0_14:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movslq	(%r15), %rcx
	testq	%rcx, %rcx
	je	LBB0_18
## %bb.15:
	movq	(%r12), %rdx
	leal	-1(%rcx), %eax
	leaq	(%rcx,%rcx,2), %rcx
	leaq	(%rdx,%rcx,8), %rcx
	addq	$-16, %rcx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rcx)
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	%eax, (%r15)
	addq	$-24, %rcx
	addl	$-1, %eax
	jb	LBB0_16
LBB0_18:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_adapter,8,3                    ## @adapter
	.comm	_li_total_channels,4,2          ## @li_total_channels
	.comm	_li_config_table,8,3            ## @li_config_table
	.comm	_max_adapter,4,2                ## @max_adapter
	.no_dead_strip	_clean_adapter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function clean_adapter
_clean_adapter:                         ; @clean_adapter
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	str	x1, [sp, #8]                    ; 8-byte Folded Spill
	mov	x21, x0
Lloh0:
	adrp	x8, _adapter@GOTPAGE
Lloh1:
	ldr	x8, [x8, _adapter@GOTPAGEOFF]
Lloh2:
	ldr	x23, [x8]
	sxtw	x24, w21
	mov	w8, #24
	smaddl	x19, w0, w8, x23
Lloh3:
	adrp	x25, _li_total_channels@GOTPAGE
Lloh4:
	ldr	x25, [x25, _li_total_channels@GOTPAGEOFF]
	ldr	w9, [x25]
	ldr	w8, [x19]
	subs	w26, w9, w8
	b.ne	LBB0_3
; %bb.1:
Lloh5:
	adrp	x20, _li_config_table@GOTPAGE
Lloh6:
	ldr	x20, [x20, _li_config_table@GOTPAGEOFF]
	ldr	x0, [x20]
	cbz	x0, LBB0_7
; %bb.2:
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	bl	_list_add
	str	xzr, [x20]
	b	LBB0_7
LBB0_3:
	mov	w9, #24
	madd	x27, x24, x9, x23
	ldrsw	x9, [x27, #4]!
	cmp	w26, w9
	b.le	LBB0_7
; %bb.4:
Lloh7:
	adrp	x28, _li_config_table@GOTPAGE
Lloh8:
	ldr	x28, [x28, _li_config_table@GOTPAGEOFF]
	ldr	x10, [x28]
	add	x0, x10, x9, lsl #4
	add	w8, w9, w8
	add	x1, x10, w8, sxtw #4
	sub	w8, w26, w9
	lsl	w2, w8, #2
	bl	_memmove
	cmp	w26, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x22, #0
	lsl	x20, x26, #4
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x28]
	add	x8, x8, x22
	ldr	x8, [x8, #8]
	ldrsw	x9, [x27]
	add	x0, x8, x9, lsl #4
	ldr	w10, [x19]
	add	w10, w10, w9
	add	x1, x8, w10, sxtw #4
	sub	w2, w26, w9
	bl	_memmove
	ldr	x8, [x28]
	ldr	x8, [x8, x22]
	ldrsw	x9, [x27]
	add	x0, x8, x9, lsl #4
	ldr	w10, [x19]
	add	w10, w10, w9
	add	x1, x8, w10, sxtw #4
	sub	w2, w26, w9
	bl	_memmove
	add	x22, x22, #16
	cmp	x20, x22
	b.ne	LBB0_6
LBB0_7:
	str	w26, [x25]
Lloh9:
	adrp	x25, _max_adapter@GOTPAGE
Lloh10:
	ldr	x25, [x25, _max_adapter@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, w21
Lloh11:
	adrp	x20, _adapter@GOTPAGE
Lloh12:
	ldr	x20, [x20, _adapter@GOTPAGEOFF]
	b.le	LBB0_12
; %bb.8:
	ldr	x9, [x20]
	mov	w10, #24
	madd	x9, x24, x10, x9
	add	x9, x9, #4
	mov	x10, x24
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x10, x10, #1
	add	x9, x9, #24
	cmp	x10, w8, sxtw
	b.ge	LBB0_12
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldur	x11, [x9, #4]
	cbz	x11, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [x19]
	ldr	w11, [x9]
	sub	w8, w11, w8
	str	w8, [x9]
	ldr	w8, [x25]
	b	LBB0_9
LBB0_12:
	mov	w8, #24
	mul	x8, x24, x8
	add	x8, x23, x8
	ldr	x0, [x8, #16]
	cbz	x0, LBB0_14
; %bb.13:
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	bl	_list_add
LBB0_14:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	ldrsw	x9, [x25]
	cbz	w9, LBB0_18
; %bb.15:
	ldr	x10, [x20]
	sub	w8, w9, #1
	mov	w11, #24
	madd	x9, x9, x11, x10
	sub	x9, x9, #16
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9]
	cbnz	x10, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	str	w8, [x25]
	sub	w8, w8, #1
	sub	x9, x9, #24
	cmn	w8, #1
	b.ne	LBB0_16
LBB0_18:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_adapter,8,3                    ; @adapter
	.comm	_li_total_channels,4,2          ; @li_total_channels
	.comm	_li_config_table,8,3            ; @li_config_table
	.comm	_max_adapter,4,2                ; @max_adapter
	.no_dead_strip	_clean_adapter
.subsections_via_symbols
