	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function build_header
_build_header:                          ## @build_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	%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	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_netdev_priv
	movq	%rax, %r13
	movq	_ARC_HDR_SIZE@GOTPCREL(%rip), %rax
	movq	_RFC1201_HDR_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	addl	(%rax), %ebx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_skb_push
	movq	%rax, %r12
	leal	-128(%r14), %eax
	cmpw	$8, %ax
	jae	LBB0_1
## %bb.2:
	movswq	%ax, %rax
	leaq	l_switch.table.build_header(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r12)
	movq	8(%r15), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	movl	(%r13), %edi
	leal	1(%rdi), %eax
	movl	%eax, (%r13)
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_htons
	movl	%eax, 24(%r12)
	movq	$0, 16(%r12)
	movq	_IFF_LOOPBACK@GOTPCREL(%rip), %rax
	movq	_IFF_NOARP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%ecx, (%r15)
	je	LBB0_4
## %bb.3:
	movq	$0, (%r12)
	jmp	LBB0_5
LBB0_1:
	movq	_D_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movzwl	%r14w, %ecx
	leaq	L_.str(%rip), %rsi
	movl	%ecx, %edx
	callq	_BUGMSG
	incl	20(%r15)
	incl	16(%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_4:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%r12)
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ARC_HDR_SIZE,4,2               ## @ARC_HDR_SIZE
	.comm	_RFC1201_HDR_SIZE,4,2           ## @RFC1201_HDR_SIZE
	.comm	_ARC_P_IP,4,2                   ## @ARC_P_IP
	.comm	_ARC_P_IPV6,4,2                 ## @ARC_P_IPV6
	.comm	_ARC_P_ARP,4,2                  ## @ARC_P_ARP
	.comm	_ARC_P_RARP,4,2                 ## @ARC_P_RARP
	.comm	_ARC_P_IPX,4,2                  ## @ARC_P_IPX
	.comm	_ARC_P_ATALK,4,2                ## @ARC_P_ATALK
	.comm	_D_NORMAL,4,2                   ## @D_NORMAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RFC1201: I don't understand protocol %d (%Xh)\n"

	.comm	_IFF_LOOPBACK,4,2               ## @IFF_LOOPBACK
	.comm	_IFF_NOARP,4,2                  ## @IFF_NOARP
	.no_dead_strip	_build_header
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.build_header
l_switch.table.build_header:
	.quad	_ARC_P_RARP
	.quad	_ARC_P_IPX
	.quad	_ARC_P_IPV6
	.quad	_ARC_P_IP
	.quad	_ARC_P_ATALK
	.quad	_ARC_P_ARP
	.quad	_ARC_P_IPX
	.quad	_ARC_P_IPX

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function build_header
_build_header:                          ; @build_header
	.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	x21, x3
	mov	x23, x2
	mov	x20, x1
	mov	x22, x0
	mov	x0, x1
	bl	_netdev_priv
	mov	x24, x0
Lloh0:
	adrp	x8, _ARC_HDR_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ARC_HDR_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _RFC1201_HDR_SIZE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RFC1201_HDR_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	add	w19, w9, w8
	mov	x0, x22
	mov	x1, x19
	bl	_skb_push
	sub	w8, w23, #128
	cmp	w8, #8
	b.hs	LBB0_3
; %bb.1:
	mov	x22, x0
	sxth	x8, w8
Lloh6:
	adrp	x9, l_switch.table.build_header@PAGE
Lloh7:
	add	x9, x9, l_switch.table.build_header@PAGEOFF
	ldr	x8, [x9, x8, lsl #3]
	ldr	w8, [x8]
	str	w8, [x0, #28]
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
	str	w8, [x0, #8]
	ldr	w0, [x24]
	add	w8, w0, #1
	str	w8, [x24]
	bl	_htons
	str	w0, [x22, #24]
	str	xzr, [x22, #16]
	ldr	w8, [x20]
Lloh8:
	adrp	x9, _IFF_LOOPBACK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IFF_LOOPBACK@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _IFF_NOARP@GOTPAGE
Lloh12:
	ldr	x10, [x10, _IFF_NOARP@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
	str	xzr, [x22]
	b	LBB0_5
LBB0_3:
Lloh14:
	adrp	x8, _D_NORMAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _D_NORMAL@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x23
	mov	x3, x23
	bl	_BUGMSG
	mov	w19, #0
	ldr	d0, [x20, #16]
	movi.2s	v1, #1
	add.2s	v0, v0, v1
	str	d0, [x20, #16]
	b	LBB0_5
LBB0_4:
	str	x21, [x22]
LBB0_5:
	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 AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ARC_HDR_SIZE,4,2               ; @ARC_HDR_SIZE
	.comm	_RFC1201_HDR_SIZE,4,2           ; @RFC1201_HDR_SIZE
	.comm	_ARC_P_IP,4,2                   ; @ARC_P_IP
	.comm	_ARC_P_IPV6,4,2                 ; @ARC_P_IPV6
	.comm	_ARC_P_ARP,4,2                  ; @ARC_P_ARP
	.comm	_ARC_P_RARP,4,2                 ; @ARC_P_RARP
	.comm	_ARC_P_IPX,4,2                  ; @ARC_P_IPX
	.comm	_ARC_P_ATALK,4,2                ; @ARC_P_ATALK
	.comm	_D_NORMAL,4,2                   ; @D_NORMAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RFC1201: I don't understand protocol %d (%Xh)\n"

	.comm	_IFF_LOOPBACK,4,2               ; @IFF_LOOPBACK
	.comm	_IFF_NOARP,4,2                  ; @IFF_NOARP
	.no_dead_strip	_build_header
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.build_header
l_switch.table.build_header:
	.quad	_ARC_P_RARP
	.quad	_ARC_P_IPX
	.quad	_ARC_P_IPV6
	.quad	_ARC_P_IP
	.quad	_ARC_P_ATALK
	.quad	_ARC_P_ARP
	.quad	_ARC_P_IPX
	.quad	_ARC_P_IPX

.subsections_via_symbols
