	.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_unpaired
_ath10k_wmi_event_chan_info_unpaired:   ## @ath10k_wmi_event_chan_info_unpaired
	.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	%rdi, %rbx
	movq	_WMI_CHAN_INFO_FLAG_COMPLETE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rsi)
	je	LBB0_1
## %bb.5:
	movq	_ATH10K_DBG_WMI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath10k_dbg                     ## TAILCALL
LBB0_1:
	movq	%rsi, %r14
	movl	20(%rsi), %esi
	movq	%rbx, %rdi
	callq	_freq_to_idx
	movl	%eax, %r15d
	movq	(%rbx), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %r15d
	jge	LBB0_6
## %bb.2:
	cmpl	$0, 4(%r14)
	je	LBB0_4
## %bb.3:
	movq	(%rbx), %r12
	movslq	%r15d, %rbx
	shlq	$4, %rbx
	leaq	(%r12,%rbx), %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movl	16(%r14), %eax
	movl	%eax, 12(%r12,%rbx)
	movl	4(%r14), %ecx
	movl	8(%r14), %eax
	cltd
	idivl	%ecx
	cltq
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rdx
	shrq	$63, %rdx
	sarq	$38, %rax
	addl	%edx, %eax
	movl	%eax, (%r12,%rbx)
	movl	12(%r14), %eax
	cltd
	idivl	%ecx
	cltq
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$38, %rax
	addl	%ecx, %eax
	movl	%eax, 4(%r12,%rbx)
	movq	_SURVEY_INFO_NOISE_DBM@GOTPCREL(%rip), %rax
	movq	_SURVEY_INFO_TIME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_SURVEY_INFO_TIME_BUSY@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	orl	%ecx, 8(%r12,%rbx)
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	20(%r14), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r15d, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath10k_warn                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WMI_CHAN_INFO_FLAG_COMPLETE,4,2 ## @WMI_CHAN_INFO_FLAG_COMPLETE
	.comm	_ATH10K_DBG_WMI,4,2             ## @ATH10K_DBG_WMI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"chan info report completed\n"

L_.str.1:                               ## @.str.1
	.asciz	"chan info: invalid frequency %d (idx %d out of bounds)\n"

	.comm	_SURVEY_INFO_NOISE_DBM,4,2      ## @SURVEY_INFO_NOISE_DBM
	.comm	_SURVEY_INFO_TIME,4,2           ## @SURVEY_INFO_TIME
	.comm	_SURVEY_INFO_TIME_BUSY,4,2      ## @SURVEY_INFO_TIME_BUSY
	.no_dead_strip	_ath10k_wmi_event_chan_info_unpaired
.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_unpaired
_ath10k_wmi_event_chan_info_unpaired:   ; @ath10k_wmi_event_chan_info_unpaired
	.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, x0
	ldr	w8, [x1]
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_2
; %bb.1:
Lloh3:
	adrp	x8, _ATH10K_DBG_WMI@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATH10K_DBG_WMI@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	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_dbg
LBB0_2:
	mov	x19, x1
	ldr	w1, [x1, #20]
	mov	x0, x20
	bl	_freq_to_idx
	mov	x21, x0
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	cmp	w21, w0
	b.ge	LBB0_6
; %bb.3:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_5
; %bb.4:
	ldr	x8, [x20]
	add	x20, x8, w21, sxtw #4
	mov	x0, x20
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldp	w9, w8, [x19, #12]
	str	w8, [x20, #12]
	ldp	w10, w8, [x19, #4]
	sdiv	w8, w8, w10
	mov	w11, #19923
	movk	w11, #4194, lsl #16
	smull	x8, w8, w11
	lsr	x12, x8, #63
	asr	x8, x8, #38
	add	w8, w8, w12
	sdiv	w9, w9, w10
	smull	x9, w9, w11
	lsr	x10, x9, #63
	asr	x9, x9, #38
	add	w9, w9, w10
	stp	w8, w9, [x20]
Lloh8:
	adrp	x8, _SURVEY_INFO_NOISE_DBM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SURVEY_INFO_NOISE_DBM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _SURVEY_INFO_TIME@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SURVEY_INFO_TIME@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
Lloh14:
	adrp	x10, _SURVEY_INFO_TIME_BUSY@GOTPAGE
Lloh15:
	ldr	x10, [x10, _SURVEY_INFO_TIME_BUSY@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh16:
	ldr	w9, [x10]
	orr	w8, w8, w9
	ldr	w9, [x20, #8]
	orr	w8, w8, w9
	str	w8, [x20, #8]
LBB0_5:
	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_6:
	ldr	w2, [x19, #20]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_WMI_CHAN_INFO_FLAG_COMPLETE,4,2 ; @WMI_CHAN_INFO_FLAG_COMPLETE
	.comm	_ATH10K_DBG_WMI,4,2             ; @ATH10K_DBG_WMI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"chan info report completed\n"

l_.str.1:                               ; @.str.1
	.asciz	"chan info: invalid frequency %d (idx %d out of bounds)\n"

	.comm	_SURVEY_INFO_NOISE_DBM,4,2      ; @SURVEY_INFO_NOISE_DBM
	.comm	_SURVEY_INFO_TIME,4,2           ; @SURVEY_INFO_TIME
	.comm	_SURVEY_INFO_TIME_BUSY,4,2      ; @SURVEY_INFO_TIME_BUSY
	.no_dead_strip	_ath10k_wmi_event_chan_info_unpaired
.subsections_via_symbols
