	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_fill_channels
_iwl_mvm_fill_channels:                 ## @iwl_mvm_fill_channels
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movq	(%rax), %r8
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	shlq	$4, %rax
	xorl	%ecx, %ecx
	cmpl	$0, (%r8,%rax)
	jle	LBB0_5
## %bb.1:
	testl	%edx, %edx
	jle	LBB0_5
## %bb.2:
	leaq	(%r8,%rax), %r9
	movq	8(%r8,%rax), %r10
	movl	%edx, %edi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r10,%rcx,4), %eax
	movl	%eax, (%rsi,%rcx,4)
	incq	%rcx
	movslq	(%r9), %rax
	cmpq	%rax, %rcx
	jge	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rdi, %rcx
	jb	LBB0_3
LBB0_5:
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	shlq	$4, %rax
	cmpl	$0, (%r8,%rax)
	jle	LBB0_10
## %bb.6:
	cmpl	%edx, %ecx
	jge	LBB0_10
## %bb.7:
	leaq	(%r8,%rax), %r9
	movq	8(%r8,%rax), %r8
	movl	%ecx, %ecx
	movslq	%edx, %rdx
	leaq	(%rsi,%rcx,4), %rsi
	movl	$1, %edi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	-4(%r8,%rdi,4), %eax
	movl	%eax, -4(%rsi,%rdi,4)
	movslq	(%r9), %rax
	cmpq	%rax, %rdi
	jge	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	leaq	(%rcx,%rdi), %rax
	incq	%rdi
	cmpq	%rdx, %rax
	jl	LBB0_8
LBB0_10:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_BAND_2GHZ,8,3          ## @NL80211_BAND_2GHZ
	.comm	_NL80211_BAND_5GHZ,8,3          ## @NL80211_BAND_5GHZ
	.no_dead_strip	_iwl_mvm_fill_channels
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_mvm_fill_channels
_iwl_mvm_fill_channels:                 ; @iwl_mvm_fill_channels
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w2 killed $w2 def $x2
	ldr	x8, [x0]
Lloh0:
	adrp	x10, _NL80211_BAND_2GHZ@GOTPAGE
Lloh1:
	ldr	x10, [x10, _NL80211_BAND_2GHZ@GOTPAGEOFF]
	ldr	x9, [x8]
Lloh2:
	ldr	x8, [x10]
	add	x10, x9, x8, lsl #4
	ldr	w8, [x10]
	cmp	w8, #1
	ccmp	w2, #1, #8, ge
	b.ge	LBB0_2
; %bb.1:
	mov	w8, #0
	b	LBB0_4
LBB0_2:
	mov	x8, #0
	ldr	x11, [x10, #8]
	mov	w12, w2
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x13, x8, #2
	ldr	w14, [x11, x13]
	str	w14, [x1, x13]
	add	x8, x8, #1
	ldrsw	x13, [x10]
	cmp	x8, x13
	ccmp	x8, x12, #2, lt
	b.lo	LBB0_3
LBB0_4:
Lloh3:
	adrp	x10, _NL80211_BAND_5GHZ@GOTPAGE
Lloh4:
	ldr	x10, [x10, _NL80211_BAND_5GHZ@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	add	x9, x9, x10, lsl #4
	ldr	w10, [x9]
	cmp	w10, #1
	ccmp	w8, w2, #0, ge
	b.ge	LBB0_7
; %bb.5:
	mov	x11, #0
	ldr	x10, [x9, #8]
	mov	w13, w8
	sxtw	x12, w2
	add	x8, x1, w8, uxtw #2
	add	x13, x13, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x14, x11, #2
	ldr	w15, [x10, x14]
	str	w15, [x8, x14]
	add	x14, x13, x11
	add	x11, x11, #1
	ldrsw	x15, [x9]
	cmp	x11, x15
	ccmp	x14, x12, #0, lt
	b.lt	LBB0_6
LBB0_7:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_BAND_2GHZ,8,3          ; @NL80211_BAND_2GHZ
	.comm	_NL80211_BAND_5GHZ,8,3          ; @NL80211_BAND_5GHZ
	.no_dead_strip	_iwl_mvm_fill_channels
.subsections_via_symbols
