	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arcnet_rebuild_header
_arcnet_rebuild_header:                 ## @arcnet_rebuild_header
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_netdev_priv
	movl	(%rbx), %eax
	subl	4(%rbx), %eax
	cmpl	$2, %eax
	jne	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_skb_pull
	movzwl	(%rax), %eax
	movq	_D_DURING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movzwl	%ax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_BUGMSG
	movq	_ETH_P_IP@GOTPCREL(%rip), %rax
	cmpw	(%rax), %bx
	je	LBB0_4
## %bb.3:
	movq	_D_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_BUGMSG
	incl	4(%r14)
	incl	(%r14)
	jmp	LBB0_4
LBB0_1:
	movq	_D_NORMAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movzwl	%ax, %edx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_BUGMSG
LBB0_4:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_D_NORMAL,4,2                   ## @D_NORMAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rebuild_header: shouldn't be here! (hdrsize=%d)\n"

	.comm	_D_DURING,4,2                   ## @D_DURING
L_.str.1:                               ## @.str.1
	.asciz	"rebuild header for protocol %Xh\n"

	.comm	_ETH_P_IP,2,1                   ## @ETH_P_IP
L_.str.2:                               ## @.str.2
	.asciz	"I don't understand ethernet protocol %Xh addresses!\n"

	.comm	_arc_proto_map,8,3              ## @arc_proto_map
	.no_dead_strip	_arcnet_rebuild_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arcnet_rebuild_header
_arcnet_rebuild_header:                 ; @arcnet_rebuild_header
	.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	x20, x0
	ldr	x19, [x0, #8]
	mov	x0, x19
	bl	_netdev_priv
	ldp	w8, w9, [x20]
	sub	w8, w8, w9
	cmp	w8, #2
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x20
	mov	w1, #2
	bl	_skb_pull
	ldrh	w20, [x0]
Lloh0:
	adrp	x8, _D_DURING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _D_DURING@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_BUGMSG
Lloh5:
	adrp	x8, _ETH_P_IP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ETH_P_IP@GOTPAGEOFF]
	ldrh	w8, [x8]
	cmp	w20, w8
	b.eq	LBB0_4
; %bb.2:
Lloh7:
	adrp	x8, _D_NORMAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _D_NORMAL@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x20
	bl	_BUGMSG
	ldr	d0, [x19]
	movi.2s	v1, #1
	add.2s	v0, v0, v1
	str	d0, [x19]
	b	LBB0_4
LBB0_3:
Lloh12:
	adrp	x9, _D_NORMAL@GOTPAGE
Lloh13:
	ldr	x9, [x9, _D_NORMAL@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x9]
	and	w2, w8, #0xffff
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	bl	_BUGMSG
LBB0_4:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_D_NORMAL,4,2                   ; @D_NORMAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rebuild_header: shouldn't be here! (hdrsize=%d)\n"

	.comm	_D_DURING,4,2                   ; @D_DURING
l_.str.1:                               ; @.str.1
	.asciz	"rebuild header for protocol %Xh\n"

	.comm	_ETH_P_IP,2,1                   ; @ETH_P_IP
l_.str.2:                               ; @.str.2
	.asciz	"I don't understand ethernet protocol %Xh addresses!\n"

	.comm	_arc_proto_map,8,3              ; @arc_proto_map
	.no_dead_strip	_arcnet_rebuild_header
.subsections_via_symbols
