	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cw1200_hw_scan                 ## -- Begin function cw1200_hw_scan
	.p2align	4, 0x90
_cw1200_hw_scan:                        ## @cw1200_hw_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %r13
	movq	_WSM_FRAME_TYPE_PROBE_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	cmpq	$0, 104(%r13)
	je	LBB0_7
## %bb.1:
	movq	(%r13), %rax
	movq	_CW1200_JOIN_STATUS_AP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_3:
	movq	%rdx, %r14
	movq	%rdi, %r15
	movl	(%rdx), %edx
	cmpl	$1, %edx
	jne	LBB0_6
## %bb.4:
	movq	16(%r14), %rax
	movl	$1, %edx
	cmpq	$0, (%rax)
	jne	LBB0_6
## %bb.5:
	movl	$0, (%r14)
	xorl	%edx, %edx
LBB0_6:
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wiphy_dbg
	movl	(%r14), %eax
	movq	_WSM_SCAN_MAX_NUM_OF_SSIDS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jle	LBB0_11
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_8:
	xorl	%ebx, %ebx
LBB0_9:
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	leaq	80(%r13), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_down
	leaq	92(%r13), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	104(%r13), %rax
	movl	(%rax), %esi
	movq	32(%r14), %r8
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_ieee80211_probereq_get
	movq	%rax, -80(%rbp)
	testq	%rax, %rax
	je	LBB0_17
## %bb.12:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	32(%r14), %rdx
	testq	%rdx, %rdx
	je	LBB0_14
## %bb.13:
	movl	40(%r14), %esi
	movq	%rax, %rdi
	callq	_skb_put_data
LBB0_14:
	leaq	-80(%rbp), %rsi
	movq	%r13, %rdi
	callq	_wsm_set_template_frame
	movl	%eax, %ebx
	testl	%eax, %eax
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_16
## %bb.15:
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_wsm_set_probe_responder
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_18
LBB0_16:
	movq	-80(%rbp), %rdi
	callq	_dev_kfree_skb
	movq	%r12, %rdi
	callq	_mutex_unlock
	movq	%r15, %rdi
	callq	_up
	jmp	LBB0_10
LBB0_17:
	movq	%r12, %rdi
	callq	_mutex_unlock
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_up
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_18:
	movq	%r13, %rdi
	callq	_wsm_lock_tx
	movq	72(%r13), %rdi
	callq	_BUG_ON
	movq	%r14, 72(%r13)
	movq	$0, 8(%r13)
	movq	$0, 64(%r13)
	movq	24(%r14), %rax
	movq	%rax, 48(%r13)
	movq	%rax, 56(%r13)
	movq	8(%r14), %rcx
	leaq	(%rax,%rcx,4), %rax
	movq	%rax, 40(%r13)
	movl	96(%r13), %eax
	movl	%eax, 32(%r13)
	cmpl	$0, (%r14)
	jle	LBB0_21
## %bb.19:
	movq	16(%r14), %rax
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %r13
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	24(%rcx), %r14
	shlq	$4, %rbx
	movq	8(%r14,%rbx), %rdi
	movl	8(%rax,%r15), %esi
	movl	$8, %edx
	callq	_memcpy
	movq	16(%r13), %rax
	movq	(%rax,%r15), %rcx
	movq	%rcx, (%r14,%rbx)
	movq	%r13, %r14
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	8(%r13), %rbx
	incq	%rbx
	movq	%rbx, 8(%r13)
	incq	%r12
	movslq	(%r14), %rcx
	addq	$16, %r15
	cmpq	%rcx, %r12
	jl	LBB0_20
LBB0_21:
	movq	-80(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_23
## %bb.22:
	callq	_dev_kfree_skb
LBB0_23:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	movl	88(%r13), %edi
	addq	$16, %r13
	movq	%r13, %rsi
	callq	_queue_work
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_WSM_FRAME_TYPE_PROBE_REQUEST,4,2 ## @WSM_FRAME_TYPE_PROBE_REQUEST
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CW1200_JOIN_STATUS_AP,8,3      ## @CW1200_JOIN_STATUS_AP
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[SCAN] Scan request for %d SSIDs.\n"

	.comm	_WSM_SCAN_MAX_NUM_OF_SSIDS,4,2  ## @WSM_SCAN_MAX_NUM_OF_SSIDS
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cw1200_hw_scan                 ; -- Begin function cw1200_hw_scan
	.p2align	2
_cw1200_hw_scan:                        ; @cw1200_hw_scan
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, [x0, #8]
Lloh0:
	adrp	x8, _WSM_FRAME_TYPE_PROBE_REQUEST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WSM_FRAME_TYPE_PROBE_REQUEST@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	ldr	x8, [x19, #104]
	cbz	x8, LBB0_8
; %bb.1:
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _CW1200_JOIN_STATUS_AP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CW1200_JOIN_STATUS_AP@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_9
LBB0_3:
	mov	x20, x2
	mov	x23, x0
	ldr	w2, [x2]
	cmp	w2, #1
	b.ne	LBB0_7
; %bb.4:
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.5:
	mov	w2, #1
	b	LBB0_7
LBB0_6:
	mov	w2, #0
	str	wzr, [x20]
LBB0_7:
	ldr	w0, [x23]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wiphy_dbg
	ldr	w8, [x20]
Lloh10:
	adrp	x9, _WSM_SCAN_MAX_NUM_OF_SSIDS@GOTPAGE
Lloh11:
	ldr	x9, [x9, _WSM_SCAN_MAX_NUM_OF_SSIDS@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	cmp	w8, w9
	b.le	LBB0_11
LBB0_8:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_10:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_11:
	add	x22, x19, #80
	mov	x0, x22
	bl	_down
	add	x21, x19, #92
	mov	x0, x21
	bl	_mutex_lock
	ldr	x8, [x19, #104]
	ldr	w1, [x8]
	ldr	x4, [x20, #32]
	mov	x0, x23
	mov	x2, #0
	mov	w3, #0
	bl	_ieee80211_probereq_get
	str	x0, [sp]
	cbz	x0, LBB0_17
; %bb.12:
	ldr	x2, [x20, #32]
	cbz	x2, LBB0_14
; %bb.13:
	ldr	w1, [x20, #40]
	bl	_skb_put_data
LBB0_14:
	mov	x1, sp
	mov	x0, x19
	bl	_wsm_set_template_frame
	mov	x23, x0
	cbnz	w0, LBB0_16
; %bb.15:
	mov	x0, x19
	mov	w1, #1
	bl	_wsm_set_probe_responder
	mov	x23, x0
	cbz	w0, LBB0_18
LBB0_16:
	ldr	x0, [sp]
	bl	_dev_kfree_skb
	mov	x0, x21
	bl	_mutex_unlock
	mov	x0, x22
	bl	_up
	b	LBB0_10
LBB0_17:
	mov	x0, x21
	bl	_mutex_unlock
	mov	x0, x22
	bl	_up
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_9
LBB0_18:
	mov	x0, x19
	bl	_wsm_lock_tx
	ldr	x0, [x19, #72]
	bl	_BUG_ON
	str	xzr, [x19, #8]
	stp	xzr, x20, [x19, #64]
	ldr	x8, [x20, #24]
	stp	x8, x8, [x19, #48]
	ldr	x9, [x20, #8]
	add	x8, x8, x9, lsl #2
	str	x8, [x19, #40]
	ldr	w8, [x19, #96]
	str	w8, [x19, #32]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_21
; %bb.19:
	mov	x22, #0
	mov	x9, #0
	mov	x23, #0
	ldr	x8, [x20, #16]
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x19, #24]
	add	x24, x10, x9, lsl #4
	ldr	x0, [x24, #8]
	add	x8, x8, x22
	ldr	w1, [x8, #8]
	mov	w2, #8
	bl	_memcpy
	ldr	x8, [x20, #16]
	ldr	x9, [x8, x22]
	str	x9, [x24]
	ldr	x9, [x19, #8]
	add	x9, x9, #1
	str	x9, [x19, #8]
	add	x23, x23, #1
	ldrsw	x10, [x20]
	add	x22, x22, #16
	cmp	x23, x10
	b.lt	LBB0_20
LBB0_21:
	ldr	x0, [sp]
	cbz	x0, LBB0_23
; %bb.22:
	bl	_dev_kfree_skb
LBB0_23:
	mov	x0, x21
	bl	_mutex_unlock
	ldr	w0, [x19, #88]
	add	x1, x19, #16
	bl	_queue_work
	mov	w23, #0
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_WSM_FRAME_TYPE_PROBE_REQUEST,4,2 ; @WSM_FRAME_TYPE_PROBE_REQUEST
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CW1200_JOIN_STATUS_AP,8,3      ; @CW1200_JOIN_STATUS_AP
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[SCAN] Scan request for %d SSIDs.\n"

	.comm	_WSM_SCAN_MAX_NUM_OF_SSIDS,4,2  ; @WSM_SCAN_MAX_NUM_OF_SSIDS
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
