	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcma_sprom_onchip_available
_bcma_sprom_onchip_available:           ## @bcma_sprom_onchip_available
	.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
	movl	4(%rdi), %edi
	movq	_BCMA_CC_CHIPSTAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_bcma_read32
	movl	%eax, %ecx
	movl	8(%rbx), %esi
	xorl	%eax, %eax
	addl	$-128, %esi
	cmpl	$6, %esi
	ja	LBB0_6
## %bb.1:
	movq	_BCMA_CC_CHIPST_4313_OTP_PRESENT@GOTPCREL(%rip), %rdx
	leaq	LJTI0_0(%rip), %rdi
	movslq	(%rdi,%rsi,4), %rsi
	addq	%rdi, %rsi
	jmpq	*%rsi
LBB0_3:
	movq	_BCMA_CC_CHIPST_43228_OTP_PRESENT@GOTPCREL(%rip), %rdx
LBB0_4:
	testl	%ecx, (%rdx)
	je	LBB0_6
LBB0_5:
	movq	_BCMA_CC_CAP_OTPS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	(%rbx), %edx
	movq	_BCMA_CC_CAP_OTPS_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %edx
	xorl	%eax, %eax
	testl	%edx, %edx
	setne	%al
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	movq	_BCMA_CC_CHIPST_4331_OTP_PRESENT@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	jne	LBB0_5
	jmp	LBB0_6
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_2
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.comm	_BCMA_CC_CHIPSTAT,4,2           ## @BCMA_CC_CHIPSTAT
	.comm	_BCMA_CC_CHIPST_4313_OTP_PRESENT,4,2 ## @BCMA_CC_CHIPST_4313_OTP_PRESENT
	.comm	_BCMA_CC_CHIPST_4331_OTP_PRESENT,4,2 ## @BCMA_CC_CHIPST_4331_OTP_PRESENT
	.comm	_BCMA_CC_CHIPST_43228_OTP_PRESENT,4,2 ## @BCMA_CC_CHIPST_43228_OTP_PRESENT
	.comm	_BCMA_CC_CAP_OTPS,4,2           ## @BCMA_CC_CAP_OTPS
	.comm	_BCMA_CC_CAP_OTPS_SHIFT,4,2     ## @BCMA_CC_CAP_OTPS_SHIFT
	.no_dead_strip	_bcma_sprom_onchip_available
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcma_sprom_onchip_available
_bcma_sprom_onchip_available:           ; @bcma_sprom_onchip_available
	.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
	ldr	w0, [x0, #4]
Lloh0:
	adrp	x8, _BCMA_CC_CHIPSTAT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BCMA_CC_CHIPSTAT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_bcma_read32
	ldr	w8, [x19, #8]
	sub	w9, w8, #128
	cmp	w9, #6
	b.hi	LBB0_6
; %bb.1:
Lloh3:
	adrp	x8, _BCMA_CC_CHIPST_4313_OTP_PRESENT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BCMA_CC_CHIPST_4313_OTP_PRESENT@GOTPAGEOFF]
Lloh5:
	adrp	x10, lJTI0_0@PAGE
Lloh6:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
Lloh7:
	adrp	x8, _BCMA_CC_CHIPST_43228_OTP_PRESENT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BCMA_CC_CHIPST_43228_OTP_PRESENT@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh9:
	adrp	x8, _BCMA_CC_CHIPST_4331_OTP_PRESENT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BCMA_CC_CHIPST_4331_OTP_PRESENT@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_6
LBB0_5:
	ldr	w8, [x19]
Lloh11:
	adrp	x9, _BCMA_CC_CAP_OTPS@GOTPAGE
Lloh12:
	ldr	x9, [x9, _BCMA_CC_CAP_OTPS@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh14:
	adrp	x9, _BCMA_CC_CAP_OTPS_SHIFT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _BCMA_CC_CAP_OTPS_SHIFT@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	asr	w8, w8, w9
	cmp	w8, #0
	cset	w0, ne
	b	LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
                                        ; -- End function
	.comm	_BCMA_CC_CHIPSTAT,4,2           ; @BCMA_CC_CHIPSTAT
	.comm	_BCMA_CC_CHIPST_4313_OTP_PRESENT,4,2 ; @BCMA_CC_CHIPST_4313_OTP_PRESENT
	.comm	_BCMA_CC_CHIPST_4331_OTP_PRESENT,4,2 ; @BCMA_CC_CHIPST_4331_OTP_PRESENT
	.comm	_BCMA_CC_CHIPST_43228_OTP_PRESENT,4,2 ; @BCMA_CC_CHIPST_43228_OTP_PRESENT
	.comm	_BCMA_CC_CAP_OTPS,4,2           ; @BCMA_CC_CAP_OTPS
	.comm	_BCMA_CC_CAP_OTPS_SHIFT,4,2     ; @BCMA_CC_CAP_OTPS_SHIFT
	.no_dead_strip	_bcma_sprom_onchip_available
.subsections_via_symbols
