	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcma_sprom_check_crc
_bcma_sprom_check_crc:                  ## @bcma_sprom_check_crc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_bcma_sprom_crc
	movq	_SSB_SPROMSIZE_WORDS_R4@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movq	_SSB_SPROM_REVISION_CRC@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	-4(%rbx,%rcx,4), %edx
	movq	_SSB_SPROM_REVISION_CRC_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %edx
	movq	_EPROTO@GOTPCREL(%rip), %rsi
	xorl	%ecx, %ecx
	subl	(%rsi), %ecx
	xorl	%esi, %esi
	cmpl	%edx, %eax
	cmovel	%esi, %ecx
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSB_SPROMSIZE_WORDS_R4,4,2     ## @SSB_SPROMSIZE_WORDS_R4
	.comm	_SSB_SPROM_REVISION_CRC,4,2     ## @SSB_SPROM_REVISION_CRC
	.comm	_SSB_SPROM_REVISION_CRC_SHIFT,4,2 ## @SSB_SPROM_REVISION_CRC_SHIFT
	.comm	_EPROTO,4,2                     ## @EPROTO
	.no_dead_strip	_bcma_sprom_check_crc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcma_sprom_check_crc
_bcma_sprom_check_crc:                  ; @bcma_sprom_check_crc
	.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	x19, x0
	bl	_bcma_sprom_crc
Lloh0:
	adrp	x8, _SSB_SPROMSIZE_WORDS_R4@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSB_SPROMSIZE_WORDS_R4@GOTPAGEOFF]
Lloh2:
	ldrsw	x8, [x8]
	add	x8, x19, x8, lsl #2
	ldur	w8, [x8, #-4]
Lloh3:
	adrp	x9, _SSB_SPROM_REVISION_CRC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SSB_SPROM_REVISION_CRC@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh6:
	adrp	x9, _SSB_SPROM_REVISION_CRC_SHIFT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SSB_SPROM_REVISION_CRC_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	asr	w8, w8, w9
Lloh9:
	adrp	x9, _EPROTO@GOTPAGE
Lloh10:
	ldr	x9, [x9, _EPROTO@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w0, w8
	csneg	w0, wzr, w9, eq
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SSB_SPROMSIZE_WORDS_R4,4,2     ; @SSB_SPROMSIZE_WORDS_R4
	.comm	_SSB_SPROM_REVISION_CRC,4,2     ; @SSB_SPROM_REVISION_CRC
	.comm	_SSB_SPROM_REVISION_CRC_SHIFT,4,2 ; @SSB_SPROM_REVISION_CRC_SHIFT
	.comm	_EPROTO,4,2                     ; @EPROTO
	.no_dead_strip	_bcma_sprom_check_crc
.subsections_via_symbols
