	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mac_drv_rx_complete            ## -- Begin function mac_drv_rx_complete
	.p2align	4, 0x90
_mac_drv_rx_complete:                   ## @mac_drv_rx_complete
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r12
	leaq	L_.str(%rip), %rdi
	movl	%ecx, %esi
	xorl	%eax, %eax
	callq	_pr_debug
	cmpl	$1, %r14d
	jne	LBB0_1
## %bb.2:
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	(%rax), %r13
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_dump_data
	movq	_FDDI_RII@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	testb	%al, 7(%r13)
	je	LBB0_31
## %bb.5:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
	movq	_FDDI_MAC_HDR_LEN@GOTPCREL(%rip), %rax
	movl	%r15d, %ebx
	movslq	(%rax), %r15
	movl	(%r13,%r15), %edi
	callq	_ntohs
	movq	_FDDI_RCF_LEN_MASK@GOTPCREL(%rip), %rcx
	andw	(%rcx), %ax
	movzwl	%ax, %esi
	movq	_FDDI_MAC_HDR_LEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	leal	(%r8,%rsi), %ecx
	cmpl	%ebx, %ecx
	jle	LBB0_6
## %bb.34:
	leaq	L_.str.4(%rip), %rdi
	callq	_printk
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_35
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	callq	_printk
	jmp	LBB0_35
LBB0_3:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
	incl	4(%r12)
LBB0_35:
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_mac_drv_requeue_rxd
	incl	4(%r12)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	%ebx, %r14d
	movq	_FDDI_RII@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	notb	%cl
	andb	%cl, 7(%r13)
	leaq	(%r15,%r13), %rdx
	leaq	(%rdx,%rsi), %rbx
	testl	%r8d, %r8d
	je	LBB0_7
## %bb.8:
	leal	-1(%r8), %r11d
	cmpl	$31, %r11d
	jae	LBB0_10
LBB0_9:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %r15d
LBB0_22:
	leal	-1(%r8), %r9d
	movl	%r8d, %r10d
	andl	$7, %r10d
	je	LBB0_26
## %bb.23:
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movzbl	-1(%rdx), %ecx
	decq	%rdx
	movb	%cl, -1(%rbx)
	decq	%rbx
	incl	%eax
	cmpl	%eax, %r10d
	jne	LBB0_24
## %bb.25:
	subl	%eax, %r8d
LBB0_26:
	cmpl	$7, %r9d
	jb	LBB0_30
## %bb.27:
	negl	%r8d
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	movzbl	-1(%rdx,%rax), %ecx
	movb	%cl, -1(%rbx,%rax)
	movzbl	-2(%rdx,%rax), %ecx
	movb	%cl, -2(%rbx,%rax)
	movzbl	-3(%rdx,%rax), %ecx
	movb	%cl, -3(%rbx,%rax)
	movzbl	-4(%rdx,%rax), %ecx
	movb	%cl, -4(%rbx,%rax)
	movzbl	-5(%rdx,%rax), %ecx
	movb	%cl, -5(%rbx,%rax)
	movzbl	-6(%rdx,%rax), %ecx
	movb	%cl, -6(%rbx,%rax)
	movzbl	-7(%rdx,%rax), %ecx
	movb	%cl, -7(%rbx,%rax)
	movzbl	-8(%rdx,%rax), %ecx
	movb	%cl, -8(%rbx,%rax)
	addq	$-8, %rax
	cmpl	%eax, %r8d
	jne	LBB0_28
## %bb.29:
	addq	%rax, %rbx
	jmp	LBB0_30
LBB0_7:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %r15d
LBB0_30:
	movq	%rsi, %r14
	callq	_skb_pull
	subl	%r14d, %r15d
	movq	%rbx, %r13
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_31:
	incl	12(%r12)
	addl	%r15d, (%r12)
	testb	$1, 1(%r13)
	je	LBB0_33
## %bb.32:
	incl	8(%r12)
LBB0_33:
	movq	$0, (%rbx)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_skb_trim
	movl	16(%r12), %esi
	movq	%rbx, %rdi
	callq	_fddi_type_trans
	movl	%eax, 8(%rbx)
	movq	%rbx, %rdi
	callq	_netif_rx
	movq	_RX_LOW_WATERMARK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_HWM_RX_CHECK                   ## TAILCALL
LBB0_10:
	leaq	(%r15,%rsi), %r9
	leaq	(%r9,%r13), %rcx
	decq	%rcx
	movq	%rcx, %rdi
	subq	%r11, %rdi
	cmpq	%rcx, %rdi
	ja	LBB0_9
## %bb.11:
	leaq	(%r15,%r13), %rcx
	decq	%rcx
	movq	%rcx, %rdi
	subq	%r11, %rdi
	cmpq	%rcx, %rdi
	ja	LBB0_9
## %bb.12:
	testw	%ax, %ax
	je	LBB0_9
## %bb.13:
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	incq	%r11
	movq	%r11, %rax
	andq	$-32, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	addq	$-32, %rax
	movq	%rax, %r10
	shrq	$5, %r10
	incq	%r10
	testq	%rax, %rax
	je	LBB0_14
## %bb.15:
	movq	%r10, %rdi
	andq	$-2, %rdi
	leaq	(%r9,%r13), %rsi
	addq	$-16, %rsi
	leaq	(%r15,%r13), %rcx
	addq	$-16, %rcx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movups	-16(%rcx,%rax), %xmm0
	movups	(%rcx,%rax), %xmm1
	movups	%xmm1, (%rsi,%rax)
	movups	%xmm0, -16(%rsi,%rax)
	movups	-48(%rcx,%rax), %xmm0
	movups	-32(%rcx,%rax), %xmm1
	movups	%xmm1, -32(%rsi,%rax)
	movups	%xmm0, -48(%rsi,%rax)
	addq	$-64, %rax
	addq	$-2, %rdi
	jne	LBB0_16
## %bb.17:
	negq	%rax
	jmp	LBB0_18
LBB0_14:
	xorl	%eax, %eax
LBB0_18:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %r15d
	testb	$1, %r10b
	je	LBB0_20
## %bb.19:
	movq	%rdx, %rcx
	subq	%rax, %rcx
	movq	%rbx, %rsi
	subq	%rax, %rsi
	movups	-32(%rcx), %xmm0
	movups	-16(%rcx), %xmm1
	movups	%xmm1, -16(%rsi)
	movups	%xmm0, -32(%rsi)
LBB0_20:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	subq	%rax, %rbx
	cmpq	%rax, %r11
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	je	LBB0_30
## %bb.21:
	subl	%eax, %r8d
	subq	%rax, %rdx
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"entering mac_drv_rx_complete (len=%d)\n"

L_.str.1:                               ## @.str.1
	.asciz	"fddi: Multi-fragment receive!\n"

L_.str.2:                               ## @.str.2
	.asciz	"No skb in rxd\n"

	.comm	_FDDI_RII,1,0                   ## @FDDI_RII
L_.str.3:                               ## @.str.3
	.asciz	"RIF found\n"

	.comm	_FDDI_MAC_HDR_LEN,4,2           ## @FDDI_MAC_HDR_LEN
	.comm	_FDDI_RCF_LEN_MASK,2,1          ## @FDDI_RCF_LEN_MASK
L_.str.4:                               ## @.str.4
	.asciz	"fddi: Invalid RIF.\n"

	.comm	_RX_LOW_WATERMARK,4,2           ## @RX_LOW_WATERMARK
L_.str.5:                               ## @.str.5
	.asciz	"Rx: re-queue RXD.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mac_drv_rx_complete            ; -- Begin function mac_drv_rx_complete
	.p2align	2
_mac_drv_rx_complete:                   ; @mac_drv_rx_complete
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x3
	mov	x23, x2
	mov	x20, x1
	mov	x19, x0
	str	x21, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	cmp	w23, #1
	b.ne	LBB0_5
; %bb.1:
	ldr	x22, [x20]
	cbz	x22, LBB0_7
; %bb.2:
	ldr	x24, [x22]
	mov	x0, x24
	mov	x1, x21
	bl	_dump_data
	ldrb	w8, [x24, #7]
Lloh2:
	adrp	x9, _FDDI_RII@GOTPAGE
Lloh3:
	ldr	x9, [x9, _FDDI_RII@GOTPAGEOFF]
	ldrb	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.3:
Lloh4:
	adrp	x0, l_.str.3@PAGE
Lloh5:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_debug
Lloh6:
	adrp	x26, _FDDI_MAC_HDR_LEN@GOTPAGE
Lloh7:
	ldr	x26, [x26, _FDDI_MAC_HDR_LEN@GOTPAGEOFF]
	ldrsw	x27, [x26]
	add	x28, x24, x27
	ldr	w0, [x28]
	bl	_ntohs
Lloh8:
	adrp	x8, _FDDI_RCF_LEN_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FDDI_RCF_LEN_MASK@GOTPAGEOFF]
	ldrh	w8, [x8]
	and	w25, w8, w0
	ldr	w8, [x26]
	add	w9, w8, w25
	cmp	w9, w21
	b.le	LBB0_9
; %bb.4:
Lloh10:
	adrp	x0, l_.str.4@PAGE
Lloh11:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_6:
	bl	_printk
	b	LBB0_8
LBB0_7:
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_debug
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
LBB0_8:
Lloh16:
	adrp	x0, l_.str.5@PAGE
Lloh17:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_pr_debug
	mov	x0, x19
	mov	x1, x20
	mov	x2, x23
	bl	_mac_drv_requeue_rxd
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_9:
Lloh18:
	adrp	x9, _FDDI_RII@GOTPAGE
Lloh19:
	ldr	x9, [x9, _FDDI_RII@GOTPAGEOFF]
	ldrb	w9, [x9]
	ldrb	w10, [x24, #7]
	bic	w9, w10, w9
	strb	w9, [x24, #7]
	cbz	w8, LBB0_13
; %bb.10:
	add	x9, x27, x24
	sub	x9, x9, #1
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x9]
	strb	w10, [x9, x25]
	sub	x9, x9, #1
	sub	w8, w8, #1
	cbnz	w8, LBB0_11
; %bb.12:
	add	x8, x9, x25
	add	x24, x8, #1
	b	LBB0_14
LBB0_13:
	add	x24, x28, x25
LBB0_14:
	mov	x0, x22
	mov	x1, x25
	bl	_skb_pull
	sub	w21, w21, w25
LBB0_15:
	ldr	w8, [x19, #12]
	add	w8, w8, #1
	str	w8, [x19, #12]
	ldr	w8, [x19]
	add	w8, w8, w21
	str	w8, [x19]
	ldrb	w8, [x24, #1]
	tbz	w8, #0, LBB0_17
; %bb.16:
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
LBB0_17:
	str	xzr, [x20]
	mov	x0, x22
	mov	x1, x21
	bl	_skb_trim
	ldr	w1, [x19, #16]
	mov	x0, x22
	bl	_fddi_type_trans
	str	w0, [x22, #8]
	mov	x0, x22
	bl	_netif_rx
Lloh20:
	adrp	x8, _RX_LOW_WATERMARK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _RX_LOW_WATERMARK@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_HWM_RX_CHECK
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"entering mac_drv_rx_complete (len=%d)\n"

l_.str.1:                               ; @.str.1
	.asciz	"fddi: Multi-fragment receive!\n"

l_.str.2:                               ; @.str.2
	.asciz	"No skb in rxd\n"

	.comm	_FDDI_RII,1,0                   ; @FDDI_RII
l_.str.3:                               ; @.str.3
	.asciz	"RIF found\n"

	.comm	_FDDI_MAC_HDR_LEN,4,2           ; @FDDI_MAC_HDR_LEN
	.comm	_FDDI_RCF_LEN_MASK,2,1          ; @FDDI_RCF_LEN_MASK
l_.str.4:                               ; @.str.4
	.asciz	"fddi: Invalid RIF.\n"

	.comm	_RX_LOW_WATERMARK,4,2           ; @RX_LOW_WATERMARK
l_.str.5:                               ; @.str.5
	.asciz	"Rx: re-queue RXD.\n"

.subsections_via_symbols
