	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function if_cs_receive_data
_if_cs_receive_data:                    ## @if_cs_receive_data
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	(%rdi), %edi
	movq	_IF_CS_READ_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_if_cs_read16
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	_MRVDRV_ETH_RX_PACKET_BUFFER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	cmpl	%edi, %ebx
	jle	LBB0_3
LBB0_2:
	movq	8(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_netdev_err
	movq	8(%r15), %rax
	incl	(%rax)
	xorl	%r14d, %r14d
LBB0_7:
	movl	(%r15), %edi
	movq	_IF_CS_HOST_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IF_CS_BIT_RX@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	callq	_if_cs_write16
	movl	(%r15), %edi
	movq	_IF_CS_HOST_INT_CAUSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	callq	_if_cs_write16
LBB0_8:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	addl	$2, %edi
	callq	_dev_alloc_skb
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r14
	movq	%rax, %rdi
	movl	%ebx, %esi
	callq	_skb_put
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_skb_reserve
	movq	(%r14), %r12
	movl	(%r15), %edi
	movq	_IF_CS_READ@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	%ebx, %ecx
	sarl	$2, %ecx
	movq	%r12, %rdx
	callq	_if_cs_read16_rep
	testb	$1, %bl
	je	LBB0_7
## %bb.6:
	movl	(%r15), %edi
	movl	(%r13), %esi
	callq	_if_cs_read8
	movslq	%ebx, %rcx
	movl	%eax, -4(%r12,%rcx,4)
	jmp	LBB0_7
LBB0_4:
	xorl	%r14d, %r14d
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_IF_CS_READ_LEN,4,2             ## @IF_CS_READ_LEN
	.comm	_MRVDRV_ETH_RX_PACKET_BUFFER_SIZE,4,2 ## @MRVDRV_ETH_RX_PACKET_BUFFER_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"card data buffer has invalid # of bytes (%d)\n"

	.comm	_IF_CS_READ,4,2                 ## @IF_CS_READ
	.comm	_IF_CS_HOST_STATUS,4,2          ## @IF_CS_HOST_STATUS
	.comm	_IF_CS_BIT_RX,4,2               ## @IF_CS_BIT_RX
	.comm	_IF_CS_HOST_INT_CAUSE,4,2       ## @IF_CS_HOST_INT_CAUSE
	.no_dead_strip	_if_cs_receive_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function if_cs_receive_data
_if_cs_receive_data:                    ; @if_cs_receive_data
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _IF_CS_READ_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IF_CS_READ_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_if_cs_read16
	mov	x21, x0
	cbz	w0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _MRVDRV_ETH_RX_PACKET_BUFFER_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MRVDRV_ETH_RX_PACKET_BUFFER_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w21, w8
	b.le	LBB0_5
LBB0_2:
	ldr	x0, [x19, #8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_netdev_err
	mov	x20, #0
	ldr	x8, [x19, #8]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_3:
	ldr	w0, [x19]
Lloh8:
	adrp	x8, _IF_CS_HOST_STATUS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IF_CS_HOST_STATUS@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x21, _IF_CS_BIT_RX@GOTPAGE
Lloh12:
	ldr	x21, [x21, _IF_CS_BIT_RX@GOTPAGEOFF]
	ldr	w2, [x21]
	bl	_if_cs_write16
	ldr	w0, [x19]
Lloh13:
	adrp	x8, _IF_CS_HOST_INT_CAUSE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IF_CS_HOST_INT_CAUSE@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	ldr	w2, [x21]
	bl	_if_cs_write16
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_5:
	add	w0, w8, #2
	bl	_dev_alloc_skb
	mov	x20, x0
	cbz	x0, LBB0_4
; %bb.6:
	mov	x0, x20
	mov	x1, x21
	bl	_skb_put
	mov	x0, x20
	mov	w1, #2
	bl	_skb_reserve
	ldr	x22, [x20]
	ldr	w0, [x19]
Lloh16:
	adrp	x23, _IF_CS_READ@GOTPAGE
Lloh17:
	ldr	x23, [x23, _IF_CS_READ@GOTPAGEOFF]
	ldr	w1, [x23]
	asr	w3, w21, #2
	mov	x2, x22
	bl	_if_cs_read16_rep
	tbz	w21, #0, LBB0_3
; %bb.7:
	ldr	w0, [x19]
	ldr	w1, [x23]
	bl	_if_cs_read8
	sub	w8, w21, #1
	str	w0, [x22, w8, sxtw #2]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_IF_CS_READ_LEN,4,2             ; @IF_CS_READ_LEN
	.comm	_MRVDRV_ETH_RX_PACKET_BUFFER_SIZE,4,2 ; @MRVDRV_ETH_RX_PACKET_BUFFER_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"card data buffer has invalid # of bytes (%d)\n"

	.comm	_IF_CS_READ,4,2                 ; @IF_CS_READ
	.comm	_IF_CS_HOST_STATUS,4,2          ; @IF_CS_HOST_STATUS
	.comm	_IF_CS_BIT_RX,4,2               ; @IF_CS_BIT_RX
	.comm	_IF_CS_HOST_INT_CAUSE,4,2       ; @IF_CS_HOST_INT_CAUSE
	.no_dead_strip	_if_cs_receive_data
.subsections_via_symbols
