	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_wmi_event_chan_info_paired
_ath10k_wmi_event_chan_info_paired:     ## @ath10k_wmi_event_chan_info_paired
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	16(%rsi), %esi
	callq	_freq_to_idx
	movl	%eax, %r15d
	movq	16(%rbx), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %r15d
	jge	LBB0_8
## %bb.1:
	movl	(%r14), %eax
	movq	_WMI_CHAN_INFO_FLAG_COMPLETE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.3:
	xorl	%r12d, %r12d
	cmpl	$0, (%rbx)
	je	LBB0_5
## %bb.4:
	movq	16(%rbx), %rax
	movslq	%r15d, %rcx
	leaq	(%rax,%rcx,8), %rsi
	movl	12(%r14), %edx
	movl	%edx, 4(%rax,%rcx,8)
	movq	_SURVEY_INFO_NOISE_DBM@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, (%rax,%rcx,8)
	movl	4(%r14), %edx
	movl	8(%r14), %ecx
	movl	4(%rbx), %r8d
	movl	8(%rbx), %r9d
	movq	%rbx, %rdi
	callq	_ath10k_hw_fill_survey_time
	movl	(%r14), %eax
	jmp	LBB0_5
LBB0_8:
	movl	16(%r14), %edx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r15d, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath10k_warn                    ## TAILCALL
LBB0_2:
	movl	$1, %r12d
LBB0_5:
	movl	%r12d, (%rbx)
	movq	_WMI_CHAN_INFO_FLAG_PRE_COMPLETE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_7
## %bb.6:
	movl	8(%r14), %eax
	movl	%eax, 8(%rbx)
	movl	4(%r14), %eax
	movl	%eax, 4(%rbx)
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"chan info: invalid frequency %d (idx %d out of bounds)\n"

	.comm	_WMI_CHAN_INFO_FLAG_COMPLETE,4,2 ## @WMI_CHAN_INFO_FLAG_COMPLETE
	.comm	_SURVEY_INFO_NOISE_DBM,4,2      ## @SURVEY_INFO_NOISE_DBM
	.comm	_WMI_CHAN_INFO_FLAG_PRE_COMPLETE,4,2 ## @WMI_CHAN_INFO_FLAG_PRE_COMPLETE
	.no_dead_strip	_ath10k_wmi_event_chan_info_paired
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_wmi_event_chan_info_paired
_ath10k_wmi_event_chan_info_paired:     ; @ath10k_wmi_event_chan_info_paired
	.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	x20, x1
	mov	x19, x0
	ldr	w1, [x1, #16]
	bl	_freq_to_idx
	mov	x21, x0
	ldr	x0, [x19, #16]
	bl	_ARRAY_SIZE
	cmp	w21, w0
	b.ge	LBB0_4
; %bb.1:
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _WMI_CHAN_INFO_FLAG_COMPLETE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WMI_CHAN_INFO_FLAG_COMPLETE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.2:
	ldr	w9, [x19]
	cbz	w9, LBB0_6
; %bb.3:
	ldr	x8, [x19, #16]
	add	x1, x8, w21, sxtw #3
	ldr	w8, [x20, #12]
	str	w8, [x1, #4]
Lloh3:
	adrp	x8, _SURVEY_INFO_NOISE_DBM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SURVEY_INFO_NOISE_DBM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x1]
	ldp	w2, w3, [x20, #4]
	ldp	w4, w5, [x19, #4]
	mov	x0, x19
	bl	_ath10k_hw_fill_survey_time
	mov	w9, #0
	ldr	w8, [x20]
	b	LBB0_6
LBB0_4:
	ldr	w2, [x20, #16]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x21
	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
	b	_ath10k_warn
LBB0_5:
	mov	w9, #1
LBB0_6:
	str	w9, [x19]
Lloh8:
	adrp	x9, _WMI_CHAN_INFO_FLAG_PRE_COMPLETE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _WMI_CHAN_INFO_FLAG_PRE_COMPLETE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_8
; %bb.7:
	ldur	d0, [x20, #4]
	stur	d0, [x19, #4]
LBB0_8:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"chan info: invalid frequency %d (idx %d out of bounds)\n"

	.comm	_WMI_CHAN_INFO_FLAG_COMPLETE,4,2 ; @WMI_CHAN_INFO_FLAG_COMPLETE
	.comm	_SURVEY_INFO_NOISE_DBM,4,2      ; @SURVEY_INFO_NOISE_DBM
	.comm	_WMI_CHAN_INFO_FLAG_PRE_COMPLETE,4,2 ; @WMI_CHAN_INFO_FLAG_PRE_COMPLETE
	.no_dead_strip	_ath10k_wmi_event_chan_info_paired
.subsections_via_symbols
