	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcma_sprom_ext_available
_bcma_sprom_ext_available:              ## @bcma_sprom_ext_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
	movq	16(%rdi), %rdi
	cmpl	$31, (%rdi)
	jl	LBB0_4
## %bb.1:
	movq	_BCMA_CC_CAP_SPROM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	je	LBB0_2
## %bb.3:
	movq	_BCMA_CC_SROM_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_bcma_read32
	movq	_BCMA_CC_SROM_CONTROL_PRESENT@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_4:
	movq	_BCMA_CC_CHIPSTAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_bcma_read32
	movl	(%rbx), %edx
	cmpl	$129, %edx
	je	LBB0_5
## %bb.6:
	movl	$1, %ecx
	cmpl	$128, %edx
	jne	LBB0_9
## %bb.7:
	movq	_BCMA_CC_CHIPST_4331_SPROM_PRESENT@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_2:
	xorl	%ecx, %ecx
	jmp	LBB0_9
LBB0_5:
	movq	_BCMA_CC_CHIPST_4313_SPROM_PRESENT@GOTPCREL(%rip), %rcx
LBB0_8:
	andl	(%rcx), %eax
	movl	%eax, %ecx
LBB0_9:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BCMA_CC_CAP_SPROM,4,2          ## @BCMA_CC_CAP_SPROM
	.comm	_BCMA_CC_SROM_CONTROL,4,2       ## @BCMA_CC_SROM_CONTROL
	.comm	_BCMA_CC_SROM_CONTROL_PRESENT,4,2 ## @BCMA_CC_SROM_CONTROL_PRESENT
	.comm	_BCMA_CC_CHIPSTAT,4,2           ## @BCMA_CC_CHIPSTAT
	.comm	_BCMA_CC_CHIPST_4313_SPROM_PRESENT,4,2 ## @BCMA_CC_CHIPST_4313_SPROM_PRESENT
	.comm	_BCMA_CC_CHIPST_4331_SPROM_PRESENT,4,2 ## @BCMA_CC_CHIPST_4331_SPROM_PRESENT
	.no_dead_strip	_bcma_sprom_ext_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_ext_available
_bcma_sprom_ext_available:              ; @bcma_sprom_ext_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	x0, [x0, #16]
	ldr	w8, [x0]
	cmp	w8, #31
	b.lt	LBB0_3
; %bb.1:
	ldr	w8, [x19, #8]
Lloh0:
	adrp	x9, _BCMA_CC_CAP_SPROM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BCMA_CC_CAP_SPROM@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.2:
Lloh3:
	adrp	x8, _BCMA_CC_SROM_CONTROL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BCMA_CC_SROM_CONTROL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_bcma_read32
Lloh6:
	adrp	x8, _BCMA_CC_SROM_CONTROL_PRESENT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BCMA_CC_SROM_CONTROL_PRESENT@GOTPAGEOFF]
	b	LBB0_8
LBB0_3:
Lloh8:
	adrp	x8, _BCMA_CC_CHIPSTAT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BCMA_CC_CHIPSTAT@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_bcma_read32
	ldr	w8, [x19]
	cmp	w8, #129
	b.eq	LBB0_7
; %bb.4:
	cmp	w8, #128
	b.ne	LBB0_9
; %bb.5:
Lloh11:
	adrp	x8, _BCMA_CC_CHIPST_4331_SPROM_PRESENT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BCMA_CC_CHIPST_4331_SPROM_PRESENT@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
	mov	w0, #0
	b	LBB0_10
LBB0_7:
Lloh13:
	adrp	x8, _BCMA_CC_CHIPST_4313_SPROM_PRESENT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _BCMA_CC_CHIPST_4313_SPROM_PRESENT@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	and	w0, w8, w0
	b	LBB0_10
LBB0_9:
	mov	w0, #1
LBB0_10:
	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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_BCMA_CC_CAP_SPROM,4,2          ; @BCMA_CC_CAP_SPROM
	.comm	_BCMA_CC_SROM_CONTROL,4,2       ; @BCMA_CC_SROM_CONTROL
	.comm	_BCMA_CC_SROM_CONTROL_PRESENT,4,2 ; @BCMA_CC_SROM_CONTROL_PRESENT
	.comm	_BCMA_CC_CHIPSTAT,4,2           ; @BCMA_CC_CHIPSTAT
	.comm	_BCMA_CC_CHIPST_4313_SPROM_PRESENT,4,2 ; @BCMA_CC_CHIPST_4313_SPROM_PRESENT
	.comm	_BCMA_CC_CHIPST_4331_SPROM_PRESENT,4,2 ; @BCMA_CC_CHIPST_4331_SPROM_PRESENT
	.no_dead_strip	_bcma_sprom_ext_available
.subsections_via_symbols
