	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_get_survey
_ath10k_get_survey:                     ## @ath10k_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	%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
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, %r13d
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	movslq	%esi, %r12
	shlq	$4, %r12
	addq	24(%r15), %r12
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %r14
	testq	%r14, %r14
	je	LBB0_1
## %bb.2:
	movl	(%r14), %edx
	movl	%r13d, %ecx
	subl	%edx, %ecx
	jge	LBB0_3
## %bb.5:
	cmpl	%edx, %r13d
	jl	LBB0_7
	jmp	LBB0_6
LBB0_1:
	movl	%r13d, %ecx
LBB0_3:
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rax,%rdx,8), %r14
	testq	%r14, %r14
	je	LBB0_6
## %bb.4:
	movl	(%r14), %edx
	movl	%ecx, %r13d
	cmpl	%edx, %r13d
	jge	LBB0_6
LBB0_7:
	movslq	%r13d, %r13
	shlq	$2, %r13
	movq	8(%r14), %rsi
	addq	%r13, %rsi
	movq	%r15, %rdi
	callq	_ath10k_mac_update_bss_chan_survey
	leaq	16(%r15), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_bh
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$16, %edx
	callq	_memcpy
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_bh
	movq	%rbx, %rcx
	addq	8(%r14), %r13
	movq	%r13, 8(%rbx)
	xorl	%ebx, %ebx
	cmpq	%r13, 8(%r15)
	jne	LBB0_9
## %bb.8:
	movq	_SURVEY_INFO_IN_USE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rcx)
	jmp	LBB0_9
LBB0_6:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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_IN_USE,4,2         ## @SURVEY_INFO_IN_USE
	.no_dead_strip	_ath10k_get_survey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_get_survey
_ath10k_get_survey:                     ; @ath10k_get_survey
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x19, [x0, #8]
	ldr	x24, [x19, #24]
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x22]
	ldr	x9, [x8]
Lloh0:
	adrp	x8, _NL80211_BAND_2GHZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NL80211_BAND_2GHZ@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x23, [x9, x8, lsl #3]
	mov	x8, x21
	cbz	x23, LBB0_3
; %bb.1:
	ldr	w10, [x23]
	mov	x8, x21
	subs	w11, w21, w10
	b.lt	LBB0_5
; %bb.2:
	mov	x8, x11
LBB0_3:
Lloh3:
	adrp	x10, _NL80211_BAND_5GHZ@GOTPAGE
Lloh4:
	ldr	x10, [x10, _NL80211_BAND_5GHZ@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	ldr	x23, [x9, x10, lsl #3]
	cbz	x23, LBB0_8
; %bb.4:
	ldr	w10, [x23]
LBB0_5:
	cmp	w8, w10
	b.ge	LBB0_8
; %bb.6:
	add	x21, x24, w21, sxtw #4
	ldr	x9, [x23, #8]
	sbfiz	x24, x8, #2, #32
	add	x1, x9, x24
	mov	x0, x19
	bl	_ath10k_mac_update_bss_chan_survey
	add	x22, x19, #16
	mov	x0, x22
	bl	_spin_lock_bh
	mov	x0, x20
	mov	x1, x21
	mov	w2, #16
	bl	_memcpy
	mov	x0, x22
	bl	_spin_unlock_bh
	ldr	x8, [x23, #8]
	ldr	x9, [x19, #8]
	add	x8, x8, x24
	cmp	x9, x8
	str	x8, [x20, #8]
	mov	w21, #0
	b.ne	LBB0_9
; %bb.7:
Lloh6:
	adrp	x8, _SURVEY_INFO_IN_USE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SURVEY_INFO_IN_USE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
	b	LBB0_9
LBB0_8:
Lloh9:
	adrp	x8, _ENOENT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_9:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.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_IN_USE,4,2         ; @SURVEY_INFO_IN_USE
	.no_dead_strip	_ath10k_get_survey
.subsections_via_symbols
