	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath9k_get_survey
_ath9k_get_survey:                      ## @ath9k_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r13d
	movq	%rdi, %rbx
	movq	8(%rdi), %r12
	movl	8(%r12), %edi
	callq	_ath9k_hw_common
	movq	%rax, %r15
	movq	_CONFIG_ATH9K_TX99@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_3:
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	testl	%r13d, %r13d
	jne	LBB0_5
## %bb.4:
	movq	%r12, %rdi
	callq	_ath_update_survey_stats
LBB0_5:
	movq	(%rbx), %rax
	movq	(%rax), %rcx
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rcx,%rax,8), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movl	(%rax), %esi
	movl	%r13d, %edx
	subl	%esi, %edx
	jge	LBB0_8
## %bb.10:
	cmpl	%esi, %r13d
	jl	LBB0_12
	jmp	LBB0_11
LBB0_6:
	movl	%r13d, %edx
LBB0_8:
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rcx,%rax,8), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movl	(%rax), %esi
	movl	%edx, %r13d
	cmpl	%esi, %r13d
	jge	LBB0_11
LBB0_12:
	movq	8(%rax), %rax
	movslq	%r13d, %rcx
	leaq	(%rax,%rcx,4), %rbx
	movslq	(%rax,%rcx,4), %rsi
	shlq	$2, %rsi
	addq	(%r12), %rsi
	movq	%r14, %rdi
	movl	$8, %edx
	callq	_memcpy
	movq	%rbx, (%r14)
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_11:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movq	_ENOENT@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CONFIG_ATH9K_TX99,4,2          ## @CONFIG_ATH9K_TX99
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_NL80211_BAND_2GHZ,8,3          ## @NL80211_BAND_2GHZ
	.comm	_NL80211_BAND_5GHZ,8,3          ## @NL80211_BAND_5GHZ
	.comm	_ENOENT,4,2                     ## @ENOENT
	.no_dead_strip	_ath9k_get_survey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath9k_get_survey
_ath9k_get_survey:                      ; @ath9k_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	x19, x2
	mov	x22, x1
	mov	x23, x0
	ldr	x21, [x0, #8]
	ldr	w0, [x21, #8]
	bl	_ath9k_hw_common
	mov	x20, x0
Lloh0:
	adrp	x8, _CONFIG_ATH9K_TX99@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CONFIG_ATH9K_TX99@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_IS_ENABLED
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_12
LBB0_2:
	mov	x0, x20
	bl	_spin_lock_irqsave
	cbnz	w22, LBB0_4
; %bb.3:
	mov	x0, x21
	bl	_ath_update_survey_stats
LBB0_4:
	ldr	x8, [x23]
	ldr	x9, [x8]
Lloh5:
	adrp	x8, _NL80211_BAND_2GHZ@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NL80211_BAND_2GHZ@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	x8, [x9, x8, lsl #3]
	cbz	x8, LBB0_7
; %bb.5:
	ldr	w10, [x8]
	subs	w11, w22, w10
	b.lt	LBB0_9
; %bb.6:
	mov	x22, x11
LBB0_7:
Lloh8:
	adrp	x8, _NL80211_BAND_5GHZ@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NL80211_BAND_5GHZ@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	x8, [x9, x8, lsl #3]
	cbz	x8, LBB0_11
; %bb.8:
	ldr	w10, [x8]
LBB0_9:
	cmp	w22, w10
	b.ge	LBB0_11
; %bb.10:
	ldr	x8, [x8, #8]
	add	x22, x8, w22, sxtw #2
	ldrsw	x8, [x22]
	ldr	x9, [x21]
	add	x1, x9, x8, lsl #2
	mov	x0, x19
	mov	w2, #8
	bl	_memcpy
	str	x22, [x19]
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	w0, #0
	b	LBB0_13
LBB0_11:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
Lloh11:
	adrp	x8, _ENOENT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_CONFIG_ATH9K_TX99,4,2          ; @CONFIG_ATH9K_TX99
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_NL80211_BAND_2GHZ,8,3          ; @NL80211_BAND_2GHZ
	.comm	_NL80211_BAND_5GHZ,8,3          ; @NL80211_BAND_5GHZ
	.comm	_ENOENT,4,2                     ; @ENOENT
	.no_dead_strip	_ath9k_get_survey
.subsections_via_symbols
