	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwlagn_request_scan
_iwlagn_request_scan:                   ## @iwlagn_request_scan
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_IWL_RXON_CTX_BSS@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	shlq	$3, %rbx
	movq	24(%rdi), %rax
	movq	_MAX_SCAN_CHANNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	104(%rdi), %r8
	cmpl	$131, (%rdi)
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	jne	LBB0_1
## %bb.2:
	movq	16(%r12), %rdx
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.4:
	cmpl	%ecx, (%rdx)
	setg	%dl
	jmp	LBB0_5
LBB0_1:
	xorl	%edx, %edx
	jmp	LBB0_5
LBB0_3:
	movb	$1, %dl
LBB0_5:
	addq	80(%r12), %rbx
	movl	(%r8), %r13d
	movl	(%rax), %r14d
	movl	4(%rax), %r15d
	movzbl	%dl, %edi
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_75
LBB0_7:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	%r15d, -92(%rbp)                ## 4-byte Spill
	movl	%r14d, -68(%rbp)                ## 4-byte Spill
	leaq	96(%r12), %rdi
	callq	_lockdep_assert_held
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	movq	%r12, %r15
	je	LBB0_9
## %bb.8:
	callq	_iwl_rxon_ctx_from_vif
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
LBB0_9:
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	%r13, -112(%rbp)                ## 8-byte Spill
	leal	112(%r13,%rbx,4), %ebx
	movq	88(%r15), %r13
	testq	%r13, %r13
	jne	LBB0_12
## %bb.10:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_kmalloc
	movq	%rax, %r13
	movq	%rax, 88(%r15)
	testq	%rax, %rax
	je	LBB0_11
LBB0_12:
	xorl	%r14d, %r14d
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_memset
	movq	_IWL_PLCP_QUIET_THRESH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 104(%r13)
	movq	_IWL_ACTIVE_QUIET_TIME@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 80(%r13)
	movq	%r15, %rdi
	callq	_iwl_is_any_associated
	testq	%rax, %rax
	movq	%r13, %r12
	je	LBB0_16
## %bb.13:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_IWL_DEBUG_INFO
	cmpl	$131, (%r15)
	jne	LBB0_15
## %bb.14:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %r14d
LBB0_15:
	movq	$0, 88(%r12)
	movl	$204800, %edi                   ## imm = 0x32000
	callq	_cpu_to_le32
	movq	%rax, 96(%r12)
	testl	%r14d, %r14d
	movl	$100, %eax
	cmovel	%eax, %r14d
	movl	$100, %eax
	xorl	%edx, %edx
	idivl	%r14d
	movl	%edx, %ebx
	shll	$22, %eax
	shll	$10, %ebx
	orl	%eax, %ebx
	movl	%ebx, %edi
	callq	_cpu_to_le32
	movq	%rax, 88(%r12)
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_IWL_DEBUG_SCAN
LBB0_16:
	movl	(%r15), %eax
	movb	$1, %bl
	cmpl	$131, %eax
	je	LBB0_20
## %bb.17:
	cmpl	$130, %eax
	jne	LBB0_18
## %bb.19:
	leaq	L_.str.3(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_IWL_DEBUG_SCAN
	movq	_IWL_RADIO_RESET_DWELL_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, 80(%r12)
	jmp	LBB0_28
LBB0_20:
	movq	16(%r15), %rax
	cmpl	$0, 32(%rax)
	je	LBB0_27
## %bb.21:
	leaq	L_.str.4(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_IWL_DEBUG_SCAN
	movq	16(%r15), %rcx
	movq	24(%rcx), %rax
	movl	(%rax), %edx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	8(%rax), %rdx
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movl	32(%rcx), %r13d
	movl	$1, -48(%rbp)                   ## 4-byte Folded Spill
	cmpl	$2, %r13d
	jl	LBB0_22
## %bb.23:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	leal	-1(%r13), %r14d
	decq	%r13
	leaq	(%r14,%r14,2), %rcx
	leaq	-12(,%rcx,4), %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movq	_WLAN_EID_SSID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	72(%rdx), %rsi
	movl	%ecx, 8(%rsi,%rbx)
	movl	%r13d, %ecx
	shlq	$4, %rcx
	movl	(%rax,%rcx), %edx
	movl	%edx, (%rsi,%rbx)
	movl	4(%rsi,%rbx), %edi
	movq	8(%rax,%rcx), %rsi
	callq	_memcpy
	cmpq	%rbx, %r12
	je	LBB0_25
## %bb.26:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	16(%r15), %rax
	movq	24(%rax), %rax
	decq	%r13
	addq	$12, %rbx
	jmp	LBB0_24
LBB0_18:
	xorl	%r14d, %r14d
	jmp	LBB0_28
LBB0_11:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_IWL_DEBUG_SCAN
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_75
LBB0_27:
	leaq	L_.str.5(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_IWL_DEBUG_SCAN
LBB0_28:
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	xorl	%eax, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_29:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	_TX_CMD_FLG_SEQ_CTL_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r12)
	movl	4(%rcx), %eax
	movl	%eax, 44(%r12)
	movq	_TX_CMD_LIFE_TIME_INFINITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r12)
	movl	4(%r15), %eax
	cmpl	$128, %eax
	je	LBB0_40
## %bb.30:
	cmpl	$129, %eax
	jne	LBB0_73
## %bb.31:
	movq	_RXON_FLG_BAND_24G_MSK@GOTPCREL(%rip), %rax
	movq	_RXON_FLG_AUTO_DETECT_MSK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%r12)
	movq	80(%r15), %rax
	movq	_IWL_RXON_CTX_BSS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_RXON_FLG_CHANNEL_MODE_MSK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	andl	(%rax,%rcx,8), %edi
	callq	_le32_to_cpu
	movq	_RXON_FLG_CHANNEL_MODE_POS@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movq	16(%r15), %rcx
	testq	%rcx, %rcx
	je	LBB0_35
## %bb.32:
	xorl	%r13d, %r13d
	cmpl	$0, 16(%rcx)
	movq	_IWL_RATE_6M_PLCP@GOTPCREL(%rip), %rcx
	jne	LBB0_37
## %bb.33:
	movq	_CHANNEL_MODE_PURE_40@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jne	LBB0_34
	jmp	LBB0_37
LBB0_40:
	movq	_IWL_RATE_6M_PLCP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	xorl	%r13d, %r13d
	jmp	LBB0_41
LBB0_73:
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	callq	_IWL_WARN
	jmp	LBB0_74
LBB0_35:
	movq	_CHANNEL_MODE_PURE_40@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_34
## %bb.36:
	xorl	%r13d, %r13d
	movq	_IWL_RATE_6M_PLCP@GOTPCREL(%rip), %rcx
	jmp	LBB0_37
LBB0_34:
	movq	_RATE_MCS_CCK_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_IWL_RATE_1M_PLCP@GOTPCREL(%rip), %rcx
LBB0_37:
	movl	(%rcx), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	40(%r15), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_41
## %bb.38:
	cmpq	$0, (%rax)
	je	LBB0_41
## %bb.39:
	movq	_TX_CMD_FLG_IGNORE_BT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 36(%r12)
LBB0_41:
	cmpq	$0, 72(%r15)
	jne	LBB0_42
## %bb.43:
	movq	_IWL_GOOD_CRC_TH_NEVER@GOTPCREL(%rip), %rax
	jmp	LBB0_44
LBB0_42:
	movq	_IWL_GOOD_CRC_TH_DISABLED@GOTPCREL(%rip), %rax
LBB0_44:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	testb	%bl, %bl
	jne	LBB0_46
## %bb.45:
	movq	_IWL_GOOD_CRC_TH_DEFAULT@GOTPCREL(%rip), %rax
LBB0_46:
	movq	(%rax), %rax
	movq	%rax, 64(%r12)
	movl	4(%r15), %r14d
	cmpq	$129, %r14
	movl	-92(%rbp), %edx                 ## 4-byte Reload
	jne	LBB0_50
## %bb.47:
	movq	40(%r15), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_50
## %bb.48:
	cmpq	$0, (%rax)
	je	LBB0_50
## %bb.49:
	movl	%edx, %edi
	callq	_first_antenna
	movl	%eax, %edx
LBB0_50:
	movq	64(%r15), %rax
	movl	(%rax,%r14,4), %esi
	movq	%r15, %rdi
	callq	_iwl_toggle_tx_ant
	movq	64(%r15), %rcx
	movl	%eax, (%rcx,%r14,4)
	movl	%eax, %edi
	callq	_iwl_ant_idx_to_flags
	orl	%eax, %r13d
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	movl	%r13d, %esi
	callq	_iwl_hw_set_rate_n_flags
	movl	%eax, 32(%r12)
	movq	_STATUS_POWER_PMI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r15), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_51
## %bb.52:
	movq	56(%r15), %rax
	movq	_IEEE80211_CONF_IDLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movl	-68(%rbp), %edi                 ## 4-byte Reload
	jne	LBB0_54
## %bb.53:
	movl	48(%r15), %edx
	movl	%edx, %ebx
	andl	%edi, %ebx
	cmovel	%edi, %ebx
	leaq	L_.str.7(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_IWL_DEBUG_SCAN
	movl	%ebx, %edi
	callq	_first_antenna
	movl	%eax, %edi
	jmp	LBB0_54
LBB0_51:
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movl	-68(%rbp), %edi                 ## 4-byte Reload
LBB0_54:
	movq	40(%r15), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_58
## %bb.55:
	cmpq	$0, (%rax)
	je	LBB0_58
## %bb.56:
	cmpq	$0, 32(%r15)
	je	LBB0_58
## %bb.57:
	callq	_first_antenna
	movl	%eax, %edi
LBB0_58:
	movq	24(%r15), %rax
	movl	(%rax), %eax
	movq	_RXON_RX_CHAIN_VALID_POS@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_RXON_RX_CHAIN_FORCE_MIMO_SEL_POS@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%edi, %edx
	shll	%cl, %edx
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	leal	(%rsi,%rcx,4), %ebx
	orl	%eax, %edx
	movq	_RXON_RX_CHAIN_FORCE_SEL_POS@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edi
	orl	%edx, %edi
	movq	_RXON_RX_CHAIN_DRIVER_FORCE_POS@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	btsl	%eax, %edi
	callq	_cpu_to_le16
	movq	%rax, 56(%r12)
	movl	(%r15), %eax
	cmpl	$130, %eax
	je	LBB0_61
## %bb.59:
	cmpl	$131, %eax
	jne	LBB0_63
## %bb.60:
	movq	48(%r12), %rdi
	movl	(%r13), %esi
	movq	16(%r15), %rax
	movq	8(%rax), %rdx
	movl	4(%rax), %ecx
	movl	%ebx, (%rsp)
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	jmp	LBB0_62
LBB0_61:
	movq	48(%r12), %rdi
	movq	_iwl_bcast_addr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, (%rsp)
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
LBB0_62:
	callq	_iwl_fill_probe_req
	movq	%r12, %rbx
	movl	%eax, %r12d
	jmp	LBB0_64
LBB0_63:
	movq	%r12, %rbx
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_BUG
LBB0_64:
	movl	%r12d, %edi
	callq	_cpu_to_le16
	movq	%rax, 24(%rbx)
	movq	_RXON_FILTER_ACCEPT_GRP_MSK@GOTPCREL(%rip), %rax
	movq	_RXON_FILTER_BCON_AWARE_MSK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	%rbx, %rdx
	orl	%ecx, 4(%rbx)
	movl	(%r15), %eax
	cmpl	$130, %eax
	je	LBB0_67
## %bb.65:
	cmpl	$131, %eax
	jne	LBB0_66
## %bb.68:
	movslq	%r12d, %r9
	shlq	$2, %r9
	movq	%rdx, %rbx
	addq	48(%rdx), %r9
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	%r14d, %edx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_iwl_get_channels_for_scan
	jmp	LBB0_69
LBB0_67:
	movslq	%r12d, %rcx
	shlq	$2, %rcx
	movq	%rdx, %rbx
	addq	48(%rdx), %rcx
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	%r14d, %edx
	callq	_iwl_get_channel_for_reset_scan
LBB0_69:
	movl	%eax, 8(%rbx)
	testl	%eax, %eax
	jne	LBB0_72
LBB0_71:
	leaq	L_.str.8(%rip), %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%eax, %eax
	callq	_IWL_DEBUG_SCAN
LBB0_74:
	movq	_EIO@GOTPCREL(%rip), %rcx
LBB0_75:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_66:
	movq	%rdx, %rbx
	movl	8(%rdx), %eax
	testl	%eax, %eax
	je	LBB0_71
LBB0_72:
	movq	24(%rbx), %rdi
	callq	_le16_to_cpu
	ud2
LBB0_22:
	xorl	%ebx, %ebx
	jmp	LBB0_29
LBB0_25:
	xorl	%ebx, %ebx
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_29
	.cfi_endproc
                                        ## -- End function
	.comm	_REPLY_SCAN_CMD,4,2             ## @REPLY_SCAN_CMD
	.comm	_IWL_RXON_CTX_BSS,8,3           ## @IWL_RXON_CTX_BSS
	.comm	_MAX_SCAN_CHANNEL,4,2           ## @MAX_SCAN_CHANNEL
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fail to allocate memory for scan\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IWL_PLCP_QUIET_THRESH,4,2      ## @IWL_PLCP_QUIET_THRESH
	.comm	_IWL_ACTIVE_QUIET_TIME,8,3      ## @IWL_ACTIVE_QUIET_TIME
L_.str.1:                               ## @.str.1
	.asciz	"Scanning while associated...\n"

L_.str.2:                               ## @.str.2
	.asciz	"suspend_time 0x%X beacon interval %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"Start internal passive scan.\n"

	.comm	_IWL_RADIO_RESET_DWELL_TIME,4,2 ## @IWL_RADIO_RESET_DWELL_TIME
L_.str.4:                               ## @.str.4
	.asciz	"Kicking off active scan\n"

	.comm	_WLAN_EID_SSID,4,2              ## @WLAN_EID_SSID
L_.str.5:                               ## @.str.5
	.asciz	"Start passive scan.\n"

	.comm	_TX_CMD_FLG_SEQ_CTL_MSK,4,2     ## @TX_CMD_FLG_SEQ_CTL_MSK
	.comm	_TX_CMD_LIFE_TIME_INFINITE,4,2  ## @TX_CMD_LIFE_TIME_INFINITE
	.comm	_RXON_FLG_BAND_24G_MSK,4,2      ## @RXON_FLG_BAND_24G_MSK
	.comm	_RXON_FLG_AUTO_DETECT_MSK,4,2   ## @RXON_FLG_AUTO_DETECT_MSK
	.comm	_RXON_FLG_CHANNEL_MODE_MSK,4,2  ## @RXON_FLG_CHANNEL_MODE_MSK
	.comm	_RXON_FLG_CHANNEL_MODE_POS,4,2  ## @RXON_FLG_CHANNEL_MODE_POS
	.comm	_CHANNEL_MODE_PURE_40,4,2       ## @CHANNEL_MODE_PURE_40
	.comm	_IWL_RATE_6M_PLCP,4,2           ## @IWL_RATE_6M_PLCP
	.comm	_IWL_RATE_1M_PLCP,4,2           ## @IWL_RATE_1M_PLCP
	.comm	_RATE_MCS_CCK_MSK,4,2           ## @RATE_MCS_CCK_MSK
	.comm	_TX_CMD_FLG_IGNORE_BT,4,2       ## @TX_CMD_FLG_IGNORE_BT
L_.str.6:                               ## @.str.6
	.asciz	"Invalid scan band\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_IWL_GOOD_CRC_TH_DEFAULT,8,3    ## @IWL_GOOD_CRC_TH_DEFAULT
	.comm	_IWL_GOOD_CRC_TH_DISABLED,8,3   ## @IWL_GOOD_CRC_TH_DISABLED
	.comm	_IWL_GOOD_CRC_TH_NEVER,8,3      ## @IWL_GOOD_CRC_TH_NEVER
	.comm	_STATUS_POWER_PMI,4,2           ## @STATUS_POWER_PMI
	.comm	_IEEE80211_CONF_IDLE,4,2        ## @IEEE80211_CONF_IDLE
L_.str.7:                               ## @.str.7
	.asciz	"chain_noise_data.active_chains: %u\n"

	.comm	_RXON_RX_CHAIN_VALID_POS,4,2    ## @RXON_RX_CHAIN_VALID_POS
	.comm	_RXON_RX_CHAIN_FORCE_MIMO_SEL_POS,4,2 ## @RXON_RX_CHAIN_FORCE_MIMO_SEL_POS
	.comm	_RXON_RX_CHAIN_FORCE_SEL_POS,4,2 ## @RXON_RX_CHAIN_FORCE_SEL_POS
	.comm	_RXON_RX_CHAIN_DRIVER_FORCE_POS,4,2 ## @RXON_RX_CHAIN_DRIVER_FORCE_POS
	.comm	_iwl_bcast_addr,4,2             ## @iwl_bcast_addr
	.comm	_RXON_FILTER_ACCEPT_GRP_MSK,4,2 ## @RXON_FILTER_ACCEPT_GRP_MSK
	.comm	_RXON_FILTER_BCON_AWARE_MSK,4,2 ## @RXON_FILTER_BCON_AWARE_MSK
L_.str.8:                               ## @.str.8
	.asciz	"channel count %d\n"

	.comm	_IWL_HCMD_DFL_NOCOPY,4,2        ## @IWL_HCMD_DFL_NOCOPY
	.comm	_STATUS_SCAN_HW,4,2             ## @STATUS_SCAN_HW
	.no_dead_strip	_iwlagn_request_scan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwlagn_request_scan
_iwlagn_request_scan:                   ; @iwlagn_request_scan
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x27, _IWL_RXON_CTX_BSS@GOTPAGE
Lloh1:
	ldr	x27, [x27, _IWL_RXON_CTX_BSS@GOTPAGEOFF]
	ldr	x8, [x0, #24]
Lloh2:
	adrp	x9, _MAX_SCAN_CHANNEL@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MAX_SCAN_CHANNEL@GOTPAGEOFF]
Lloh4:
	ldr	w21, [x9]
	ldr	x9, [x0, #104]
	ldr	w10, [x0]
	cmp	w10, #131
	b.ne	LBB0_3
; %bb.1:
	ldr	x10, [x19, #16]
	cbz	x10, LBB0_4
; %bb.2:
	ldr	w10, [x10]
	cmp	w10, w21
	cset	w0, gt
	b	LBB0_5
LBB0_3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	mov	w0, #1
LBB0_5:
	ldr	w26, [x9]
	ldr	x22, [x19, #80]
	ldr	x24, [x27]
	ldp	w23, w25, [x8]
	bl	_WARN_ON
	cbz	x0, LBB0_7
; %bb.6:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_66
LBB0_7:
	add	w21, w26, w21, lsl #2
	add	w26, w21, #112
	add	x0, x19, #96
	bl	_lockdep_assert_held
	str	w21, [sp, #52]                  ; 4-byte Folded Spill
	cbz	x20, LBB0_9
; %bb.8:
	mov	x0, x20
	bl	_iwl_rxon_ctx_from_vif
	mov	x24, x0
	ldr	x21, [x19, #88]
	cbnz	x21, LBB0_11
	b	LBB0_10
LBB0_9:
	add	x24, x22, x24, lsl #3
	ldr	x21, [x19, #88]
	cbnz	x21, LBB0_11
LBB0_10:
Lloh7:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x26
	bl	_kmalloc
	mov	x21, x0
	str	x0, [x19, #88]
	cbz	x0, LBB0_24
LBB0_11:
	mov	x0, x21
	mov	w1, #0
	mov	x2, x26
	bl	_memset
Lloh10:
	adrp	x8, _IWL_PLCP_QUIET_THRESH@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IWL_PLCP_QUIET_THRESH@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x21, #104]
Lloh13:
	adrp	x8, _IWL_ACTIVE_QUIET_TIME@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IWL_ACTIVE_QUIET_TIME@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	str	x8, [x21, #80]
	mov	x0, x19
	bl	_iwl_is_any_associated
	cbz	x0, LBB0_16
; %bb.12:
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_INFO
	ldr	w8, [x19]
	cmp	w8, #131
	b.ne	LBB0_14
; %bb.13:
	ldr	w22, [x20, #4]
	b	LBB0_15
LBB0_14:
	mov	w22, #0
LBB0_15:
	str	xzr, [x21, #88]
	mov	w0, #8192
	movk	w0, #3, lsl #16
	bl	_cpu_to_le32
	str	x0, [x21, #96]
	mov	w8, #100
	cmp	w22, #0
	csel	w22, w8, w22, eq
	sdiv	w9, w8, w22
	msub	w8, w9, w22, w8
	lsl	w8, w8, #10
	orr	w26, w8, w9, lsl #22
	mov	x0, x26
	bl	_cpu_to_le32
	str	x0, [x21, #88]
	stp	x26, x22, [sp]
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_SCAN
LBB0_16:
	ldr	w8, [x19]
	cmp	w8, #131
	str	x20, [sp, #56]                  ; 8-byte Folded Spill
	b.eq	LBB0_19
; %bb.17:
	mov	x20, x24
	cmp	w8, #130
	b.ne	LBB0_26
; %bb.18:
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_SCAN
Lloh22:
	adrp	x8, _IWL_RADIO_RESET_DWELL_TIME@GOTPAGE
Lloh23:
	ldr	x8, [x8, _IWL_RADIO_RESET_DWELL_TIME@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	mov	w22, #0
	mov	w24, #0
	str	xzr, [sp, #40]                  ; 8-byte Folded Spill
	mov	w11, #0
	str	x0, [x21, #80]
	b	LBB0_27
LBB0_19:
	ldr	x8, [x19, #16]
	ldr	w8, [x8, #32]
	cbz	w8, LBB0_25
; %bb.20:
	mov	x20, x24
Lloh25:
	adrp	x1, l_.str.4@PAGE
Lloh26:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_SCAN
	ldr	x9, [x19, #16]
	ldr	x8, [x9, #24]
	ldr	w11, [x8]
	ldr	x10, [x8, #8]
	str	x10, [sp, #40]                  ; 8-byte Folded Spill
	ldr	w9, [x9, #32]
	cmp	w9, #2
	b.lt	LBB0_69
; %bb.21:
	str	w11, [sp, #32]                  ; 4-byte Folded Spill
	mov	x26, #0
	sub	w11, w9, #1
	sub	x28, x9, #1
	mov	w9, #12
	mov	x10, #-12
	str	w11, [sp, #36]                  ; 4-byte Folded Spill
	umaddl	x22, w11, w9, x10
Lloh27:
	adrp	x24, _WLAN_EID_SSID@GOTPAGE
Lloh28:
	ldr	x24, [x24, _WLAN_EID_SSID@GOTPAGEOFF]
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x24]
	ldr	x10, [x21, #72]
	add	x10, x10, x26
	str	w9, [x10, #8]
	add	x8, x8, w28, uxtw #4
	ldr	w2, [x8]
	str	w2, [x10]
	ldr	w0, [x10, #4]
	ldr	x1, [x8, #8]
	bl	_memcpy
	cmp	x22, x26
	b.eq	LBB0_70
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #24]
	sub	x28, x28, #1
	add	x26, x26, #12
	b	LBB0_22
LBB0_24:
Lloh29:
	adrp	x1, l_.str@PAGE
Lloh30:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_SCAN
Lloh31:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_66
LBB0_25:
	mov	x20, x24
Lloh33:
	adrp	x1, l_.str.5@PAGE
Lloh34:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_SCAN
LBB0_26:
	mov	w22, #0
	mov	w24, #0
	str	xzr, [sp, #40]                  ; 8-byte Folded Spill
	mov	w11, #0
LBB0_27:
	mov	w28, #1
LBB0_28:
Lloh35:
	adrp	x8, _TX_CMD_FLG_SEQ_CTL_MSK@GOTPAGE
Lloh36:
	ldr	x8, [x8, _TX_CMD_FLG_SEQ_CTL_MSK@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	ldr	w9, [x20, #4]
Lloh38:
	adrp	x10, _TX_CMD_LIFE_TIME_INFINITE@GOTPAGE
Lloh39:
	ldr	x10, [x10, _TX_CMD_LIFE_TIME_INFINITE@GOTPAGEOFF]
	str	w9, [x21, #44]
Lloh40:
	ldr	w9, [x10]
	stp	w8, w9, [x21, #36]
	ldr	w8, [x19, #4]
	cmp	w8, #128
	b.eq	LBB0_33
; %bb.29:
	cmp	w8, #129
	b.ne	LBB0_34
; %bb.30:
	str	w11, [sp, #32]                  ; 4-byte Folded Spill
Lloh41:
	adrp	x8, _RXON_FLG_BAND_24G_MSK@GOTPAGE
Lloh42:
	ldr	x8, [x8, _RXON_FLG_BAND_24G_MSK@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
Lloh44:
	adrp	x9, _RXON_FLG_AUTO_DETECT_MSK@GOTPAGE
Lloh45:
	ldr	x9, [x9, _RXON_FLG_AUTO_DETECT_MSK@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x21]
	ldr	x8, [x19, #80]
	ldr	x9, [x27]
	lsl	x9, x9, #3
	ldr	w8, [x8, x9]
Lloh47:
	adrp	x9, _RXON_FLG_CHANNEL_MODE_MSK@GOTPAGE
Lloh48:
	ldr	x9, [x9, _RXON_FLG_CHANNEL_MODE_MSK@GOTPAGEOFF]
Lloh49:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_le32_to_cpu
Lloh50:
	adrp	x8, _RXON_FLG_CHANNEL_MODE_POS@GOTPAGE
Lloh51:
	ldr	x8, [x8, _RXON_FLG_CHANNEL_MODE_POS@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
	asr	w9, w0, w8
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_35
; %bb.31:
	mov	w27, #0
	ldr	w10, [x8, #16]
Lloh53:
	adrp	x8, _IWL_RATE_6M_PLCP@GOTPAGE
Lloh54:
	ldr	x8, [x8, _IWL_RATE_6M_PLCP@GOTPAGEOFF]
	cbnz	w10, LBB0_38
; %bb.32:
Lloh55:
	adrp	x10, _CHANNEL_MODE_PURE_40@GOTPAGE
Lloh56:
	ldr	x10, [x10, _CHANNEL_MODE_PURE_40@GOTPAGEOFF]
Lloh57:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_37
	b	LBB0_38
LBB0_33:
	stp	w24, w11, [sp, #28]             ; 8-byte Folded Spill
	str	w22, [sp, #36]                  ; 4-byte Folded Spill
	mov	w27, #0
Lloh58:
	adrp	x8, _IWL_RATE_6M_PLCP@GOTPAGE
Lloh59:
	ldr	x8, [x8, _IWL_RATE_6M_PLCP@GOTPAGEOFF]
Lloh60:
	ldr	w26, [x8]
	b	LBB0_41
LBB0_34:
Lloh61:
	adrp	x1, l_.str.6@PAGE
Lloh62:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_IWL_WARN
	b	LBB0_65
LBB0_35:
Lloh63:
	adrp	x8, _CHANNEL_MODE_PURE_40@GOTPAGE
Lloh64:
	ldr	x8, [x8, _CHANNEL_MODE_PURE_40@GOTPAGEOFF]
Lloh65:
	ldr	w8, [x8]
	cmp	w9, w8
	b.ne	LBB0_37
; %bb.36:
	mov	w27, #0
Lloh66:
	adrp	x8, _IWL_RATE_6M_PLCP@GOTPAGE
Lloh67:
	ldr	x8, [x8, _IWL_RATE_6M_PLCP@GOTPAGEOFF]
	b	LBB0_38
LBB0_37:
Lloh68:
	adrp	x8, _RATE_MCS_CCK_MSK@GOTPAGE
Lloh69:
	ldr	x8, [x8, _RATE_MCS_CCK_MSK@GOTPAGEOFF]
Lloh70:
	ldr	w27, [x8]
Lloh71:
	adrp	x8, _IWL_RATE_1M_PLCP@GOTPAGE
Lloh72:
	ldr	x8, [x8, _IWL_RATE_1M_PLCP@GOTPAGEOFF]
LBB0_38:
	ldr	w26, [x8]
	ldr	x8, [x19, #40]
	ldr	x8, [x8]
	str	w22, [sp, #36]                  ; 4-byte Folded Spill
	str	w24, [sp, #28]                  ; 4-byte Folded Spill
	cbz	x8, LBB0_41
; %bb.39:
	ldr	x8, [x8]
	cbz	x8, LBB0_41
; %bb.40:
Lloh73:
	adrp	x8, _TX_CMD_FLG_IGNORE_BT@GOTPAGE
Lloh74:
	ldr	x8, [x8, _TX_CMD_FLG_IGNORE_BT@GOTPAGEOFF]
Lloh75:
	ldr	w8, [x8]
	ldr	w9, [x21, #36]
	orr	w8, w9, w8
	str	w8, [x21, #36]
LBB0_41:
	ldr	x8, [x19, #72]
Lloh76:
	adrp	x9, _IWL_GOOD_CRC_TH_DEFAULT@GOTPAGE
Lloh77:
	ldr	x9, [x9, _IWL_GOOD_CRC_TH_DEFAULT@GOTPAGEOFF]
Lloh78:
	adrp	x10, _IWL_GOOD_CRC_TH_NEVER@GOTPAGE
Lloh79:
	ldr	x10, [x10, _IWL_GOOD_CRC_TH_NEVER@GOTPAGEOFF]
Lloh80:
	adrp	x11, _IWL_GOOD_CRC_TH_DISABLED@GOTPAGE
Lloh81:
	ldr	x11, [x11, _IWL_GOOD_CRC_TH_DISABLED@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x10, x11, eq
	cmp	w28, #0
	csel	x8, x8, x9, ne
	ldr	x8, [x8]
	str	x8, [x21, #64]
	ldr	w24, [x19, #4]
	cmp	w24, #129
	b.ne	LBB0_45
; %bb.42:
	ldr	x8, [x19, #40]
	ldr	x8, [x8]
	ldr	x20, [sp, #56]                  ; 8-byte Folded Reload
	cbz	x8, LBB0_46
; %bb.43:
	ldr	x8, [x8]
	cbz	x8, LBB0_46
; %bb.44:
	mov	x0, x25
	bl	_first_antenna
	mov	x25, x0
	b	LBB0_46
LBB0_45:
	ldr	x20, [sp, #56]                  ; 8-byte Folded Reload
LBB0_46:
	ldr	x8, [x19, #64]
	lsl	x22, x24, #2
	ldr	w1, [x8, x22]
	mov	x0, x19
	mov	x2, x25
	bl	_iwl_toggle_tx_ant
	ldr	x8, [x19, #64]
	str	w0, [x8, x22]
	bl	_iwl_ant_idx_to_flags
	orr	w1, w0, w27
	mov	x0, x26
	bl	_iwl_hw_set_rate_n_flags
	str	w0, [x21, #32]
Lloh82:
	adrp	x8, _STATUS_POWER_PMI@GOTPAGE
Lloh83:
	ldr	x8, [x8, _STATUS_POWER_PMI@GOTPAGEOFF]
Lloh84:
	ldr	w0, [x8]
	add	x1, x19, #8
	bl	_test_bit
	cbz	x0, LBB0_49
; %bb.47:
	ldr	x8, [x19, #56]
	ldr	w8, [x8]
Lloh85:
	adrp	x9, _IEEE80211_CONF_IDLE@GOTPAGE
Lloh86:
	ldr	x9, [x9, _IEEE80211_CONF_IDLE@GOTPAGEOFF]
Lloh87:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_49
; %bb.48:
	ldr	w8, [x19, #48]
	ands	w9, w8, w23
	csel	w23, w23, w9, eq
	str	x8, [sp]
Lloh88:
	adrp	x1, l_.str.7@PAGE
Lloh89:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_SCAN
	mov	x0, x23
	bl	_first_antenna
	mov	x23, x0
LBB0_49:
	ldr	x8, [x19, #40]
	ldr	x8, [x8]
	cbz	x8, LBB0_53
; %bb.50:
	ldr	x8, [x8]
	cbz	x8, LBB0_53
; %bb.51:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_53
; %bb.52:
	mov	x0, x23
	bl	_first_antenna
	mov	x23, x0
LBB0_53:
	ldr	x8, [x19, #24]
	ldr	w8, [x8]
Lloh90:
	adrp	x9, _RXON_RX_CHAIN_VALID_POS@GOTPAGE
Lloh91:
	ldr	x9, [x9, _RXON_RX_CHAIN_VALID_POS@GOTPAGEOFF]
Lloh92:
	ldr	w9, [x9]
	lsl	w8, w8, w9
Lloh93:
	adrp	x9, _RXON_RX_CHAIN_FORCE_MIMO_SEL_POS@GOTPAGE
Lloh94:
	ldr	x9, [x9, _RXON_RX_CHAIN_FORCE_MIMO_SEL_POS@GOTPAGEOFF]
Lloh95:
	ldr	w9, [x9]
	lsl	w9, w23, w9
	orr	w8, w9, w8
Lloh96:
	adrp	x9, _RXON_RX_CHAIN_FORCE_SEL_POS@GOTPAGE
Lloh97:
	ldr	x9, [x9, _RXON_RX_CHAIN_FORCE_SEL_POS@GOTPAGEOFF]
Lloh98:
	ldr	w9, [x9]
	lsl	w9, w23, w9
	orr	w8, w8, w9
Lloh99:
	adrp	x9, _RXON_RX_CHAIN_DRIVER_FORCE_POS@GOTPAGE
Lloh100:
	ldr	x9, [x9, _RXON_RX_CHAIN_DRIVER_FORCE_POS@GOTPAGEOFF]
Lloh101:
	ldr	w9, [x9]
	mov	w10, #1
	lsl	w9, w10, w9
	orr	w0, w8, w9
	bl	_cpu_to_le16
	str	x0, [x21, #56]
	ldr	w8, [x19]
	cmp	w8, #130
	b.eq	LBB0_56
; %bb.54:
	cmp	w8, #131
	b.ne	LBB0_58
; %bb.55:
	ldr	x0, [x21, #48]
	ldr	w1, [x20]
	ldr	x8, [x19, #16]
	ldr	x2, [x8, #8]
	ldr	w3, [x8, #4]
	ldr	x4, [sp, #40]                   ; 8-byte Folded Reload
	ldr	w5, [sp, #32]                   ; 4-byte Folded Reload
	b	LBB0_57
LBB0_56:
	ldr	x0, [x21, #48]
Lloh102:
	adrp	x8, _iwl_bcast_addr@GOTPAGE
Lloh103:
	ldr	x8, [x8, _iwl_bcast_addr@GOTPAGEOFF]
Lloh104:
	ldr	w1, [x8]
	mov	x2, #0
	mov	w3, #0
	mov	x4, #0
	mov	w5, #0
LBB0_57:
	ldr	w6, [sp, #52]                   ; 4-byte Folded Reload
	bl	_iwl_fill_probe_req
	mov	x22, x0
	b	LBB0_59
LBB0_58:
	bl	_BUG
	mov	w22, #0
LBB0_59:
	mov	x0, x22
	bl	_cpu_to_le16
	str	x0, [x21, #24]
Lloh105:
	adrp	x8, _RXON_FILTER_ACCEPT_GRP_MSK@GOTPAGE
Lloh106:
	ldr	x8, [x8, _RXON_FILTER_ACCEPT_GRP_MSK@GOTPAGEOFF]
Lloh107:
	ldr	w8, [x8]
Lloh108:
	adrp	x9, _RXON_FILTER_BCON_AWARE_MSK@GOTPAGE
Lloh109:
	ldr	x9, [x9, _RXON_FILTER_BCON_AWARE_MSK@GOTPAGEOFF]
Lloh110:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x21, #4]
	orr	w8, w8, w9
	str	w8, [x21, #4]
	ldr	w8, [x19]
	cmp	w8, #130
	b.eq	LBB0_62
; %bb.60:
	cmp	w8, #131
	b.ne	LBB0_67
; %bb.61:
	ldr	x8, [x21, #48]
	add	x5, x8, w22, sxtw #2
	mov	x0, x19
	mov	x1, x20
	mov	x2, x24
	ldr	w3, [sp, #28]                   ; 4-byte Folded Reload
	ldr	w4, [sp, #36]                   ; 4-byte Folded Reload
	bl	_iwl_get_channels_for_scan
	b	LBB0_63
LBB0_62:
	ldr	x8, [x21, #48]
	add	x3, x8, w22, sxtw #2
	mov	x0, x19
	mov	x1, x20
	mov	x2, x24
	bl	_iwl_get_channel_for_reset_scan
LBB0_63:
	str	w0, [x21, #8]
	cbnz	w0, LBB0_68
LBB0_64:
	str	xzr, [sp]
Lloh111:
	adrp	x1, l_.str.8@PAGE
Lloh112:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_SCAN
LBB0_65:
Lloh113:
	adrp	x8, _EIO@GOTPAGE
Lloh114:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_66:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_67:
	ldr	w0, [x21, #8]
	cbz	w0, LBB0_64
LBB0_68:
	ldr	x0, [x21, #24]
	bl	_le16_to_cpu
	brk	#0x1
LBB0_69:
	mov	w22, #0
	mov	w28, #0
	mov	w24, #1
	b	LBB0_28
LBB0_70:
	mov	w28, #0
	mov	w24, #1
	ldp	w11, w22, [sp, #32]             ; 8-byte Folded Reload
	b	LBB0_28
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGot	Lloh66, Lloh67
	.loh AdrpLdrGot	Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGot	Lloh80, Lloh81
	.loh AdrpLdrGot	Lloh78, Lloh79
	.loh AdrpLdrGot	Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.loh AdrpAdd	Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh99, Lloh100, Lloh101
	.loh AdrpLdrGotLdr	Lloh96, Lloh97, Lloh98
	.loh AdrpLdrGotLdr	Lloh93, Lloh94, Lloh95
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh102, Lloh103, Lloh104
	.loh AdrpLdrGotLdr	Lloh108, Lloh109, Lloh110
	.loh AdrpLdrGotLdr	Lloh105, Lloh106, Lloh107
	.loh AdrpAdd	Lloh111, Lloh112
	.loh AdrpLdrGot	Lloh113, Lloh114
	.cfi_endproc
                                        ; -- End function
	.comm	_REPLY_SCAN_CMD,4,2             ; @REPLY_SCAN_CMD
	.comm	_IWL_RXON_CTX_BSS,8,3           ; @IWL_RXON_CTX_BSS
	.comm	_MAX_SCAN_CHANNEL,4,2           ; @MAX_SCAN_CHANNEL
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fail to allocate memory for scan\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IWL_PLCP_QUIET_THRESH,4,2      ; @IWL_PLCP_QUIET_THRESH
	.comm	_IWL_ACTIVE_QUIET_TIME,8,3      ; @IWL_ACTIVE_QUIET_TIME
l_.str.1:                               ; @.str.1
	.asciz	"Scanning while associated...\n"

l_.str.2:                               ; @.str.2
	.asciz	"suspend_time 0x%X beacon interval %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"Start internal passive scan.\n"

	.comm	_IWL_RADIO_RESET_DWELL_TIME,4,2 ; @IWL_RADIO_RESET_DWELL_TIME
l_.str.4:                               ; @.str.4
	.asciz	"Kicking off active scan\n"

	.comm	_WLAN_EID_SSID,4,2              ; @WLAN_EID_SSID
l_.str.5:                               ; @.str.5
	.asciz	"Start passive scan.\n"

	.comm	_TX_CMD_FLG_SEQ_CTL_MSK,4,2     ; @TX_CMD_FLG_SEQ_CTL_MSK
	.comm	_TX_CMD_LIFE_TIME_INFINITE,4,2  ; @TX_CMD_LIFE_TIME_INFINITE
	.comm	_RXON_FLG_BAND_24G_MSK,4,2      ; @RXON_FLG_BAND_24G_MSK
	.comm	_RXON_FLG_AUTO_DETECT_MSK,4,2   ; @RXON_FLG_AUTO_DETECT_MSK
	.comm	_RXON_FLG_CHANNEL_MODE_MSK,4,2  ; @RXON_FLG_CHANNEL_MODE_MSK
	.comm	_RXON_FLG_CHANNEL_MODE_POS,4,2  ; @RXON_FLG_CHANNEL_MODE_POS
	.comm	_CHANNEL_MODE_PURE_40,4,2       ; @CHANNEL_MODE_PURE_40
	.comm	_IWL_RATE_6M_PLCP,4,2           ; @IWL_RATE_6M_PLCP
	.comm	_IWL_RATE_1M_PLCP,4,2           ; @IWL_RATE_1M_PLCP
	.comm	_RATE_MCS_CCK_MSK,4,2           ; @RATE_MCS_CCK_MSK
	.comm	_TX_CMD_FLG_IGNORE_BT,4,2       ; @TX_CMD_FLG_IGNORE_BT
l_.str.6:                               ; @.str.6
	.asciz	"Invalid scan band\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_IWL_GOOD_CRC_TH_DEFAULT,8,3    ; @IWL_GOOD_CRC_TH_DEFAULT
	.comm	_IWL_GOOD_CRC_TH_DISABLED,8,3   ; @IWL_GOOD_CRC_TH_DISABLED
	.comm	_IWL_GOOD_CRC_TH_NEVER,8,3      ; @IWL_GOOD_CRC_TH_NEVER
	.comm	_STATUS_POWER_PMI,4,2           ; @STATUS_POWER_PMI
	.comm	_IEEE80211_CONF_IDLE,4,2        ; @IEEE80211_CONF_IDLE
l_.str.7:                               ; @.str.7
	.asciz	"chain_noise_data.active_chains: %u\n"

	.comm	_RXON_RX_CHAIN_VALID_POS,4,2    ; @RXON_RX_CHAIN_VALID_POS
	.comm	_RXON_RX_CHAIN_FORCE_MIMO_SEL_POS,4,2 ; @RXON_RX_CHAIN_FORCE_MIMO_SEL_POS
	.comm	_RXON_RX_CHAIN_FORCE_SEL_POS,4,2 ; @RXON_RX_CHAIN_FORCE_SEL_POS
	.comm	_RXON_RX_CHAIN_DRIVER_FORCE_POS,4,2 ; @RXON_RX_CHAIN_DRIVER_FORCE_POS
	.comm	_iwl_bcast_addr,4,2             ; @iwl_bcast_addr
	.comm	_RXON_FILTER_ACCEPT_GRP_MSK,4,2 ; @RXON_FILTER_ACCEPT_GRP_MSK
	.comm	_RXON_FILTER_BCON_AWARE_MSK,4,2 ; @RXON_FILTER_BCON_AWARE_MSK
l_.str.8:                               ; @.str.8
	.asciz	"channel count %d\n"

	.comm	_IWL_HCMD_DFL_NOCOPY,4,2        ; @IWL_HCMD_DFL_NOCOPY
	.comm	_STATUS_SCAN_HW,4,2             ; @STATUS_SCAN_HW
	.no_dead_strip	_iwlagn_request_scan
.subsections_via_symbols
