	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee80211_he_ppet_size
_ieee80211_he_ppet_size:                ## @ieee80211_he_ppet_size
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_HE_PHYCAP_PPE_THRESHOLD_PRESENT_IDX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_HE_PHYCAP_PPE_THRESHOLD_PRESENT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rsi,%rcx,4)
	je	LBB0_5
## %bb.1:
	movl	%edi, %eax
	movq	_HE_PPE_THRES_RU_INDEX_BITMASK_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%edi, %edx
	sarl	%cl, %edx
	movq	_HE_PPE_THRES_RU_INDEX_BITMASK_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %edx
	je	LBB0_7
## %bb.2:
	xorl	%ecx, %ecx
	movl	%edx, %esi
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edx, %edi
	andl	$1, %edi
	addl	%edi, %ecx
	sarl	%esi
	cmpl	$1, %edx
	movl	%esi, %edx
	ja	LBB0_3
## %bb.4:
	addl	%ecx, %ecx
	leal	(%rcx,%rcx,2), %ecx
	jmp	LBB0_8
LBB0_5:
	xorl	%eax, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_7:
	xorl	%ecx, %ecx
LBB0_8:
	movq	_HE_PPE_THRES_NSS_MASK@GOTPCREL(%rip), %rdx
	andl	(%rdx), %eax
	incl	%eax
	imull	%ecx, %eax
	leal	15(%rax), %ecx
	addl	$22, %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$3, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HE_PHYCAP_PPE_THRESHOLD_PRESENT_IDX,8,3 ## @HE_PHYCAP_PPE_THRESHOLD_PRESENT_IDX
	.comm	_HE_PHYCAP_PPE_THRESHOLD_PRESENT,4,2 ## @HE_PHYCAP_PPE_THRESHOLD_PRESENT
	.comm	_HE_PPE_THRES_RU_INDEX_BITMASK_SHIFT,4,2 ## @HE_PPE_THRES_RU_INDEX_BITMASK_SHIFT
	.comm	_HE_PPE_THRES_RU_INDEX_BITMASK_MASK,4,2 ## @HE_PPE_THRES_RU_INDEX_BITMASK_MASK
	.comm	_HE_PPE_THRES_NSS_MASK,4,2      ## @HE_PPE_THRES_NSS_MASK
	.no_dead_strip	_ieee80211_he_ppet_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ieee80211_he_ppet_size
_ieee80211_he_ppet_size:                ; @ieee80211_he_ppet_size
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _HE_PHYCAP_PPE_THRESHOLD_PRESENT_IDX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HE_PHYCAP_PPE_THRESHOLD_PRESENT_IDX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w8, [x1, x8, lsl #2]
Lloh3:
	adrp	x9, _HE_PHYCAP_PPE_THRESHOLD_PRESENT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HE_PHYCAP_PPE_THRESHOLD_PRESENT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.1:
Lloh6:
	adrp	x8, _HE_PPE_THRES_RU_INDEX_BITMASK_SHIFT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HE_PPE_THRES_RU_INDEX_BITMASK_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	asr	w8, w0, w8
Lloh9:
	adrp	x9, _HE_PPE_THRES_RU_INDEX_BITMASK_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _HE_PPE_THRES_RU_INDEX_BITMASK_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	ands	w8, w8, w9
	b.eq	LBB0_5
; %bb.2:
	mov	w9, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	and	w10, w8, #0x1
	add	w9, w10, w9
	asr	w10, w8, #1
	cmp	w8, #1
	mov	x8, x10
	b.hi	LBB0_3
; %bb.4:
	add	w8, w9, w9, lsl #1
	lsl	w8, w8, #1
LBB0_5:
Lloh12:
	adrp	x9, _HE_PPE_THRES_NSS_MASK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _HE_PPE_THRES_NSS_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	and	w9, w9, w0
	madd	w8, w8, w9, w8
	add	w9, w8, #15
	add	w8, w8, #22
	cmp	w9, #0
	csel	w8, w8, w9, lt
	asr	w0, w8, #3
	ret
LBB0_6:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_HE_PHYCAP_PPE_THRESHOLD_PRESENT_IDX,8,3 ; @HE_PHYCAP_PPE_THRESHOLD_PRESENT_IDX
	.comm	_HE_PHYCAP_PPE_THRESHOLD_PRESENT,4,2 ; @HE_PHYCAP_PPE_THRESHOLD_PRESENT
	.comm	_HE_PPE_THRES_RU_INDEX_BITMASK_SHIFT,4,2 ; @HE_PPE_THRES_RU_INDEX_BITMASK_SHIFT
	.comm	_HE_PPE_THRES_RU_INDEX_BITMASK_MASK,4,2 ; @HE_PPE_THRES_RU_INDEX_BITMASK_MASK
	.comm	_HE_PPE_THRES_NSS_MASK,4,2      ; @HE_PPE_THRES_NSS_MASK
	.no_dead_strip	_ieee80211_he_ppet_size
.subsections_via_symbols
