	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwl8k_get_survey
_mwl8k_get_survey:                      ## @mwl8k_get_survey
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	16(%rdi), %rax
	cmpq	$0, 16(%rax)
	je	LBB0_9
## %bb.1:
	movq	(%rdi), %rcx
	movq	(%rcx), %rcx
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rcx,%rdx,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.3:
	movl	(%rbx), %edi
	movl	%esi, %edx
	subl	%edi, %edx
	jge	LBB0_4
## %bb.6:
	cmpl	%edi, %esi
	jl	LBB0_8
	jmp	LBB0_7
LBB0_9:
	testl	%esi, %esi
	jne	LBB0_7
## %bb.10:
	movq	8(%rdi), %rcx
	movq	%rcx, 8(%r14)
	movq	_SURVEY_INFO_NOISE_DBM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%r14)
	movl	(%rax), %eax
	movl	%eax, (%r14)
	jmp	LBB0_11
LBB0_2:
	movl	%esi, %edx
LBB0_4:
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movq	(%rcx,%rsi,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.5:
	movl	(%rbx), %edi
	movl	%edx, %esi
	cmpl	%edi, %esi
	jge	LBB0_7
LBB0_8:
	movslq	%esi, %r15
	shlq	$2, %r15
	movq	8(%rax), %rsi
	addq	%r15, %rsi
	movq	%r14, %rdi
	movl	$16, %edx
	callq	_memcpy
	addq	8(%rbx), %r15
	movq	%r15, 8(%r14)
LBB0_11:
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_7:
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_BAND_2GHZ,8,3          ## @NL80211_BAND_2GHZ
	.comm	_NL80211_BAND_5GHZ,8,3          ## @NL80211_BAND_5GHZ
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_SURVEY_INFO_NOISE_DBM,4,2      ## @SURVEY_INFO_NOISE_DBM
	.no_dead_strip	_mwl8k_get_survey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwl8k_get_survey
_mwl8k_get_survey:                      ; @mwl8k_get_survey
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
                                        ; kill: def $w1 killed $w1 def $x1
	mov	x8, x0
	ldr	x9, [x0, #16]
	ldr	x10, [x9, #16]
	cbz	x10, LBB0_8
; %bb.1:
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh0:
	adrp	x10, _NL80211_BAND_2GHZ@GOTPAGE
Lloh1:
	ldr	x10, [x10, _NL80211_BAND_2GHZ@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	ldr	x20, [x8, x10, lsl #3]
	cbz	x20, LBB0_4
; %bb.2:
	ldr	w10, [x20]
	subs	w11, w1, w10
	b.lt	LBB0_6
; %bb.3:
	mov	x1, x11
LBB0_4:
Lloh3:
	adrp	x10, _NL80211_BAND_5GHZ@GOTPAGE
Lloh4:
	ldr	x10, [x10, _NL80211_BAND_5GHZ@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	ldr	x20, [x8, x10, lsl #3]
	cbz	x20, LBB0_9
; %bb.5:
	ldr	w10, [x20]
LBB0_6:
	cmp	w1, w10
	b.ge	LBB0_9
; %bb.7:
	ldr	x8, [x9, #8]
	sbfiz	x21, x1, #2, #32
	add	x1, x8, x21
	mov	x0, x19
	mov	w2, #16
	bl	_memcpy
	mov	w0, #0
	ldr	x8, [x20, #8]
	add	x8, x8, x21
	str	x8, [x19, #8]
	b	LBB0_10
LBB0_8:
	cbz	w1, LBB0_11
LBB0_9:
Lloh6:
	adrp	x8, _ENOENT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_11:
	mov	w0, #0
	ldr	x8, [x8, #8]
	str	x8, [x19, #8]
Lloh9:
	adrp	x8, _SURVEY_INFO_NOISE_DBM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SURVEY_INFO_NOISE_DBM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x9]
	stp	w9, w8, [x19]
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_BAND_2GHZ,8,3          ; @NL80211_BAND_2GHZ
	.comm	_NL80211_BAND_5GHZ,8,3          ; @NL80211_BAND_5GHZ
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_SURVEY_INFO_NOISE_DBM,4,2      ; @SURVEY_INFO_NOISE_DBM
	.no_dead_strip	_mwl8k_get_survey
.subsections_via_symbols
