	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lbs_add_channel_list_tlv
_lbs_add_channel_list_tlv:              ## @lbs_add_channel_list_tlv
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movl	%edx, %eax
	subl	(%rdi), %eax
	shll	$3, %eax
	leal	(%rax,%rax,2), %r13d
	movq	_TLV_TYPE_CHANLIST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, 8(%rbx)
	movl	%r13d, %edi
	callq	_cpu_to_le16
	movq	%rax, (%rbx)
	leaq	64(%rbx), %rdi
	xorl	%esi, %esi
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movl	%r13d, %edx
	callq	_memset
	movl	(%r12), %eax
	cmpl	%r15d, %eax
	jge	LBB0_5
## %bb.1:
	addq	$80, %rbx
	movq	_LBS_DWELL_ACTIVE@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, -16(%rbx)
	movl	(%r12), %eax
	incl	%eax
	movl	%eax, (%r12)
	addq	$96, %rbx
	cmpl	%r15d, %eax
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_CMD_SCAN_RADIO_TYPE_BG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rbx)
	movq	8(%r12), %rcx
	movq	(%rcx), %rcx
	cltq
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbx)
	movq	%r13, %rax
	testl	%r14d, %r14d
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, -8(%rbx)
	movq	_LBS_DWELL_PASSIVE@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_5:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addl	$16, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TLV_TYPE_CHANLIST,4,2          ## @TLV_TYPE_CHANLIST
	.comm	_CMD_SCAN_RADIO_TYPE_BG,4,2     ## @CMD_SCAN_RADIO_TYPE_BG
	.comm	_LBS_DWELL_ACTIVE,4,2           ## @LBS_DWELL_ACTIVE
	.comm	_LBS_DWELL_PASSIVE,4,2          ## @LBS_DWELL_PASSIVE
	.no_dead_strip	_lbs_add_channel_list_tlv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lbs_add_channel_list_tlv
_lbs_add_channel_list_tlv:              ; @lbs_add_channel_list_tlv
	.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	x19, x3
	mov	x20, x2
	mov	x23, x1
	mov	x21, x0
	ldr	w8, [x0]
	sub	w8, w2, w8
	add	w8, w8, w8, lsl #1
	lsl	w22, w8, #3
Lloh0:
	adrp	x8, _TLV_TYPE_CHANLIST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TLV_TYPE_CHANLIST@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [x23, #8]
	mov	x0, x22
	bl	_cpu_to_le16
	str	x0, [x23]
	add	x0, x23, #64
	mov	w1, #0
	mov	x2, x22
	bl	_memset
	ldr	w8, [x21]
	cmp	w8, w20
	b.ge	LBB0_5
; %bb.1:
Lloh3:
	adrp	x24, _CMD_SCAN_RADIO_TYPE_BG@GOTPAGE
Lloh4:
	ldr	x24, [x24, _CMD_SCAN_RADIO_TYPE_BG@GOTPAGEOFF]
	add	x23, x23, #80
Lloh5:
	adrp	x25, _LBS_DWELL_ACTIVE@GOTPAGE
Lloh6:
	ldr	x25, [x25, _LBS_DWELL_ACTIVE@GOTPAGEOFF]
	mov	w26, #1
Lloh7:
	adrp	x27, _LBS_DWELL_PASSIVE@GOTPAGE
Lloh8:
	ldr	x27, [x27, _LBS_DWELL_PASSIVE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x8]
	bl	_cpu_to_le16
	stur	x0, [x23, #-16]
	ldr	w8, [x21]
	add	w8, w8, #1
	str	w8, [x21]
	add	x23, x23, #96
	cmp	w8, w20
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x24]
	str	w9, [x23]
	ldr	x9, [x21, #8]
	ldr	x9, [x9]
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w8, [x8]
	stur	w8, [x23, #-4]
	mov	x8, x25
	cbnz	w19, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	stur	w26, [x23, #-8]
	mov	x8, x27
	b	LBB0_2
LBB0_5:
	add	w0, w22, #16
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_TLV_TYPE_CHANLIST,4,2          ; @TLV_TYPE_CHANLIST
	.comm	_CMD_SCAN_RADIO_TYPE_BG,4,2     ; @CMD_SCAN_RADIO_TYPE_BG
	.comm	_LBS_DWELL_ACTIVE,4,2           ; @LBS_DWELL_ACTIVE
	.comm	_LBS_DWELL_PASSIVE,4,2          ; @LBS_DWELL_PASSIVE
	.no_dead_strip	_lbs_add_channel_list_tlv
.subsections_via_symbols
