	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_he_get_ppe_val
_iwl_mvm_he_get_ppe_val:                ## @iwl_mvm_he_get_ppe_val
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	leal	7(%rbx), %ecx
	testl	%esi, %esi
	cmovnsl	%esi, %ecx
	movl	%ecx, %eax
	sarl	$3, %eax
	andl	$-8, %ecx
	subl	%ecx, %ebx
	cmpl	$5, %ebx
	jg	LBB0_2
## %bb.1:
	cltq
	movl	(%r14,%rax,4), %r14d
	movl	%ebx, %ecx
	sarl	%cl, %r14d
	movq	_IEEE80211_PPE_THRES_INFO_PPET_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	decl	%eax
	andl	%r14d, %eax
	jmp	LBB0_3
LBB0_2:
	movl	$8, %r15d
	subl	%ebx, %r15d
	movslq	%eax, %r13
	movl	4(%r14,%r13,4), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_IEEE80211_PPE_THRES_INFO_PPET_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	subl	%r15d, %edi
	callq	_BIT
	movl	%eax, %r12d
	decl	%r12d
	andl	-44(%rbp), %r12d                ## 4-byte Folded Reload
	movl	%r15d, %ecx
	shll	%cl, %r12d
	movl	(%r14,%r13,4), %r14d
	movl	%ebx, %ecx
	sarl	%cl, %r14d
	movl	%r15d, %edi
	callq	_BIT
	decl	%eax
	andl	%r14d, %eax
	addl	%r12d, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_PPE_THRES_INFO_PPET_SIZE,4,2 ## @IEEE80211_PPE_THRES_INFO_PPET_SIZE
	.no_dead_strip	_iwl_mvm_he_get_ppe_val
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_mvm_he_get_ppe_val
_iwl_mvm_he_get_ppe_val:                ; @iwl_mvm_he_get_ppe_val
	.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
	add	w8, w1, #7
	cmp	w1, #0
	csel	w9, w8, w1, lt
	asr	w8, w9, #3
	and	w9, w9, #0xfffffff8
	sub	w20, w1, w9
	cmp	w20, #5
	b.gt	LBB0_2
; %bb.1:
	ldr	w8, [x0, w8, sxtw #2]
	asr	w19, w8, w20
Lloh0:
	adrp	x8, _IEEE80211_PPE_THRES_INFO_PPET_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_PPE_THRES_INFO_PPET_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_BIT
	sub	w8, w0, #1
	and	w0, w8, w19
	b	LBB0_3
LBB0_2:
	mov	w9, #8
	add	x21, x0, w8, sxtw #2
	ldr	w22, [x21, #4]
Lloh3:
	adrp	x8, _IEEE80211_PPE_THRES_INFO_PPET_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IEEE80211_PPE_THRES_INFO_PPET_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	sub	w19, w9, w20
	sub	w0, w8, w19
	bl	_BIT
	sub	w8, w0, #1
	and	w8, w8, w22
	lsl	w22, w8, w19
	ldr	w8, [x21]
	asr	w20, w8, w20
	mov	x0, x19
	bl	_BIT
	sub	w8, w0, #1
	and	w8, w8, w20
	add	w0, w8, w22
LBB0_3:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_PPE_THRES_INFO_PPET_SIZE,4,2 ; @IEEE80211_PPE_THRES_INFO_PPET_SIZE
	.no_dead_strip	_iwl_mvm_he_get_ppe_val
.subsections_via_symbols
