	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_hw_nvram_validate_checksum ## -- Begin function ath9k_hw_nvram_validate_checksum
	.p2align	4, 0x90
_ath9k_hw_nvram_validate_checksum:      ## @ath9k_hw_nvram_validate_checksum
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_ath9k_hw_common
	xorl	%edx, %edx
	testl	%r14d, %r14d
	jle	LBB0_13
## %bb.1:
	movl	%r14d, %ecx
	cmpl	$8, %r14d
	jae	LBB0_3
## %bb.2:
	xorl	%esi, %esi
	xorl	%edx, %edx
	jmp	LBB0_11
LBB0_3:
	movl	%ecx, %esi
	andl	$-8, %esi
	leaq	-8(%rsi), %rdi
	movq	%rdi, %rdx
	shrq	$3, %rdx
	incq	%rdx
	movl	%edx, %r8d
	andl	$3, %r8d
	cmpq	$24, %rdi
	jae	LBB0_5
## %bb.4:
	pxor	%xmm0, %xmm0
	xorl	%edi, %edi
	pxor	%xmm1, %xmm1
	jmp	LBB0_7
LBB0_5:
	andq	$-4, %rdx
	pxor	%xmm0, %xmm0
	xorl	%edi, %edi
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rbx,%rdi,4), %xmm2
	pxor	%xmm0, %xmm2
	movdqu	16(%rbx,%rdi,4), %xmm0
	pxor	%xmm1, %xmm0
	movdqu	32(%rbx,%rdi,4), %xmm1
	movdqu	48(%rbx,%rdi,4), %xmm3
	movdqu	64(%rbx,%rdi,4), %xmm4
	pxor	%xmm1, %xmm4
	pxor	%xmm2, %xmm4
	movdqu	80(%rbx,%rdi,4), %xmm2
	pxor	%xmm3, %xmm2
	pxor	%xmm0, %xmm2
	movdqu	96(%rbx,%rdi,4), %xmm0
	pxor	%xmm4, %xmm0
	movdqu	112(%rbx,%rdi,4), %xmm1
	pxor	%xmm2, %xmm1
	addq	$32, %rdi
	addq	$-4, %rdx
	jne	LBB0_6
LBB0_7:
	testq	%r8, %r8
	je	LBB0_10
## %bb.8:
	leaq	(%rbx,%rdi,4), %rdx
	addq	$16, %rdx
	shlq	$5, %r8
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	-16(%rdx,%rdi), %xmm2
	pxor	%xmm2, %xmm0
	movdqu	(%rdx,%rdi), %xmm2
	pxor	%xmm2, %xmm1
	addq	$32, %rdi
	cmpq	%rdi, %r8
	jne	LBB0_9
LBB0_10:
	pxor	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	pxor	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	pxor	%xmm1, %xmm0
	movd	%xmm0, %edx
	cmpq	%rcx, %rsi
	je	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	xorl	(%rbx,%rsi,4), %edx
	incq	%rsi
	cmpq	%rsi, %rcx
	jne	LBB0_11
LBB0_12:
	movl	$1, %ecx
	cmpl	$65535, %edx                    ## imm = 0xFFFF
	je	LBB0_14
LBB0_13:
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	callq	_ath_err
	xorl	%ecx, %ecx
LBB0_14:
	movl	%ecx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Bad EEPROM checksum 0x%x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_hw_nvram_validate_checksum ; -- Begin function ath9k_hw_nvram_validate_checksum
	.p2align	2
_ath9k_hw_nvram_validate_checksum:      ; @ath9k_hw_nvram_validate_checksum
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	bl	_ath9k_hw_common
	cmp	w20, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w8, w20
	cmp	w20, #16
	b.hs	LBB0_4
; %bb.2:
	mov	x9, #0
	mov	w2, #0
	b	LBB0_7
LBB0_3:
	mov	w2, #0
	b	LBB0_11
LBB0_4:
	and	x9, x8, #0xfffffff0
	add	x10, x19, #32
	movi.2d	v0, #0000000000000000
	mov	x11, x9
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x10, #-32]
	ldp	q6, q7, [x10], #64
	eor.16b	v0, v4, v0
	eor.16b	v1, v5, v1
	eor.16b	v2, v6, v2
	eor.16b	v3, v7, v3
	subs	x11, x11, #16
	b.ne	LBB0_5
; %bb.6:
	eor.16b	v0, v1, v0
	eor3.16b	v0, v2, v0, v3
	ext.16b	v1, v0, v0, #8
	eor.8b	v0, v0, v1
	mov.s	w10, v0[1]
	fmov	w11, s0
	eor	w2, w11, w10
	cmp	x9, x8
	b.eq	LBB0_9
LBB0_7:
	add	x10, x19, x9, lsl #2
	sub	x8, x8, x9
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x10], #4
	eor	w2, w9, w2
	subs	x8, x8, #1
	b.ne	LBB0_8
LBB0_9:
	mov	w8, #65535
	cmp	w2, w8
	b.ne	LBB0_11
; %bb.10:
	mov	w0, #1
	b	LBB0_12
LBB0_11:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ath_err
	mov	w0, #0
LBB0_12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Bad EEPROM checksum 0x%x\n"

.subsections_via_symbols
