	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipw_request_scan_helper
_ipw_request_scan_helper:               ## @ipw_request_scan_helper
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %eax
	movq	_STATUS_INIT@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	testl	%eax, (%rcx)
	je	LBB0_17
## %bb.1:
	movq	_STATUS_EXIT_PENDING@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_17
## %bb.2:
	movl	%edx, %r15d
	movl	%esi, %r13d
	movq	%rdi, %r12
	leaq	32(%rdi), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	testl	%r15d, %r15d
	je	LBB0_4
## %bb.3:
	cmpq	$0, 8(%r12)
	je	LBB0_11
LBB0_4:
	movl	(%r12), %eax
	movq	_STATUS_SCANNING@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_6
LBB0_8:
	movq	_STATUS_SCAN_FORCED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
LBB0_9:
	movq	_STATUS_RF_KILL_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_18
## %bb.10:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_6
LBB0_11:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_IPW_DEBUG_HC
	movq	_STATUS_DIRECT_SCAN_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r12)
	jmp	LBB0_16
LBB0_12:
	movq	_STATUS_SCAN_ABORTING@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.13:
	leaq	L_.str.2(%rip), %rdi
LBB0_6:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_IPW_DEBUG_HC
	testl	%r15d, %r15d
	jne	LBB0_7
## %bb.14:
	movq	_STATUS_SCAN_PENDING@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_7:
	movq	_STATUS_DIRECT_SCAN_PENDING@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %eax
	orl	%eax, (%r12)
LBB0_16:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_17:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	leaq	-64(%rbp), %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	48(%r12), %rdi
	callq	_libipw_get_scans
	movl	%eax, %edi
	callq	_cpu_to_le32
	movl	%eax, -56(%rbp)
	movq	_IW_SCAN_TYPE_PASSIVE@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jne	LBB0_20
## %bb.19:
	leaq	L_.str.4(%rip), %rdi
	callq	_IPW_DEBUG_WX
	movq	_IPW_SCAN_PASSIVE_FULL_DWELL_SCAN@GOTPCREL(%rip), %rbx
	movq	(%rbx), %r13
	movq	%r12, %rdi
	callq	_ipw_passive_dwell_time
	movl	%eax, %edi
	callq	_cpu_to_le16
	movq	-48(%rbp), %rcx
	movq	(%rbx), %rdx
	movq	%rax, (%rcx,%rdx,8)
	jmp	LBB0_29
LBB0_20:
	movq	_CFG_SPEED_SCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	16(%r12), %eax
	movl	$20, %eax
	movl	$30, %edi
	cmovel	%eax, %edi
	callq	_cpu_to_le16
	movq	-48(%rbp), %rcx
	movq	_IPW_SCAN_ACTIVE_BROADCAST_SCAN@GOTPCREL(%rip), %r13
	movq	(%r13), %rdx
	movq	%rax, (%rcx,%rdx,8)
	movl	$20, %edi
	callq	_cpu_to_le16
	movq	-48(%rbp), %rcx
	movq	_IPW_SCAN_ACTIVE_BROADCAST_AND_DIRECT_SCAN@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdx
	movq	%rax, (%rcx,%rdx,8)
	movq	%r12, %rdi
	callq	_ipw_passive_dwell_time
	movl	%eax, %edi
	callq	_cpu_to_le16
	movq	-48(%rbp), %rcx
	movq	_IPW_SCAN_PASSIVE_FULL_DWELL_SCAN@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rax, (%rcx,%rdx,8)
	movl	$20, %edi
	callq	_cpu_to_le16
	movq	-48(%rbp), %rcx
	movq	_IPW_SCAN_ACTIVE_DIRECT_SCAN@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rax, (%rcx,%rdx,8)
	testl	%r15d, %r15d
	je	LBB0_23
## %bb.21:
	movl	44(%r12), %esi
	movq	8(%r12), %rdx
	movq	%r12, %rdi
	callq	_ipw_send_ssid
	movq	%rbx, %r13
	testl	%eax, %eax
	je	LBB0_28
## %bb.22:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rdi
	jmp	LBB0_26
LBB0_23:
	movl	(%r12), %eax
	movq	_STATUS_ROAMING@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_27
LBB0_24:
	movl	40(%r12), %esi
	movq	24(%r12), %rdx
	movq	%r12, %rdi
	callq	_ipw_send_ssid
	movq	%rbx, %r13
	testl	%eax, %eax
	je	LBB0_28
## %bb.25:
	movl	%eax, %ebx
	leaq	L_.str.6(%rip), %rdi
LBB0_26:
	xorl	%eax, %eax
	callq	_IPW_DEBUG_HC
	jmp	LBB0_16
LBB0_27:
	movq	_STATUS_ASSOCIATED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_35
LBB0_28:
	movq	(%r13), %r13
LBB0_29:
	leaq	-64(%rbp), %rbx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	callq	_ipw_add_scan_channels
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_ipw_send_scan_request_ext
	testl	%eax, %eax
	je	LBB0_31
## %bb.30:
	movl	%eax, %ebx
	leaq	L_.str.7(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_IPW_DEBUG_HC
	jmp	LBB0_16
LBB0_31:
	movl	(%r12), %eax
	movq	_STATUS_SCANNING@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r12)
	testl	%r15d, %r15d
	je	LBB0_33
## %bb.32:
	movq	_STATUS_DIRECT_SCAN_PENDING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, (%r12)
	movq	$0, 8(%r12)
	jmp	LBB0_34
LBB0_33:
	movq	_STATUS_SCAN_PENDING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, (%r12)
LBB0_34:
	addq	$36, %r12
	movq	_IPW_SCAN_CHECK_WATCHDOG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_schedule_delayed_work
	xorl	%ebx, %ebx
	jmp	LBB0_16
LBB0_35:
	movq	_CFG_STATIC_ESSID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%r12)
	je	LBB0_28
## %bb.36:
	movl	-56(%rbp), %edi
	callq	_le32_to_cpu
	testb	$1, %al
	jne	LBB0_24
	jmp	LBB0_28
	.cfi_endproc
                                        ## -- End function
	.comm	_STATUS_INIT,4,2                ## @STATUS_INIT
	.comm	_STATUS_EXIT_PENDING,4,2        ## @STATUS_EXIT_PENDING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Direct scan requested but no SSID to scan for\n"

	.comm	_STATUS_DIRECT_SCAN_PENDING,4,2 ## @STATUS_DIRECT_SCAN_PENDING
	.comm	_STATUS_SCANNING,4,2            ## @STATUS_SCANNING
L_.str.1:                               ## @.str.1
	.asciz	"Concurrent scan requested.  Queuing.\n"

	.comm	_STATUS_SCAN_PENDING,4,2        ## @STATUS_SCAN_PENDING
	.comm	_STATUS_SCAN_FORCED,4,2         ## @STATUS_SCAN_FORCED
	.comm	_STATUS_SCAN_ABORTING,4,2       ## @STATUS_SCAN_ABORTING
L_.str.2:                               ## @.str.2
	.asciz	"Scan request while abort pending.  Queuing.\n"

	.comm	_STATUS_RF_KILL_MASK,4,2        ## @STATUS_RF_KILL_MASK
L_.str.3:                               ## @.str.3
	.asciz	"Queuing scan due to RF Kill activation\n"

	.comm	_IW_SCAN_TYPE_PASSIVE,4,2       ## @IW_SCAN_TYPE_PASSIVE
L_.str.4:                               ## @.str.4
	.asciz	"use passive scanning\n"

	.comm	_IPW_SCAN_PASSIVE_FULL_DWELL_SCAN,8,3 ## @IPW_SCAN_PASSIVE_FULL_DWELL_SCAN
	.comm	_CFG_SPEED_SCAN,4,2             ## @CFG_SPEED_SCAN
	.comm	_IPW_SCAN_ACTIVE_BROADCAST_SCAN,8,3 ## @IPW_SCAN_ACTIVE_BROADCAST_SCAN
	.comm	_IPW_SCAN_ACTIVE_BROADCAST_AND_DIRECT_SCAN,8,3 ## @IPW_SCAN_ACTIVE_BROADCAST_AND_DIRECT_SCAN
	.comm	_IPW_SCAN_ACTIVE_DIRECT_SCAN,8,3 ## @IPW_SCAN_ACTIVE_DIRECT_SCAN
L_.str.5:                               ## @.str.5
	.asciz	"Attempt to send SSID command  failed\n"

	.comm	_STATUS_ROAMING,4,2             ## @STATUS_ROAMING
	.comm	_STATUS_ASSOCIATED,4,2          ## @STATUS_ASSOCIATED
	.comm	_CFG_STATIC_ESSID,4,2           ## @CFG_STATIC_ESSID
L_.str.6:                               ## @.str.6
	.asciz	"Attempt to send SSID command failed.\n"

L_.str.7:                               ## @.str.7
	.asciz	"Sending scan command failed: %08X\n"

	.comm	_IPW_SCAN_CHECK_WATCHDOG,4,2    ## @IPW_SCAN_CHECK_WATCHDOG
	.comm	_IPW_A_MODE,4,2                 ## @IPW_A_MODE
	.comm	_IPW_B_MODE,4,2                 ## @IPW_B_MODE
	.comm	_IW_MODE_MONITOR,8,3            ## @IW_MODE_MONITOR
	.no_dead_strip	_ipw_request_scan_helper
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipw_request_scan_helper
_ipw_request_scan_helper:               ; @ipw_request_scan_helper
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _STATUS_INIT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _STATUS_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x9, _STATUS_EXIT_PENDING@GOTPAGE
Lloh4:
	ldr	x9, [x9, _STATUS_EXIT_PENDING@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
LBB0_2:
	mov	w22, #0
	b	LBB0_16
LBB0_3:
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	add	x19, x0, #32
	mov	x0, x19
	bl	_mutex_lock
	cbz	w21, LBB0_5
; %bb.4:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_10
LBB0_5:
	ldr	w8, [x20]
Lloh6:
	adrp	x23, _STATUS_SCANNING@GOTPAGE
Lloh7:
	ldr	x23, [x23, _STATUS_SCANNING@GOTPAGEOFF]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_7:
Lloh10:
	adrp	x9, _STATUS_SCAN_FORCED@GOTPAGE
Lloh11:
	ldr	x9, [x9, _STATUS_SCAN_FORCED@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
LBB0_8:
Lloh13:
	adrp	x9, _STATUS_RF_KILL_MASK@GOTPAGE
Lloh14:
	ldr	x9, [x9, _STATUS_RF_KILL_MASK@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.9:
Lloh16:
	adrp	x0, l_.str.3@PAGE
Lloh17:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_13
LBB0_10:
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	bl	_IPW_DEBUG_HC
	mov	w22, #0
Lloh20:
	adrp	x8, _STATUS_DIRECT_SCAN_PENDING@GOTPAGE
Lloh21:
	ldr	x8, [x8, _STATUS_DIRECT_SCAN_PENDING@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	ldr	w9, [x20]
	bic	w8, w9, w8
	b	LBB0_14
LBB0_11:
Lloh23:
	adrp	x9, _STATUS_SCAN_ABORTING@GOTPAGE
Lloh24:
	ldr	x9, [x9, _STATUS_SCAN_ABORTING@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.12:
Lloh26:
	adrp	x0, l_.str.2@PAGE
Lloh27:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_13:
	bl	_IPW_DEBUG_HC
	mov	w22, #0
Lloh28:
	adrp	x8, _STATUS_DIRECT_SCAN_PENDING@GOTPAGE
Lloh29:
	ldr	x8, [x8, _STATUS_DIRECT_SCAN_PENDING@GOTPAGEOFF]
Lloh30:
	adrp	x9, _STATUS_SCAN_PENDING@GOTPAGE
Lloh31:
	ldr	x9, [x9, _STATUS_SCAN_PENDING@GOTPAGEOFF]
	cmp	w21, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
LBB0_14:
	str	w8, [x20]
LBB0_15:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_16:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_17:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	ldr	x0, [x20, #48]
	bl	_libipw_get_scans
	bl	_cpu_to_le32
	str	w0, [sp, #16]
Lloh32:
	adrp	x8, _IW_SCAN_TYPE_PASSIVE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _IW_SCAN_TYPE_PASSIVE@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_19
; %bb.18:
Lloh35:
	adrp	x0, l_.str.4@PAGE
Lloh36:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_IPW_DEBUG_WX
Lloh37:
	adrp	x24, _IPW_SCAN_PASSIVE_FULL_DWELL_SCAN@GOTPAGE
Lloh38:
	ldr	x24, [x24, _IPW_SCAN_PASSIVE_FULL_DWELL_SCAN@GOTPAGEOFF]
	ldr	x22, [x24]
	mov	x0, x20
	bl	_ipw_passive_dwell_time
	bl	_cpu_to_le16
	ldr	x8, [sp, #24]
	ldr	x9, [x24]
	str	x0, [x8, x9, lsl #3]
	b	LBB0_29
LBB0_19:
Lloh39:
	adrp	x8, _CFG_SPEED_SCAN@GOTPAGE
Lloh40:
	ldr	x8, [x8, _CFG_SPEED_SCAN@GOTPAGEOFF]
	ldr	w9, [x20, #16]
Lloh41:
	ldr	w8, [x8]
	tst	w8, w9
	mov	w8, #30
	mov	w9, #20
	csel	w0, w9, w8, eq
	bl	_cpu_to_le16
	ldr	x8, [sp, #24]
Lloh42:
	adrp	x9, _IPW_SCAN_ACTIVE_BROADCAST_SCAN@GOTPAGE
Lloh43:
	ldr	x9, [x9, _IPW_SCAN_ACTIVE_BROADCAST_SCAN@GOTPAGEOFF]
Lloh44:
	ldr	x9, [x9]
	str	x0, [x8, x9, lsl #3]
	mov	w0, #20
	bl	_cpu_to_le16
	ldr	x8, [sp, #24]
Lloh45:
	adrp	x9, _IPW_SCAN_ACTIVE_BROADCAST_AND_DIRECT_SCAN@GOTPAGE
Lloh46:
	ldr	x9, [x9, _IPW_SCAN_ACTIVE_BROADCAST_AND_DIRECT_SCAN@GOTPAGEOFF]
Lloh47:
	ldr	x9, [x9]
	str	x0, [x8, x9, lsl #3]
	mov	x0, x20
	bl	_ipw_passive_dwell_time
	bl	_cpu_to_le16
	ldr	x8, [sp, #24]
Lloh48:
	adrp	x9, _IPW_SCAN_PASSIVE_FULL_DWELL_SCAN@GOTPAGE
Lloh49:
	ldr	x9, [x9, _IPW_SCAN_PASSIVE_FULL_DWELL_SCAN@GOTPAGEOFF]
Lloh50:
	ldr	x9, [x9]
	str	x0, [x8, x9, lsl #3]
	mov	w0, #20
	bl	_cpu_to_le16
	ldr	x8, [sp, #24]
Lloh51:
	adrp	x9, _IPW_SCAN_ACTIVE_DIRECT_SCAN@GOTPAGE
Lloh52:
	ldr	x9, [x9, _IPW_SCAN_ACTIVE_DIRECT_SCAN@GOTPAGEOFF]
Lloh53:
	ldr	x9, [x9]
	str	x0, [x8, x9, lsl #3]
	cbz	w21, LBB0_22
; %bb.20:
	ldr	w1, [x20, #44]
	ldr	x2, [x20, #8]
	mov	x0, x20
	bl	_ipw_send_ssid
	cbz	w0, LBB0_25
; %bb.21:
	mov	x22, x0
Lloh54:
	adrp	x0, l_.str.5@PAGE
Lloh55:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_IPW_DEBUG_HC
	b	LBB0_15
LBB0_22:
	ldr	w8, [x20]
Lloh56:
	adrp	x9, _STATUS_ROAMING@GOTPAGE
Lloh57:
	ldr	x9, [x9, _STATUS_ROAMING@GOTPAGEOFF]
Lloh58:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_26
LBB0_23:
	ldr	w1, [x20, #40]
	ldr	x2, [x20, #24]
	mov	x0, x20
	bl	_ipw_send_ssid
	cbz	w0, LBB0_25
; %bb.24:
	mov	x22, x0
Lloh59:
	adrp	x0, l_.str.6@PAGE
Lloh60:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_IPW_DEBUG_HC
	b	LBB0_15
LBB0_25:
Lloh61:
	adrp	x8, _IPW_SCAN_ACTIVE_BROADCAST_AND_DIRECT_SCAN@GOTPAGE
Lloh62:
	ldr	x8, [x8, _IPW_SCAN_ACTIVE_BROADCAST_AND_DIRECT_SCAN@GOTPAGEOFF]
	b	LBB0_28
LBB0_26:
Lloh63:
	adrp	x9, _STATUS_ASSOCIATED@GOTPAGE
Lloh64:
	ldr	x9, [x9, _STATUS_ASSOCIATED@GOTPAGEOFF]
Lloh65:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_35
LBB0_27:
Lloh66:
	adrp	x8, _IPW_SCAN_ACTIVE_BROADCAST_SCAN@GOTPAGE
Lloh67:
	ldr	x8, [x8, _IPW_SCAN_ACTIVE_BROADCAST_SCAN@GOTPAGEOFF]
LBB0_28:
	ldr	x22, [x8]
LBB0_29:
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, x22
	bl	_ipw_add_scan_channels
	add	x1, sp, #8
	mov	x0, x20
	bl	_ipw_send_scan_request_ext
	cbz	w0, LBB0_31
; %bb.30:
	mov	x22, x0
	str	x22, [sp]
Lloh68:
	adrp	x0, l_.str.7@PAGE
Lloh69:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_IPW_DEBUG_HC
	b	LBB0_15
LBB0_31:
	ldr	w8, [x23]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
	cbz	w21, LBB0_33
; %bb.32:
Lloh70:
	adrp	x9, _STATUS_DIRECT_SCAN_PENDING@GOTPAGE
Lloh71:
	ldr	x9, [x9, _STATUS_DIRECT_SCAN_PENDING@GOTPAGEOFF]
Lloh72:
	ldr	w9, [x9]
	bic	w8, w8, w9
	str	w8, [x20]
	str	xzr, [x20, #8]
	b	LBB0_34
LBB0_33:
Lloh73:
	adrp	x9, _STATUS_SCAN_PENDING@GOTPAGE
Lloh74:
	ldr	x9, [x9, _STATUS_SCAN_PENDING@GOTPAGEOFF]
Lloh75:
	ldr	w9, [x9]
	bic	w8, w8, w9
	str	w8, [x20]
LBB0_34:
	add	x0, x20, #36
Lloh76:
	adrp	x8, _IPW_SCAN_CHECK_WATCHDOG@GOTPAGE
Lloh77:
	ldr	x8, [x8, _IPW_SCAN_CHECK_WATCHDOG@GOTPAGEOFF]
Lloh78:
	ldr	w1, [x8]
	bl	_schedule_delayed_work
	mov	w22, #0
	b	LBB0_15
LBB0_35:
	ldr	w8, [x20, #16]
Lloh79:
	adrp	x9, _CFG_STATIC_ESSID@GOTPAGE
Lloh80:
	ldr	x9, [x9, _CFG_STATIC_ESSID@GOTPAGEOFF]
Lloh81:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_27
; %bb.36:
	ldr	w0, [sp, #16]
	bl	_le32_to_cpu
	tbnz	w0, #0, LBB0_23
	b	LBB0_27
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpLdrGot	Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGot	Lloh66, Lloh67
	.loh AdrpAdd	Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.cfi_endproc
                                        ; -- End function
	.comm	_STATUS_INIT,4,2                ; @STATUS_INIT
	.comm	_STATUS_EXIT_PENDING,4,2        ; @STATUS_EXIT_PENDING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Direct scan requested but no SSID to scan for\n"

	.comm	_STATUS_DIRECT_SCAN_PENDING,4,2 ; @STATUS_DIRECT_SCAN_PENDING
	.comm	_STATUS_SCANNING,4,2            ; @STATUS_SCANNING
l_.str.1:                               ; @.str.1
	.asciz	"Concurrent scan requested.  Queuing.\n"

	.comm	_STATUS_SCAN_PENDING,4,2        ; @STATUS_SCAN_PENDING
	.comm	_STATUS_SCAN_FORCED,4,2         ; @STATUS_SCAN_FORCED
	.comm	_STATUS_SCAN_ABORTING,4,2       ; @STATUS_SCAN_ABORTING
l_.str.2:                               ; @.str.2
	.asciz	"Scan request while abort pending.  Queuing.\n"

	.comm	_STATUS_RF_KILL_MASK,4,2        ; @STATUS_RF_KILL_MASK
l_.str.3:                               ; @.str.3
	.asciz	"Queuing scan due to RF Kill activation\n"

	.comm	_IW_SCAN_TYPE_PASSIVE,4,2       ; @IW_SCAN_TYPE_PASSIVE
l_.str.4:                               ; @.str.4
	.asciz	"use passive scanning\n"

	.comm	_IPW_SCAN_PASSIVE_FULL_DWELL_SCAN,8,3 ; @IPW_SCAN_PASSIVE_FULL_DWELL_SCAN
	.comm	_CFG_SPEED_SCAN,4,2             ; @CFG_SPEED_SCAN
	.comm	_IPW_SCAN_ACTIVE_BROADCAST_SCAN,8,3 ; @IPW_SCAN_ACTIVE_BROADCAST_SCAN
	.comm	_IPW_SCAN_ACTIVE_BROADCAST_AND_DIRECT_SCAN,8,3 ; @IPW_SCAN_ACTIVE_BROADCAST_AND_DIRECT_SCAN
	.comm	_IPW_SCAN_ACTIVE_DIRECT_SCAN,8,3 ; @IPW_SCAN_ACTIVE_DIRECT_SCAN
l_.str.5:                               ; @.str.5
	.asciz	"Attempt to send SSID command  failed\n"

	.comm	_STATUS_ROAMING,4,2             ; @STATUS_ROAMING
	.comm	_STATUS_ASSOCIATED,4,2          ; @STATUS_ASSOCIATED
	.comm	_CFG_STATIC_ESSID,4,2           ; @CFG_STATIC_ESSID
l_.str.6:                               ; @.str.6
	.asciz	"Attempt to send SSID command failed.\n"

l_.str.7:                               ; @.str.7
	.asciz	"Sending scan command failed: %08X\n"

	.comm	_IPW_SCAN_CHECK_WATCHDOG,4,2    ; @IPW_SCAN_CHECK_WATCHDOG
	.comm	_IPW_A_MODE,4,2                 ; @IPW_A_MODE
	.comm	_IPW_B_MODE,4,2                 ; @IPW_B_MODE
	.comm	_IW_MODE_MONITOR,8,3            ; @IW_MODE_MONITOR
	.no_dead_strip	_ipw_request_scan_helper
.subsections_via_symbols
