	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwlagn_good_plcp_health
_iwlagn_good_plcp_health:               ## @iwlagn_good_plcp_health
	.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
	movq	%rdi, %r12
	movl	(%rdi), %r15d
	movq	_IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_IWL_DEBUG_RADIO
	movl	$1, %ecx
	jmp	LBB0_5
LBB0_2:
	movq	%rdx, %rbx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	(%rsi), %edi
	callq	_le32_to_cpu
	movl	%eax, %r13d
	movl	8(%r12), %edi
	callq	_le32_to_cpu
	movl	%eax, %r14d
	movl	(%rbx), %edi
	callq	_le32_to_cpu
	movl	%eax, %ebx
	movl	4(%r12), %edi
	callq	_le32_to_cpu
	addl	%r13d, %ebx
	addl	%r14d, %eax
	subl	%eax, %ebx
	movl	$1, %ecx
	testl	%ebx, %ebx
	jle	LBB0_5
## %bb.3:
	imull	$100, %ebx, %eax
	xorl	%edx, %edx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	divl	%r8d
	cmpl	%r15d, %eax
	jbe	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_IWL_DEBUG_RADIO
	xorl	%ecx, %ecx
LBB0_5:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE,4,2 ## @IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"plcp_err check disabled\n"

L_.str.1:                               ## @.str.1
	.asciz	"plcp health threshold %u delta %d msecs %u\n"

	.no_dead_strip	_iwlagn_good_plcp_health
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwlagn_good_plcp_health
_iwlagn_good_plcp_health:               ; @iwlagn_good_plcp_health
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
	ldr	w24, [x0]
Lloh0:
	adrp	x8, _IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w24, w8
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_RADIO
	b	LBB0_5
LBB0_2:
	mov	x20, x3
	mov	x21, x2
	ldr	w0, [x1]
	bl	_le32_to_cpu
	mov	x22, x0
	ldr	w0, [x19, #8]
	bl	_le32_to_cpu
	mov	x23, x0
	ldr	w0, [x21]
	bl	_le32_to_cpu
	mov	x21, x0
	ldr	w0, [x19, #4]
	bl	_le32_to_cpu
	add	w8, w22, w21
	add	w9, w23, w0
	sub	w8, w8, w9
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	w9, #100
	mul	w9, w8, w9
	udiv	w9, w9, w20
	cmp	w9, w24
	b.ls	LBB0_5
; %bb.4:
	stp	x8, x20, [sp, #8]
	str	x24, [sp]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_RADIO
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	mov	w0, #1
LBB0_6:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE,4,2 ; @IWL_MAX_PLCP_ERR_THRESHOLD_DISABLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"plcp_err check disabled\n"

l_.str.1:                               ; @.str.1
	.asciz	"plcp health threshold %u delta %d msecs %u\n"

	.no_dead_strip	_iwlagn_good_plcp_health
.subsections_via_symbols
