	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_cmd_802_11_bg_scan_config ## -- Begin function mwifiex_cmd_802_11_bg_scan_config
	.p2align	4, 0x90
_mwifiex_cmd_802_11_bg_scan_config:     ## @mwifiex_cmd_802_11_bg_scan_config
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	16(%rsi), %r13
	movq	%r13, -48(%rbp)
	movq	_HostCmd_CMD_802_11_BG_SCAN_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, 8(%rbx)
	movq	_S_DS_GEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addl	$48, %edi
	callq	_cpu_to_le16
	movq	%rax, (%rbx)
	movl	(%r15), %edi
	callq	_cpu_to_le16
	movq	%rax, 56(%rbx)
	movl	64(%r15), %eax
	movl	%eax, 28(%rbx)
	movl	60(%r15), %eax
	movl	%eax, 48(%rbx)
	movl	56(%r15), %edi
	callq	_cpu_to_le32
	movq	%rax, 40(%rbx)
	movl	52(%r15), %edi
	callq	_cpu_to_le32
	movq	%rax, 32(%rbx)
	cmpl	$0, 28(%rbx)
	je	LBB0_30
## %bb.1:
	movl	48(%r15), %eax
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movl	%eax, 24(%rbx)
	movq	40(%r15), %rbx
	testq	%rbx, %rbx
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	jne	LBB0_3
## %bb.2:
	movq	(%r14), %rax
	movq	24(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_4
LBB0_3:
	movq	_TLV_TYPE_NUMPROBES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, 8(%r13)
	movl	$8, %edi
	callq	_cpu_to_le16
	movq	%rax, (%r13)
	movl	%ebx, %edi
	callq	_cpu_to_le16
	movq	%rax, 16(%r13)
	movq	(%r13), %rdi
	callq	_le16_to_cpu
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	-48(%rbp), %rcx
	leaq	(%rcx,%rax,8), %r13
	addq	$128, %r13
	movq	%r13, -48(%rbp)
LBB0_4:
	cmpl	$0, 4(%r15)
	je	LBB0_6
## %bb.5:
	movq	_TLV_TYPE_REPEAT_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, 8(%r13)
	movl	$8, %edi
	callq	_cpu_to_le16
	movq	%rax, (%r13)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, 16(%r13)
	movq	(%r13), %rdi
	callq	_le16_to_cpu
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	-48(%rbp), %rcx
	leaq	(%rcx,%rax,8), %r13
	addq	$128, %r13
	movq	%r13, -48(%rbp)
LBB0_6:
	cmpl	$0, 8(%r15)
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_8
## %bb.7:
	movq	_TLV_TYPE_RSSI_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, 8(%r13)
	movl	$8, %edi
	callq	_cpu_to_le16
	movq	%rax, (%r13)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, 16(%r13)
	movq	(%r13), %rdi
	callq	_le16_to_cpu
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	-48(%rbp), %rcx
	leaq	(%rcx,%rax,8), %r13
	addq	$128, %r13
	movq	%r13, -48(%rbp)
LBB0_8:
	cmpl	$0, 12(%r15)
	jle	LBB0_14
## %bb.9:
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	_IEEE80211_MAX_SSID_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%rax, 24(%r13)
	movl	16(%r13), %edi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	32(%r15), %rax
	movl	8(%rax,%rbx), %esi
	movq	%r14, %rdx
	callq	_memcpy
	movq	(%r13), %rdi
	callq	_le16_to_cpu
	movq	-48(%rbp), %rcx
	leaq	(%rcx,%rax,8), %r13
	addq	$128, %r13
	movq	%r13, -48(%rbp)
	incq	%r12
	movslq	12(%r15), %rax
	addq	$16, %rbx
	cmpq	%rax, %r12
	jge	LBB0_14
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	32(%r15), %rax
	movq	(%rax,%rbx), %r14
	movq	_TLV_TYPE_WILDCARDSSID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, 8(%r13)
	leal	8(%r14), %edi
	callq	_cpu_to_le16
	movq	%rax, (%r13)
	testq	%r14, %r14
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_14:
	movq	24(%r15), %rax
	cmpq	$0, 24(%rax)
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	(%r14), %rax
	movl	16(%rax), %edi
	je	LBB0_31
## %bb.15:
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	_TLV_TYPE_CHANLIST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, 8(%r13)
	movq	_MWIFIEX_BG_SCAN_CHAN_MAX@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	%r13, %rbx
	je	LBB0_27
## %bb.16:
	movl	$24, %r14d
	xorl	%r15d, %r15d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_17 Depth=1
	notl	%ecx
	andl	%ecx, -8(%r12,%r14)
	movq	-16(%rax,%r14), %rax
	testq	%rax, %rax
	je	LBB0_23
LBB0_22:                                ##   in Loop: Header=BB0_17 Depth=1
	movslq	%eax, %rbx
LBB0_25:                                ##   in Loop: Header=BB0_17 Depth=1
	movl	%ebx, %edi
	callq	_cpu_to_le16
	movq	%rax, -16(%r12,%r14)
	movl	%ebx, %edi
	callq	_cpu_to_le16
	movq	%rax, -24(%r12,%r14)
	incq	%r15
	addq	$32, %r14
	movq	_MWIFIEX_BG_SCAN_CHAN_MAX@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jae	LBB0_26
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%rbx), %rax
	cmpq	$0, (%rax,%r14)
	je	LBB0_26
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	16(%r13), %r12
	movq	%r13, %rdi
	movl	$8, %esi
	callq	_le16_unaligned_add_cpu
	movq	24(%rbx), %rax
	movq	(%rax,%r14), %rcx
	movq	%rcx, (%r12,%r14)
	movl	-8(%rax,%r14), %ecx
	movl	%ecx, -4(%r12,%r14)
	movq	-24(%rax,%r14), %rdx
	movq	_MWIFIEX_PASSIVE_SCAN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_MWIFIEX_SCAN_TYPE_PASSIVE@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_17 Depth=1
	orl	%ecx, -8(%r12,%r14)
	movq	-16(%rax,%r14), %rax
	testq	%rax, %rax
	jne	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	jmp	LBB0_24
LBB0_23:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	addq	$8, %rax
LBB0_24:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	(%rax), %rbx
	jmp	LBB0_25
LBB0_31:
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_dbg
	movq	16(%r13), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_mwifiex_bgscan_create_channel_list
	shll	$5, %eax
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_le16_unaligned_add_cpu
	movq	%r13, %rbx
	jmp	LBB0_27
LBB0_26:
	movq	-48(%rbp), %rbx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
LBB0_27:
	movq	(%r13), %rdi
	callq	_le16_to_cpu
	leaq	(%rbx,%rax,8), %rbx
	addq	$128, %rbx
	movq	%rbx, -48(%rbp)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpl	$0, 16(%rcx)
	je	LBB0_29
## %bb.28:
	movq	_TLV_TYPE_BGSCAN_START_LATER@GOTPCREL(%rip), %rax
	movq	%rcx, %r15
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, 8(%rbx)
	movl	$8, %edi
	callq	_cpu_to_le16
	movq	%rax, (%rbx)
	movl	16(%r15), %edi
	callq	_cpu_to_le16
	movq	%rax, 16(%rbx)
	movq	(%rbx), %rdi
	callq	_le16_to_cpu
	movq	-48(%rbp), %rcx
	leaq	(%rcx,%rax,8), %rax
	addq	$128, %rax
	movq	%rax, -48(%rbp)
LBB0_29:
	movq	_MWIFIEX_VSIE_MASK_BGSCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	callq	_mwifiex_cmd_append_vsie_tlv
	movq	-48(%rbp), %rsi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	subq	16(%rdi), %rsi
	shrq	$3, %rsi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_le16_unaligned_add_cpu
LBB0_30:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HostCmd_CMD_802_11_BG_SCAN_CONFIG,4,2 ## @HostCmd_CMD_802_11_BG_SCAN_CONFIG
	.comm	_S_DS_GEN,4,2                   ## @S_DS_GEN
	.comm	_TLV_TYPE_NUMPROBES,4,2         ## @TLV_TYPE_NUMPROBES
	.comm	_TLV_TYPE_REPEAT_COUNT,4,2      ## @TLV_TYPE_REPEAT_COUNT
	.comm	_TLV_TYPE_RSSI_LOW,4,2          ## @TLV_TYPE_RSSI_LOW
	.comm	_TLV_TYPE_WILDCARDSSID,4,2      ## @TLV_TYPE_WILDCARDSSID
	.comm	_IEEE80211_MAX_SSID_LEN,8,3     ## @IEEE80211_MAX_SSID_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"info: bgscan: Using supplied channel list\n"

	.comm	_TLV_TYPE_CHANLIST,4,2          ## @TLV_TYPE_CHANLIST
	.comm	_MWIFIEX_BG_SCAN_CHAN_MAX,8,3   ## @MWIFIEX_BG_SCAN_CHAN_MAX
	.comm	_MWIFIEX_SCAN_TYPE_PASSIVE,8,3  ## @MWIFIEX_SCAN_TYPE_PASSIVE
	.comm	_MWIFIEX_PASSIVE_SCAN,4,2       ## @MWIFIEX_PASSIVE_SCAN
L_.str.1:                               ## @.str.1
	.asciz	"info: bgscan: Creating full region channel list\n"

	.comm	_TLV_TYPE_BGSCAN_START_LATER,4,2 ## @TLV_TYPE_BGSCAN_START_LATER
	.comm	_MWIFIEX_VSIE_MASK_BGSCAN,4,2   ## @MWIFIEX_VSIE_MASK_BGSCAN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_cmd_802_11_bg_scan_config ; -- Begin function mwifiex_cmd_802_11_bg_scan_config
	.p2align	2
_mwifiex_cmd_802_11_bg_scan_config:     ; @mwifiex_cmd_802_11_bg_scan_config
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x27, x0
	ldr	x22, [x1, #16]
	str	x22, [sp, #8]
Lloh0:
	adrp	x8, _HostCmd_CMD_802_11_BG_SCAN_CONFIG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HostCmd_CMD_802_11_BG_SCAN_CONFIG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [x19, #8]
Lloh3:
	adrp	x8, _S_DS_GEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _S_DS_GEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w0, w8, #48
	bl	_cpu_to_le16
	str	x0, [x19]
	ldr	w0, [x21]
	bl	_cpu_to_le16
	str	x0, [x19, #56]
	ldr	w8, [x21, #64]
	str	w8, [x19, #28]
	ldp	w0, w8, [x21, #56]
	str	w8, [x19, #48]
	bl	_cpu_to_le32
	str	x0, [x19, #40]
	ldr	w0, [x21, #52]
	bl	_cpu_to_le32
	str	x0, [x19, #32]
	ldr	w8, [x19, #28]
	cbz	w8, LBB0_28
; %bb.1:
	ldr	w8, [x21, #48]
	str	w8, [x19, #24]
	ldr	x23, [x21, #40]
	cbnz	x23, LBB0_3
; %bb.2:
	ldr	x8, [x27]
	ldr	x23, [x8, #24]
	cbz	x23, LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, _TLV_TYPE_NUMPROBES@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TLV_TYPE_NUMPROBES@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [x22, #8]
	mov	w0, #8
	bl	_cpu_to_le16
	str	x0, [x22]
	mov	x0, x23
	bl	_cpu_to_le16
	str	x0, [x22, #16]
	ldr	x0, [x22]
	bl	_le16_to_cpu
	ldr	x8, [sp, #8]
	add	x8, x8, x0, lsl #3
	add	x22, x8, #128
	str	x22, [sp, #8]
LBB0_4:
	ldr	w8, [x21, #4]
	cbz	w8, LBB0_6
; %bb.5:
Lloh9:
	adrp	x8, _TLV_TYPE_REPEAT_COUNT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TLV_TYPE_REPEAT_COUNT@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [x22, #8]
	mov	w0, #8
	bl	_cpu_to_le16
	str	x0, [x22]
	ldr	w0, [x21, #4]
	bl	_cpu_to_le16
	str	x0, [x22, #16]
	ldr	x0, [x22]
	bl	_le16_to_cpu
	ldr	x8, [sp, #8]
	add	x8, x8, x0, lsl #3
	add	x22, x8, #128
	str	x22, [sp, #8]
LBB0_6:
	ldr	w8, [x21, #8]
	cbz	w8, LBB0_8
; %bb.7:
Lloh12:
	adrp	x8, _TLV_TYPE_RSSI_LOW@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TLV_TYPE_RSSI_LOW@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [x22, #8]
	mov	w0, #8
	bl	_cpu_to_le16
	str	x0, [x22]
	ldr	w0, [x21, #8]
	bl	_cpu_to_le16
	str	x0, [x22, #16]
	ldr	x0, [x22]
	bl	_le16_to_cpu
	ldr	x8, [sp, #8]
	add	x8, x8, x0, lsl #3
	add	x22, x8, #128
	str	x22, [sp, #8]
LBB0_8:
	ldr	w8, [x21, #12]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.9:
	mov	x24, #0
	mov	x25, #0
Lloh15:
	adrp	x20, _TLV_TYPE_WILDCARDSSID@GOTPAGE
Lloh16:
	ldr	x20, [x20, _TLV_TYPE_WILDCARDSSID@GOTPAGEOFF]
Lloh17:
	adrp	x26, _IEEE80211_MAX_SSID_LEN@GOTPAGE
Lloh18:
	ldr	x26, [x26, _IEEE80211_MAX_SSID_LEN@GOTPAGEOFF]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #32]
	ldr	x23, [x8, x24]
	ldr	w0, [x20]
	bl	_cpu_to_le16
	str	x0, [x22, #8]
	add	w0, w23, #8
	bl	_cpu_to_le16
	str	x0, [x22]
	ldr	x8, [x26]
	cmp	x23, #0
	csel	x8, x8, xzr, eq
	str	x8, [x22, #24]
	ldr	w0, [x22, #16]
	ldr	x8, [x21, #32]
	add	x8, x8, x24
	ldr	w1, [x8, #8]
	mov	x2, x23
	bl	_memcpy
	ldr	x0, [x22]
	bl	_le16_to_cpu
	ldr	x8, [sp, #8]
	add	x8, x8, x0, lsl #3
	add	x22, x8, #128
	str	x22, [sp, #8]
	add	x25, x25, #1
	ldrsw	x8, [x21, #12]
	add	x24, x24, #16
	cmp	x25, x8
	b.lt	LBB0_10
LBB0_11:
	ldr	x8, [x21, #24]
	ldr	x8, [x8, #24]
	ldr	x9, [x27]
	ldr	w0, [x9, #16]
	cbz	x8, LBB0_23
; %bb.12:
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
Lloh21:
	adrp	x8, _TLV_TYPE_CHANLIST@GOTPAGE
Lloh22:
	ldr	x8, [x8, _TLV_TYPE_CHANLIST@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [x22, #8]
Lloh24:
	adrp	x24, _MWIFIEX_BG_SCAN_CHAN_MAX@GOTPAGE
Lloh25:
	ldr	x24, [x24, _MWIFIEX_BG_SCAN_CHAN_MAX@GOTPAGEOFF]
	ldr	x8, [x24]
	mov	x20, x22
	cbz	x8, LBB0_25
; %bb.13:
	str	x27, [sp]                       ; 8-byte Folded Spill
	mov	x25, #0
	mov	x26, #0
Lloh26:
	adrp	x27, _MWIFIEX_SCAN_TYPE_PASSIVE@GOTPAGE
Lloh27:
	ldr	x27, [x27, _MWIFIEX_SCAN_TYPE_PASSIVE@GOTPAGEOFF]
Lloh28:
	adrp	x28, _MWIFIEX_PASSIVE_SCAN@GOTPAGE
Lloh29:
	ldr	x28, [x28, _MWIFIEX_PASSIVE_SCAN@GOTPAGEOFF]
	b	LBB0_17
LBB0_14:                                ;   in Loop: Header=BB0_17 Depth=1
	ldr	w11, [x9, #16]
	bic	w10, w11, w10
	str	w10, [x9, #16]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_21
LBB0_15:                                ;   in Loop: Header=BB0_17 Depth=1
	sxtw	x23, w8
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	mov	x0, x23
	bl	_cpu_to_le16
	add	x20, x20, x25
	str	x0, [x20, #8]
	mov	x0, x23
	bl	_cpu_to_le16
	str	x0, [x20]
	add	x26, x26, #1
	ldr	x8, [x24]
	add	x25, x25, #32
	cmp	x26, x8
	b.hs	LBB0_24
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #24]
	add	x8, x8, x25
	ldr	x8, [x8, #24]
	cbz	x8, LBB0_24
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	x20, [x22, #16]
	mov	x0, x22
	mov	w1, #8
	bl	_le16_unaligned_add_cpu
	ldr	x8, [x21, #24]
	add	x8, x8, x25
	ldr	x10, [x8, #24]
	add	x9, x20, x25
	str	x10, [x9, #24]
	ldr	w10, [x8, #16]
	str	w10, [x9, #20]
	ldr	x11, [x8]
	ldr	x12, [x27]
	ldr	w10, [x28]
	cmp	x11, x12
	b.ne	LBB0_14
; %bb.19:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	w11, [x9, #16]
	orr	w10, w11, w10
	str	w10, [x9, #16]
	ldr	x8, [x8, #8]
	cbnz	x8, LBB0_15
; %bb.20:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	ldr	x8, [x8]
	b	LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_17 Depth=1
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	ldr	x8, [x8]
	add	x8, x8, #8
LBB0_22:                                ;   in Loop: Header=BB0_17 Depth=1
	ldr	x23, [x8]
	b	LBB0_16
LBB0_23:
Lloh30:
	adrp	x1, l_.str.1@PAGE
Lloh31:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
	ldr	x2, [x22, #16]
	mov	x0, x27
	mov	x1, x21
	bl	_mwifiex_bgscan_create_channel_list
	lsl	w1, w0, #5
	mov	x0, x22
	bl	_le16_unaligned_add_cpu
	mov	x20, x22
	b	LBB0_25
LBB0_24:
	ldp	x27, x20, [sp]                  ; 8-byte Folded Reload
LBB0_25:
	ldr	x0, [x22]
	bl	_le16_to_cpu
	add	x8, x20, x0, lsl #3
	add	x20, x8, #128
	str	x20, [sp, #8]
	ldr	w8, [x21, #16]
	cbz	w8, LBB0_27
; %bb.26:
Lloh32:
	adrp	x8, _TLV_TYPE_BGSCAN_START_LATER@GOTPAGE
Lloh33:
	ldr	x8, [x8, _TLV_TYPE_BGSCAN_START_LATER@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [x20, #8]
	mov	w0, #8
	bl	_cpu_to_le16
	str	x0, [x20]
	ldr	w0, [x21, #16]
	bl	_cpu_to_le16
	str	x0, [x20, #16]
	ldr	x0, [x20]
	bl	_le16_to_cpu
	ldr	x8, [sp, #8]
	add	x8, x8, x0, lsl #3
	add	x8, x8, #128
	str	x8, [sp, #8]
LBB0_27:
Lloh35:
	adrp	x8, _MWIFIEX_VSIE_MASK_BGSCAN@GOTPAGE
Lloh36:
	ldr	x8, [x8, _MWIFIEX_VSIE_MASK_BGSCAN@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x27
	bl	_mwifiex_cmd_append_vsie_tlv
	ldr	x8, [sp, #8]
	ldr	x9, [x19, #16]
	sub	x8, x8, x9
	lsr	x1, x8, #3
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_le16_unaligned_add_cpu
LBB0_28:
	mov	w0, #0
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_HostCmd_CMD_802_11_BG_SCAN_CONFIG,4,2 ; @HostCmd_CMD_802_11_BG_SCAN_CONFIG
	.comm	_S_DS_GEN,4,2                   ; @S_DS_GEN
	.comm	_TLV_TYPE_NUMPROBES,4,2         ; @TLV_TYPE_NUMPROBES
	.comm	_TLV_TYPE_REPEAT_COUNT,4,2      ; @TLV_TYPE_REPEAT_COUNT
	.comm	_TLV_TYPE_RSSI_LOW,4,2          ; @TLV_TYPE_RSSI_LOW
	.comm	_TLV_TYPE_WILDCARDSSID,4,2      ; @TLV_TYPE_WILDCARDSSID
	.comm	_IEEE80211_MAX_SSID_LEN,8,3     ; @IEEE80211_MAX_SSID_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"info: bgscan: Using supplied channel list\n"

	.comm	_TLV_TYPE_CHANLIST,4,2          ; @TLV_TYPE_CHANLIST
	.comm	_MWIFIEX_BG_SCAN_CHAN_MAX,8,3   ; @MWIFIEX_BG_SCAN_CHAN_MAX
	.comm	_MWIFIEX_SCAN_TYPE_PASSIVE,8,3  ; @MWIFIEX_SCAN_TYPE_PASSIVE
	.comm	_MWIFIEX_PASSIVE_SCAN,4,2       ; @MWIFIEX_PASSIVE_SCAN
l_.str.1:                               ; @.str.1
	.asciz	"info: bgscan: Creating full region channel list\n"

	.comm	_TLV_TYPE_BGSCAN_START_LATER,4,2 ; @TLV_TYPE_BGSCAN_START_LATER
	.comm	_MWIFIEX_VSIE_MASK_BGSCAN,4,2   ; @MWIFIEX_VSIE_MASK_BGSCAN
.subsections_via_symbols
