	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_sdio_buscore_read32
_brcmf_sdio_buscore_read32:             ## @brcmf_sdio_buscore_read32
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r15
	xorl	%edx, %edx
	callq	_brcmf_sdiod_readl
	movl	%eax, %r14d
	movq	_SI_ENUM_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_chipid@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_CORE_CC_REG
	cmpl	%ebx, %eax
	jne	LBB0_5
## %bb.1:
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	_SDIO_DEVICE_ID_BROADCOM_4339@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	_SDIO_DEVICE_ID_BROADCOM_4335_4339@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
LBB0_3:
	movq	_CID_REV_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r14d, %eax
	movq	_CID_REV_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	cmpl	$2, %eax
	jl	LBB0_5
## %bb.4:
	movq	_CID_ID_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r14d
	movq	_BRCM_CC_4339_CHIP_ID@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SI_ENUM_BASE,4,2               ## @SI_ENUM_BASE
	.comm	_chipid,4,2                     ## @chipid
	.comm	_SDIO_DEVICE_ID_BROADCOM_4339,8,3 ## @SDIO_DEVICE_ID_BROADCOM_4339
	.comm	_SDIO_DEVICE_ID_BROADCOM_4335_4339,8,3 ## @SDIO_DEVICE_ID_BROADCOM_4335_4339
	.comm	_CID_REV_MASK,4,2               ## @CID_REV_MASK
	.comm	_CID_REV_SHIFT,4,2              ## @CID_REV_SHIFT
	.comm	_CID_ID_MASK,4,2                ## @CID_ID_MASK
	.comm	_BRCM_CC_4339_CHIP_ID,4,2       ## @BRCM_CC_4339_CHIP_ID
	.no_dead_strip	_brcmf_sdio_buscore_read32
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_sdio_buscore_read32
_brcmf_sdio_buscore_read32:             ; @brcmf_sdio_buscore_read32
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x1
	mov	x20, x0
	mov	x2, #0
	bl	_brcmf_sdiod_readl
	mov	x19, x0
Lloh0:
	adrp	x8, _SI_ENUM_BASE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SI_ENUM_BASE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _chipid@GOTPAGE
Lloh4:
	ldr	x8, [x8, _chipid@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_CORE_CC_REG
	cmp	w0, w21
	b.ne	LBB0_4
; %bb.1:
	ldr	x8, [x20]
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _SDIO_DEVICE_ID_BROADCOM_4339@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SDIO_DEVICE_ID_BROADCOM_4339@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	adrp	x10, _SDIO_DEVICE_ID_BROADCOM_4335_4339@GOTPAGE
Lloh10:
	ldr	x10, [x10, _SDIO_DEVICE_ID_BROADCOM_4335_4339@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_4
; %bb.2:
Lloh12:
	adrp	x8, _CID_REV_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CID_REV_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	and	w8, w8, w19
Lloh15:
	adrp	x9, _CID_REV_SHIFT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _CID_REV_SHIFT@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	asr	w8, w8, w9
	cmp	w8, #2
	b.lt	LBB0_4
; %bb.3:
Lloh18:
	adrp	x8, _CID_ID_MASK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CID_ID_MASK@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	bic	w8, w19, w8
Lloh21:
	adrp	x9, _BRCM_CC_4339_CHIP_ID@GOTPAGE
Lloh22:
	ldr	x9, [x9, _BRCM_CC_4339_CHIP_ID@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w19, w8, w9
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_SI_ENUM_BASE,4,2               ; @SI_ENUM_BASE
	.comm	_chipid,4,2                     ; @chipid
	.comm	_SDIO_DEVICE_ID_BROADCOM_4339,8,3 ; @SDIO_DEVICE_ID_BROADCOM_4339
	.comm	_SDIO_DEVICE_ID_BROADCOM_4335_4339,8,3 ; @SDIO_DEVICE_ID_BROADCOM_4335_4339
	.comm	_CID_REV_MASK,4,2               ; @CID_REV_MASK
	.comm	_CID_REV_SHIFT,4,2              ; @CID_REV_SHIFT
	.comm	_CID_ID_MASK,4,2                ; @CID_ID_MASK
	.comm	_BRCM_CC_4339_CHIP_ID,4,2       ; @BRCM_CC_4339_CHIP_ID
	.no_dead_strip	_brcmf_sdio_buscore_read32
.subsections_via_symbols
