	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtw8822c_psd_log2base
_rtw8822c_psd_log2base:                 ## @rtw8822c_psd_log2base
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$96, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movl	l___const.rtw8822c_psd_log2base.table_fraction+80(%rip), %eax
	movl	%eax, -32(%rbp)
	movaps	l___const.rtw8822c_psd_log2base.table_fraction+64(%rip), %xmm0
	movaps	%xmm0, -48(%rbp)
	movaps	l___const.rtw8822c_psd_log2base.table_fraction+48(%rip), %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	l___const.rtw8822c_psd_log2base.table_fraction+32(%rip), %xmm0
	movaps	%xmm0, -80(%rbp)
	movaps	l___const.rtw8822c_psd_log2base.table_fraction+16(%rip), %xmm0
	movaps	%xmm0, -96(%rbp)
	movaps	l___const.rtw8822c_psd_log2base.table_fraction(%rip), %xmm0
	movaps	%xmm0, -112(%rbp)
	testl	%edi, %edi
	je	LBB0_1
## %bb.2:
	movl	%edi, %ebx
	callq	___fls
	movl	%eax, %r14d
	incl	%r14d
	movl	$1, %esi
	movl	%r14d, %ecx
	shll	%cl, %esi
	imull	$100, %ebx, %eax
	cltd
	idivl	%esi
	cltq
	imulq	$1717986919, %rax, %rbx         ## imm = 0x66666667
	movq	%rbx, %rax
	shrq	$63, %rax
	sarq	$33, %rbx
	addl	%eax, %ebx
	leaq	-112(%rbp), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %ebx
	jl	LBB0_4
## %bb.3:
	leaq	-112(%rbp), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %ebx
	decl	%ebx
LBB0_4:
	movslq	%ebx, %rcx
	imull	$100, %r14d, %eax
	subl	-112(%rbp,%rcx,4), %eax
	jmp	LBB0_5
LBB0_1:
	xorl	%eax, %eax
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-24(%rbp), %rcx
	jne	LBB0_7
## %bb.6:
	addq	$96, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @__const.rtw8822c_psd_log2base.table_fraction
l___const.rtw8822c_psd_log2base.table_fraction:
	.long	0                               ## 0x0
	.long	432                             ## 0x1b0
	.long	332                             ## 0x14c
	.long	274                             ## 0x112
	.long	232                             ## 0xe8
	.long	200                             ## 0xc8
	.long	174                             ## 0xae
	.long	151                             ## 0x97
	.long	132                             ## 0x84
	.long	115                             ## 0x73
	.long	100                             ## 0x64
	.long	86                              ## 0x56
	.long	74                              ## 0x4a
	.long	62                              ## 0x3e
	.long	51                              ## 0x33
	.long	42                              ## 0x2a
	.long	32                              ## 0x20
	.long	23                              ## 0x17
	.long	15                              ## 0xf
	.long	7                               ## 0x7
	.long	0                               ## 0x0

	.no_dead_strip	_rtw8822c_psd_log2base
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtw8822c_psd_log2base
_rtw8822c_psd_log2base:                 ; @rtw8822c_psd_log2base
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, l___const.rtw8822c_psd_log2base.table_fraction@PAGE
Lloh4:
	add	x8, x8, l___const.rtw8822c_psd_log2base.table_fraction@PAGEOFF
	ldp	q0, q1, [x8, #32]
	stp	q0, q1, [sp, #32]
	ldr	q0, [x8, #64]
	str	q0, [sp, #64]
	ldr	w9, [x8, #80]
	str	w9, [sp, #80]
	ldp	q0, q1, [x8]
	stp	q0, q1, [sp]
	cbz	w0, LBB0_4
; %bb.1:
	mov	x19, x0
	bl	___fls
	add	w20, w0, #1
	mov	w21, #100
	mul	w8, w19, w21
	mov	w9, #1
	lsl	w9, w9, w20
	sdiv	w8, w8, w9
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #33
	add	w22, w8, w9
	mov	x19, sp
	mov	x0, sp
	bl	_ARRAY_SIZE
	cmp	w22, w0
	b.lt	LBB0_3
; %bb.2:
	mov	x0, sp
	bl	_ARRAY_SIZE
	sub	w22, w0, #1
LBB0_3:
	ldr	w8, [x19, w22, sxtw #2]
	mul	w9, w20, w21
	sub	w0, w9, w8
LBB0_4:
	ldur	x8, [x29, #-40]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @__const.rtw8822c_psd_log2base.table_fraction
l___const.rtw8822c_psd_log2base.table_fraction:
	.long	0                               ; 0x0
	.long	432                             ; 0x1b0
	.long	332                             ; 0x14c
	.long	274                             ; 0x112
	.long	232                             ; 0xe8
	.long	200                             ; 0xc8
	.long	174                             ; 0xae
	.long	151                             ; 0x97
	.long	132                             ; 0x84
	.long	115                             ; 0x73
	.long	100                             ; 0x64
	.long	86                              ; 0x56
	.long	74                              ; 0x4a
	.long	62                              ; 0x3e
	.long	51                              ; 0x33
	.long	42                              ; 0x2a
	.long	32                              ; 0x20
	.long	23                              ; 0x17
	.long	15                              ; 0xf
	.long	7                               ; 0x7
	.long	0                               ; 0x0

	.no_dead_strip	_rtw8822c_psd_log2base
.subsections_via_symbols
