	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wmi_sched_scan_set_channels
_wmi_sched_scan_set_channels:           ## @wmi_sched_scan_set_channels
	.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	%rcx, %rbx
	movq	%rsi, %r14
	movq	_WMI_MAX_CHANNEL_NUM@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	cmpl	%edx, %ecx
	jge	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	callq	_wil_dbg_wmi
	movl	(%r15), %edx
LBB0_2:
	movl	%edx, (%r14)
	testl	%edx, %edx
	jle	LBB0_10
## %bb.3:
	movq	8(%r14), %rcx
	movl	%edx, %edx
	leaq	-1(%rdx), %rsi
	movl	%edx, %eax
	andl	$3, %eax
	cmpq	$3, %rsi
	jae	LBB0_5
## %bb.4:
	xorl	%esi, %esi
	jmp	LBB0_7
LBB0_5:
	andl	$-4, %edx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx,%rsi,8), %rdi
	movq	(%rdi), %rdi
	decq	%rdi
	movq	%rdi, (%rcx,%rsi,8)
	movq	8(%rbx,%rsi,8), %rdi
	movq	(%rdi), %rdi
	decq	%rdi
	movq	%rdi, 8(%rcx,%rsi,8)
	movq	16(%rbx,%rsi,8), %rdi
	movq	(%rdi), %rdi
	decq	%rdi
	movq	%rdi, 16(%rcx,%rsi,8)
	movq	24(%rbx,%rsi,8), %rdi
	movq	(%rdi), %rdi
	decq	%rdi
	movq	%rdi, 24(%rcx,%rsi,8)
	addq	$4, %rsi
	cmpq	%rsi, %rdx
	jne	LBB0_6
LBB0_7:
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	leaq	(%rcx,%rsi,8), %rcx
	leaq	(%rbx,%rsi,8), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rsi,8), %rdi
	movq	(%rdi), %rdi
	decq	%rdi
	movq	%rdi, (%rcx,%rsi,8)
	incq	%rsi
	cmpq	%rsi, %rax
	jne	LBB0_9
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WMI_MAX_CHANNEL_NUM,4,2        ## @WMI_MAX_CHANNEL_NUM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"too many channels (%d), use first %d\n"

	.no_dead_strip	_wmi_sched_scan_set_channels
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wmi_sched_scan_set_channels
_wmi_sched_scan_set_channels:           ; @wmi_sched_scan_set_channels
	.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, x3
	mov	x20, x1
Lloh0:
	adrp	x21, _WMI_MAX_CHANNEL_NUM@GOTPAGE
Lloh1:
	ldr	x21, [x21, _WMI_MAX_CHANNEL_NUM@GOTPAGEOFF]
	ldr	w3, [x21]
	cmp	w3, w2
	b.ge	LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wil_dbg_wmi
	ldr	w2, [x21]
LBB0_2:
	str	w2, [x20]
	cmp	w2, #1
	b.lt	LBB0_5
; %bb.3:
	ldr	x8, [x20, #8]
	mov	w9, w2
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x19], #8
	ldr	x10, [x10]
	sub	x10, x10, #1
	str	x10, [x8], #8
	subs	x9, x9, #1
	b.ne	LBB0_4
LBB0_5:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_WMI_MAX_CHANNEL_NUM,4,2        ; @WMI_MAX_CHANNEL_NUM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"too many channels (%d), use first %d\n"

	.no_dead_strip	_wmi_sched_scan_set_channels
.subsections_via_symbols
