	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prism54_get_scan
_prism54_get_scan:                      ## @prism54_get_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	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_islpci_get_state
	movq	_PRV_STATE_INIT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_2
## %bb.1:
	movl	$0, (%r15)
	xorl	%r12d, %r12d
	jmp	LBB0_10
LBB0_2:
	movq	_DOT11_OID_NOISEFLOOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %r12
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%r12, %r8
	callq	_mgt_get_request
	movl	%eax, %r13d
	movl	-64(%rbp), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	_DOT11_OID_BSSLIST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%r12, %r8
	callq	_mgt_get_request
	movl	%eax, %r12d
	orl	%r13d, %r12d
	movq	-64(%rbp), %r13
	cmpl	$0, 8(%r13)
	jle	LBB0_3
## %bb.6:
	movl	%r12d, -52(%rbp)                ## 4-byte Spill
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movl	(%r15), %eax
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
	movq	%r14, %rbx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%eax, %rcx
	addq	%r14, %rcx
	movq	(%r13), %r8
	addq	%r12, %r8
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	movl	-56(%rbp), %r9d                 ## 4-byte Reload
	callq	_prism54_translate_bss
	movq	%rax, %rbx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movslq	(%rax), %rax
	leaq	(%r14,%rax), %rcx
	subq	%rbx, %rcx
	movq	_IW_EV_ADDR_LEN@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	cmpq	%rdx, %rcx
	jle	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%r15
	movslq	8(%r13), %rcx
	addq	$4, %r12
	cmpq	%rcx, %r15
	jl	LBB0_7
## %bb.5:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	jmp	LBB0_9
LBB0_3:
	movq	%r14, %rbx
	jmp	LBB0_9
LBB0_8:
	movq	_E2BIG@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	movq	-48(%rbp), %r15                 ## 8-byte Reload
LBB0_9:
	movq	%r13, %rdi
	callq	_kfree
	subl	%r14d, %ebx
	movl	%ebx, (%r15)
	movq	$0, 8(%r15)
LBB0_10:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PRV_STATE_INIT,8,3             ## @PRV_STATE_INIT
	.comm	_DOT11_OID_NOISEFLOOR,4,2       ## @DOT11_OID_NOISEFLOOR
	.comm	_DOT11_OID_BSSLIST,4,2          ## @DOT11_OID_BSSLIST
	.comm	_IW_EV_ADDR_LEN,4,2             ## @IW_EV_ADDR_LEN
	.comm	_E2BIG,4,2                      ## @E2BIG
	.no_dead_strip	_prism54_get_scan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prism54_get_scan
_prism54_get_scan:                      ; @prism54_get_scan
	.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	x20, x3
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	bl	_netdev_priv
	mov	x23, x0
	bl	_islpci_get_state
Lloh0:
	adrp	x8, _PRV_STATE_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PRV_STATE_INIT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_2
; %bb.1:
	mov	w23, #0
	str	wzr, [x19]
	b	LBB0_10
LBB0_2:
Lloh3:
	adrp	x8, _DOT11_OID_NOISEFLOOR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DOT11_OID_NOISEFLOOR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x4, sp, #8
	mov	x0, x23
	mov	w2, #0
	mov	x3, #0
	bl	_mgt_get_request
	mov	x24, x0
	ldr	w25, [sp, #8]
Lloh6:
	adrp	x8, _DOT11_OID_BSSLIST@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DOT11_OID_BSSLIST@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x4, sp, #8
	mov	x0, x23
	mov	w2, #0
	mov	x3, #0
	bl	_mgt_get_request
	orr	w23, w0, w24
	ldr	x24, [sp, #8]
	ldr	w8, [x24, #8]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.3:
	str	w23, [sp, #4]                   ; 4-byte Folded Spill
	mov	x27, #0
	mov	x28, #0
	ldr	w8, [x19]
Lloh9:
	adrp	x23, _IW_EV_ADDR_LEN@GOTPAGE
Lloh10:
	ldr	x23, [x23, _IW_EV_ADDR_LEN@GOTPAGEOFF]
	mov	x26, x20
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x3, x20, w8, sxtw
	ldr	x8, [x24]
	add	x4, x8, x27
	mov	x0, x22
	mov	x1, x21
	mov	x2, x26
	mov	x5, x25
	bl	_prism54_translate_bss
	mov	x26, x0
	ldrsw	x8, [x19]
	add	x9, x20, x8
	sub	x9, x9, x0
	ldrsw	x10, [x23]
	cmp	x9, x10
	b.le	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x28, x28, #1
	ldrsw	x9, [x24, #8]
	add	x27, x27, #4
	cmp	x28, x9
	b.lt	LBB0_4
; %bb.6:
	ldr	w23, [sp, #4]                   ; 4-byte Folded Reload
	b	LBB0_9
LBB0_7:
	mov	x26, x20
	b	LBB0_9
LBB0_8:
Lloh11:
	adrp	x8, _E2BIG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _E2BIG@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_9:
	mov	x0, x24
	bl	_kfree
	sub	w8, w26, w20
	str	w8, [x19]
	str	xzr, [x19, #8]
LBB0_10:
	mov	x0, x23
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_PRV_STATE_INIT,8,3             ; @PRV_STATE_INIT
	.comm	_DOT11_OID_NOISEFLOOR,4,2       ; @DOT11_OID_NOISEFLOOR
	.comm	_DOT11_OID_BSSLIST,4,2          ; @DOT11_OID_BSSLIST
	.comm	_IW_EV_ADDR_LEN,4,2             ; @IW_EV_ADDR_LEN
	.comm	_E2BIG,4,2                      ; @E2BIG
	.no_dead_strip	_prism54_get_scan
.subsections_via_symbols
