	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_bgscan_create_channel_list
_mwifiex_bgscan_create_channel_list:    ## @mwifiex_bgscan_create_channel_list
	.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, -88(%rbp)                 ## 8-byte Spill
	movq	_NUM_NL80211_BANDS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	8(%rdi), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	xorl	%r8d, %r8d
	movq	_IEEE80211_CHAN_DISABLED@GOTPCREL(%rip), %r9
	xorl	%esi, %esi
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_NUM_NL80211_BANDS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r8
	movl	%eax, %ecx
	cmpq	%rcx, %r8
	jae	LBB0_18
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	(%rdi), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%r8,8), %r14
	testq	%r14, %r14
	je	LBB0_17
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r14), %ecx
	testl	%ecx, %ecx
	jle	LBB0_17
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	jmp	LBB0_6
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=2
	notl	%eax
	andl	%eax, 16(%rdx,%rbx)
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=2
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	_IEEE80211_CHAN_DISABLED@GOTPCREL(%rip), %r9
	movq	8(%r12,%r13), %rax
	movq	%rax, 8(%rdx,%rbx)
	incl	%esi
	movl	(%r14), %ecx
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=2
	incq	%r15
	movslq	%ecx, %rax
	addq	$16, %r13
	cmpq	%rax, %r15
	jge	LBB0_16
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%r14), %r12
	movl	(%r12,%r13), %eax
	testl	%eax, (%r9)
	jne	LBB0_15
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movslq	%esi, %rbx
	shlq	$5, %rbx
	movl	%r8d, (%rdx,%rbx)
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	(%rcx), %rdi
	testq	%rdi, %rdi
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	jne	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	_IEEE80211_CHAN_NO_IR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edi
	jmp	LBB0_11
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=2
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_cpu_to_le16
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, 24(%rdx,%rbx)
	movq	_IEEE80211_CHAN_NO_IR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_MWIFIEX_PASSIVE_SCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%ecx, (%r12,%r13)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=2
	orl	%eax, 16(%rdx,%rbx)
	jmp	LBB0_14
LBB0_1:
	xorl	%esi, %esi
LBB0_18:
	movl	%esi, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_NL80211_BANDS,4,2          ## @NUM_NL80211_BANDS
	.comm	_IEEE80211_CHAN_DISABLED,4,2    ## @IEEE80211_CHAN_DISABLED
	.comm	_IEEE80211_CHAN_NO_IR,4,2       ## @IEEE80211_CHAN_NO_IR
	.comm	_MWIFIEX_PASSIVE_SCAN,4,2       ## @MWIFIEX_PASSIVE_SCAN
	.no_dead_strip	_mwifiex_bgscan_create_channel_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_bgscan_create_channel_list
_mwifiex_bgscan_create_channel_list:    ; @mwifiex_bgscan_create_channel_list
	.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
Lloh0:
	adrp	x8, _NUM_NL80211_BANDS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NUM_NL80211_BANDS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_17
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x24, #0
	mov	w22, #0
	ldr	x9, [x0, #8]
	str	x9, [sp, #8]                    ; 8-byte Folded Spill
Lloh3:
	adrp	x26, _IEEE80211_CHAN_DISABLED@GOTPAGE
Lloh4:
	ldr	x26, [x26, _IEEE80211_CHAN_DISABLED@GOTPAGEOFF]
	str	x0, [sp]                        ; 8-byte Folded Spill
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh5:
	adrp	x8, _NUM_NL80211_BANDS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NUM_NL80211_BANDS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	x0, [sp]                        ; 8-byte Folded Reload
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x24, x24, #1
	cmp	x24, w8, uxtw
	b.hs	LBB0_18
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	ldr	x9, [x0]
	ldr	x9, [x9]
	ldr	x23, [x9, x24, lsl #3]
	cbz	x23, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x23]
	cmp	w9, #1
	b.lt	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x21, #0
	mov	x25, #0
	b	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_10 Depth=2
	ldr	w10, [x8, #16]
	bic	w9, w10, w9
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=2
	str	w9, [x8, #16]
	add	x8, x28, x21
	ldr	x8, [x8, #8]
	add	x9, x19, x27, lsl #5
	str	x8, [x9, #8]
	add	w22, w22, #1
	ldr	w9, [x23]
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	add	x25, x25, #1
	add	x21, x21, #16
	cmp	x25, w9, sxtw
	b.ge	LBB0_2
LBB0_10:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x28, [x23, #8]
	ldr	w8, [x28, x21]
	ldr	w10, [x26]
	tst	w10, w8
	b.ne	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	sbfiz	x9, x22, #5, #32
	str	w24, [x19, x9]
	ldr	x9, [x20]
	ldr	x0, [x9]
	cbnz	x0, LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=2
Lloh8:
	adrp	x9, _IEEE80211_CHAN_NO_IR@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IEEE80211_CHAN_NO_IR@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	w0, [x8, #4]
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_10 Depth=2
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	w0, [x8]
LBB0_15:                                ;   in Loop: Header=BB0_10 Depth=2
	sxtw	x27, w22
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_cpu_to_le16
	add	x8, x19, x27, lsl #5
	str	x0, [x8, #24]
	ldr	w10, [x28, x21]
Lloh11:
	adrp	x9, _IEEE80211_CHAN_NO_IR@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IEEE80211_CHAN_NO_IR@GOTPAGEOFF]
Lloh13:
	ldr	w11, [x9]
Lloh14:
	adrp	x9, _MWIFIEX_PASSIVE_SCAN@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MWIFIEX_PASSIVE_SCAN@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w11, w10
	b.eq	LBB0_7
; %bb.16:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	w10, [x8, #16]
	orr	w9, w10, w9
	b	LBB0_8
LBB0_17:
	mov	w22, #0
LBB0_18:
	mov	x0, x22
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_NL80211_BANDS,4,2          ; @NUM_NL80211_BANDS
	.comm	_IEEE80211_CHAN_DISABLED,4,2    ; @IEEE80211_CHAN_DISABLED
	.comm	_IEEE80211_CHAN_NO_IR,4,2       ; @IEEE80211_CHAN_NO_IR
	.comm	_MWIFIEX_PASSIVE_SCAN,4,2       ; @MWIFIEX_PASSIVE_SCAN
	.no_dead_strip	_mwifiex_bgscan_create_channel_list
.subsections_via_symbols
