	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_get_signal_strength
_iwl_mvm_get_signal_strength:           ## @iwl_mvm_get_signal_strength
	.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, %r14
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rsi), %rax
	movq	_IWL_RX_INFO_ENERGY_ANT_ABC_IDX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_le32_to_cpu
	movl	%eax, %ebx
	movq	_IWL_RX_INFO_ENERGY_ANT_A_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	andl	%ebx, %r15d
	movq	_IWL_RX_INFO_ENERGY_ANT_A_POS@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %r15d
	negl	%r15d
	movq	_S8_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmovael	%eax, %r15d
	movq	_IWL_RX_INFO_ENERGY_ANT_B_MSK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	andl	%ebx, %r13d
	movq	_IWL_RX_INFO_ENERGY_ANT_B_POS@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %r13d
	negl	%r13d
	cmovael	%eax, %r13d
	movq	_IWL_RX_INFO_ENERGY_ANT_C_MSK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %ebx
	movq	_IWL_RX_INFO_ENERGY_ANT_C_POS@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %ebx
	negl	%ebx
	cmovael	%eax, %ebx
	movl	%r15d, %edi
	movl	%r13d, %esi
	callq	_max
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_max
	movl	%eax, %r12d
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %edx
	movl	%r13d, %ecx
	movl	%ebx, %r8d
	movl	%eax, %r9d
	callq	_IWL_DEBUG_STATS
	movl	%r12d, (%r14)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_le16_to_cpu
	movq	_RX_RES_PHY_FLAGS_ANTENNA@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_RX_RES_PHY_FLAGS_ANTENNA_POS@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movl	%eax, 4(%r14)
	movq	8(%r14), %rax
	movl	%r15d, (%rax)
	movl	%r13d, 4(%rax)
	movl	%ebx, 8(%rax)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_RX_INFO_ENERGY_ANT_ABC_IDX,8,3 ## @IWL_RX_INFO_ENERGY_ANT_ABC_IDX
	.comm	_IWL_RX_INFO_ENERGY_ANT_A_MSK,4,2 ## @IWL_RX_INFO_ENERGY_ANT_A_MSK
	.comm	_IWL_RX_INFO_ENERGY_ANT_A_POS,4,2 ## @IWL_RX_INFO_ENERGY_ANT_A_POS
	.comm	_S8_MIN,4,2                     ## @S8_MIN
	.comm	_IWL_RX_INFO_ENERGY_ANT_B_MSK,4,2 ## @IWL_RX_INFO_ENERGY_ANT_B_MSK
	.comm	_IWL_RX_INFO_ENERGY_ANT_B_POS,4,2 ## @IWL_RX_INFO_ENERGY_ANT_B_POS
	.comm	_IWL_RX_INFO_ENERGY_ANT_C_MSK,4,2 ## @IWL_RX_INFO_ENERGY_ANT_C_MSK
	.comm	_IWL_RX_INFO_ENERGY_ANT_C_POS,4,2 ## @IWL_RX_INFO_ENERGY_ANT_C_POS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"energy In A %d B %d C %d , and max %d\n"

	.comm	_RX_RES_PHY_FLAGS_ANTENNA,4,2   ## @RX_RES_PHY_FLAGS_ANTENNA
	.comm	_RX_RES_PHY_FLAGS_ANTENNA_POS,4,2 ## @RX_RES_PHY_FLAGS_ANTENNA_POS
	.no_dead_strip	_iwl_mvm_get_signal_strength
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_mvm_get_signal_strength
_iwl_mvm_get_signal_strength:           ; @iwl_mvm_get_signal_strength
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
	ldr	x8, [x1, #8]
Lloh0:
	adrp	x9, _IWL_RX_INFO_ENERGY_ANT_ABC_IDX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IWL_RX_INFO_ENERGY_ANT_ABC_IDX@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
	bl	_le32_to_cpu
Lloh3:
	adrp	x8, _IWL_RX_INFO_ENERGY_ANT_A_MSK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IWL_RX_INFO_ENERGY_ANT_A_MSK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh6:
	adrp	x9, _IWL_RX_INFO_ENERGY_ANT_A_POS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IWL_RX_INFO_ENERGY_ANT_A_POS@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _S8_MIN@GOTPAGE
Lloh10:
	ldr	x10, [x10, _S8_MIN@GOTPAGEOFF]
	asr	w8, w8, w9
Lloh11:
	ldr	w9, [x10]
	cmp	w8, #0
	csneg	w21, w9, w8, eq
Lloh12:
	adrp	x8, _IWL_RX_INFO_ENERGY_ANT_B_MSK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IWL_RX_INFO_ENERGY_ANT_B_MSK@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh15:
	adrp	x10, _IWL_RX_INFO_ENERGY_ANT_B_POS@GOTPAGE
Lloh16:
	ldr	x10, [x10, _IWL_RX_INFO_ENERGY_ANT_B_POS@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	asr	w8, w8, w10
	cmp	w8, #0
	csneg	w23, w9, w8, eq
Lloh18:
	adrp	x8, _IWL_RX_INFO_ENERGY_ANT_C_MSK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IWL_RX_INFO_ENERGY_ANT_C_MSK@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh21:
	adrp	x10, _IWL_RX_INFO_ENERGY_ANT_C_POS@GOTPAGE
Lloh22:
	ldr	x10, [x10, _IWL_RX_INFO_ENERGY_ANT_C_POS@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	asr	w8, w8, w10
	cmp	w8, #0
	csneg	w24, w9, w8, eq
	mov	x0, x21
	mov	x1, x23
	bl	_max
	mov	x1, x24
	bl	_max
	mov	x25, x0
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, x21
	mov	x3, x23
	mov	x4, x24
	mov	x5, x25
	bl	_IWL_DEBUG_STATS
	str	w25, [x19]
	ldr	w0, [x20]
	bl	_le16_to_cpu
Lloh26:
	adrp	x8, _RX_RES_PHY_FLAGS_ANTENNA@GOTPAGE
Lloh27:
	ldr	x8, [x8, _RX_RES_PHY_FLAGS_ANTENNA@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh29:
	adrp	x9, _RX_RES_PHY_FLAGS_ANTENNA_POS@GOTPAGE
Lloh30:
	ldr	x9, [x9, _RX_RES_PHY_FLAGS_ANTENNA_POS@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	asr	w8, w8, w9
	str	w8, [x19, #4]
	ldr	x8, [x19, #8]
	stp	w21, w23, [x8]
	str	w24, [x8, #8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_RX_INFO_ENERGY_ANT_ABC_IDX,8,3 ; @IWL_RX_INFO_ENERGY_ANT_ABC_IDX
	.comm	_IWL_RX_INFO_ENERGY_ANT_A_MSK,4,2 ; @IWL_RX_INFO_ENERGY_ANT_A_MSK
	.comm	_IWL_RX_INFO_ENERGY_ANT_A_POS,4,2 ; @IWL_RX_INFO_ENERGY_ANT_A_POS
	.comm	_S8_MIN,4,2                     ; @S8_MIN
	.comm	_IWL_RX_INFO_ENERGY_ANT_B_MSK,4,2 ; @IWL_RX_INFO_ENERGY_ANT_B_MSK
	.comm	_IWL_RX_INFO_ENERGY_ANT_B_POS,4,2 ; @IWL_RX_INFO_ENERGY_ANT_B_POS
	.comm	_IWL_RX_INFO_ENERGY_ANT_C_MSK,4,2 ; @IWL_RX_INFO_ENERGY_ANT_C_MSK
	.comm	_IWL_RX_INFO_ENERGY_ANT_C_POS,4,2 ; @IWL_RX_INFO_ENERGY_ANT_C_POS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"energy In A %d B %d C %d , and max %d\n"

	.comm	_RX_RES_PHY_FLAGS_ANTENNA,4,2   ; @RX_RES_PHY_FLAGS_ANTENNA
	.comm	_RX_RES_PHY_FLAGS_ANTENNA_POS,4,2 ; @RX_RES_PHY_FLAGS_ANTENNA_POS
	.no_dead_strip	_iwl_mvm_get_signal_strength
.subsections_via_symbols
