	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xrx200_hw_receive
_xrx200_hw_receive:                     ## @xrx200_hw_receive
	.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, %rbx
	movq	24(%rdi), %rax
	movq	(%rdi), %rcx
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rsi
	movq	(%rsi,%rcx,8), %r12
	movl	(%rdx,%rcx,4), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	_LTQ_DMA_SIZE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	movq	(%rax), %r14
	callq	_xrx200_alloc_skb
	movl	%eax, %r15d
	movq	(%rbx), %rax
	incq	%rax
	movq	%rax, (%rbx)
	movq	_LTQ_DESC_NUM@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_1
## %bb.2:
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_3
LBB0_1:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_3:
	movq	%rdx, (%rbx)
	testl	%r15d, %r15d
	je	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_err
	jmp	LBB0_6
LBB0_5:
	andl	-44(%rbp), %r13d                ## 4-byte Folded Reload
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_skb_put
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_eth_type_trans
	movl	%eax, (%r12)
	movq	%r12, %rdi
	callq	_netif_receive_skb
	incl	4(%r14)
	movq	_ETH_FCS_LEN@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	addl	%r13d, (%r14)
LBB0_6:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LTQ_DMA_SIZE_MASK,4,2          ## @LTQ_DMA_SIZE_MASK
	.comm	_LTQ_DESC_NUM,8,3               ## @LTQ_DESC_NUM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to allocate new rx buffer\n"

	.comm	_ETH_FCS_LEN,4,2                ## @ETH_FCS_LEN
	.no_dead_strip	_xrx200_hw_receive
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xrx200_hw_receive
_xrx200_hw_receive:                     ; @xrx200_hw_receive
	.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	x22, x0
	ldp	x9, x8, [x0]
	ldp	x11, x10, [x0, #16]
	ldr	x21, [x11, x9, lsl #3]
	ldr	w23, [x8, x9, lsl #2]
Lloh0:
	adrp	x8, _LTQ_DMA_SIZE_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LTQ_DMA_SIZE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
	ldr	x20, [x10]
	bl	_xrx200_alloc_skb
	mov	x19, x0
	ldr	x8, [x22]
	add	x8, x8, #1
	str	x8, [x22]
Lloh3:
	adrp	x9, _LTQ_DESC_NUM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LTQ_DESC_NUM@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	udiv	x10, x8, x9
	msub	x8, x10, x9, x8
	str	x8, [x22]
	cbz	w0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
	b	LBB0_3
LBB0_2:
	and	w22, w24, w23
	mov	x0, x21
	mov	x1, x22
	bl	_skb_put
	mov	x0, x21
	mov	x1, x20
	bl	_eth_type_trans
	str	w0, [x21]
	mov	x0, x21
	bl	_netif_receive_skb
Lloh8:
	adrp	x8, _ETH_FCS_LEN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ETH_FCS_LEN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	sub	w8, w22, w8
	ldr	d0, [x20]
	movi.2s	v1, #1
	mov.s	v1[0], w8
	add.2s	v0, v1, v0
	str	d0, [x20]
LBB0_3:
	mov	x0, x19
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_LTQ_DMA_SIZE_MASK,4,2          ; @LTQ_DMA_SIZE_MASK
	.comm	_LTQ_DESC_NUM,8,3               ; @LTQ_DESC_NUM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to allocate new rx buffer\n"

	.comm	_ETH_FCS_LEN,4,2                ; @ETH_FCS_LEN
	.no_dead_strip	_xrx200_hw_receive
.subsections_via_symbols
