	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmf_pcie_ring_mb_update_wptr
_brcmf_pcie_ring_mb_update_wptr:        ## @brcmf_pcie_ring_mb_update_wptr
	.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
	movq	(%rdi), %rax
	movq	_BRCMFMAC_PCIE_STATE_UP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movl	4(%rbx), %esi
	callq	*8(%rdi)
	movl	%eax, 12(%rbx)
	movq	_PCIE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	(%rbx), %r8d
	movl	8(%rbx), %ecx
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_brcmf_dbg
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BRCMFMAC_PCIE_STATE_UP,8,3     ## @BRCMFMAC_PCIE_STATE_UP
	.comm	_EIO,4,2                        ## @EIO
	.comm	_PCIE,4,2                       ## @PCIE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"R w_ptr %d (%d), ring %d\n"

	.no_dead_strip	_brcmf_pcie_ring_mb_update_wptr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmf_pcie_ring_mb_update_wptr
_brcmf_pcie_ring_mb_update_wptr:        ; @brcmf_pcie_ring_mb_update_wptr
	.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	x8, [x0]
Lloh0:
	adrp	x9, _BRCMFMAC_PCIE_STATE_UP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BRCMFMAC_PCIE_STATE_UP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x0, #8]
	ldr	w1, [x19, #4]
	blr	x8
	mov	x2, x0
	str	w0, [x19, #12]
Lloh3:
	adrp	x8, _PCIE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCIE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	w3, [x19, #8]
	ldr	w4, [x19]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_brcmf_dbg
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh8:
	adrp	x8, _EIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_BRCMFMAC_PCIE_STATE_UP,8,3     ; @BRCMFMAC_PCIE_STATE_UP
	.comm	_EIO,4,2                        ; @EIO
	.comm	_PCIE,4,2                       ; @PCIE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"R w_ptr %d (%d), ring %d\n"

	.no_dead_strip	_brcmf_pcie_ring_mb_update_wptr
.subsections_via_symbols
