	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gen_ether_linktype
_gen_ether_linktype:                    ## @gen_ether_linktype
	.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
	movl	%esi, %r15d
	movq	%rdi, %r14
	leal	-128(%r15), %eax
	cmpl	$5, %eax
	ja	LBB0_9
## %bb.1:
	movl	$11, %ecx
	btl	%eax, %ecx
	jae	LBB0_2
## %bb.13:
	movq	_OR_LINKTYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BPF_H@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	movq	_ETHERMTU@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_gen_cmp_gt
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_gen_not
	movq	_OR_LLC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %ecx
	movl	%r15d, %r8d
	shll	$8, %r8d
	orl	%r15d, %r8d
	movq	%r14, %rdi
	xorl	%edx, %edx
LBB0_11:
	callq	_gen_cmp
	movq	%rax, %r13
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_gen_and
	jmp	LBB0_12
LBB0_2:
	movl	$48, %ecx
	btl	%eax, %ecx
	jae	LBB0_3
## %bb.4:
	movq	_OR_LINKTYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BPF_H@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	movq	_ETHERMTU@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_gen_cmp_gt
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_gen_not
	movq	%r14, %rdi
	cmpl	$132, %r15d
	jne	LBB0_6
## %bb.5:
	movl	$524295, %esi                   ## imm = 0x80007
	movl	$132, %edx
	jmp	LBB0_7
LBB0_3:
	movq	_OR_LLC@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_BPF_B@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	xorl	%edx, %edx
	movl	$130, %r8d
	callq	_gen_cmp
	movq	%rax, %rbx
	movl	(%r15), %esi
	movq	_BPF_H@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	movq	%r14, %rdi
	xorl	%edx, %edx
	movl	$65535, %r8d                    ## imm = 0xFFFF
	callq	_gen_cmp
	movq	%rax, %r13
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_gen_or
	movq	_ETHERTYPE_IPX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_gen_snap
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	_gen_or
	movq	_OR_LINKTYPE@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	(%r15), %ecx
	movq	_ETHERMTU@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_gen_cmp_gt
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_gen_not
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_gen_and
	movl	(%r12), %esi
	movl	(%r15), %ecx
	movq	_ETHERTYPE_IPX@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	xorl	%edx, %edx
	jmp	LBB0_8
LBB0_6:
	xorl	%esi, %esi
	movl	$133, %edx
LBB0_7:
	callq	_gen_snap
	movq	%rax, %r13
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_gen_and
	movq	_OR_LINKTYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %ecx
	movq	%r14, %rdi
	xorl	%edx, %edx
	movl	%r15d, %r8d
LBB0_8:
	callq	_gen_cmp
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	_gen_or
LBB0_12:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_ETHERMTU@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_OR_LINKTYPE@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_BPF_H@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmpl	%r15d, %r8d
	jge	LBB0_10
## %bb.14:
	movq	%r14, %rdi
	xorl	%edx, %edx
	movl	%r15d, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gen_cmp                        ## TAILCALL
LBB0_10:
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_gen_cmp_gt
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_gen_not
	movl	(%r12), %esi
	movq	_BPF_B@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	$2, %edx
	movl	%r15d, %r8d
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_OR_LINKTYPE,4,2                ## @OR_LINKTYPE
	.comm	_BPF_H,4,2                      ## @BPF_H
	.comm	_ETHERMTU,4,2                   ## @ETHERMTU
	.comm	_OR_LLC,4,2                     ## @OR_LLC
	.comm	_BPF_B,4,2                      ## @BPF_B
	.comm	_ETHERTYPE_IPX,4,2              ## @ETHERTYPE_IPX
	.no_dead_strip	_gen_ether_linktype
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gen_ether_linktype
_gen_ether_linktype:                    ; @gen_ether_linktype
	.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	x20, x1
	mov	x19, x0
	sub	w8, w1, #128
	cmp	w8, #5
	b.hi	LBB0_12
; %bb.1:
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #11
	tst	w8, w9
	b.eq	LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _OR_LINKTYPE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OR_LINKTYPE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x21, _BPF_H@GOTPAGE
Lloh4:
	ldr	x21, [x21, _BPF_H@GOTPAGEOFF]
	ldr	w3, [x21]
Lloh5:
	adrp	x8, _ETHERMTU@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ETHERMTU@GOTPAGEOFF]
Lloh7:
	ldr	w4, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_gen_cmp_gt
	mov	x22, x0
	bl	_gen_not
Lloh8:
	adrp	x8, _OR_LLC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _OR_LLC@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	w3, [x21]
	orr	w4, w20, w20, lsl #8
	mov	x0, x19
	mov	w2, #0
LBB0_3:
	bl	_gen_cmp
	mov	x21, x0
	mov	x0, x22
	mov	x1, x21
	bl	_gen_and
	b	LBB0_11
LBB0_4:
	tst	w8, #0x30
	b.eq	LBB0_7
; %bb.5:
Lloh11:
	adrp	x23, _OR_LINKTYPE@GOTPAGE
Lloh12:
	ldr	x23, [x23, _OR_LINKTYPE@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh13:
	adrp	x24, _BPF_H@GOTPAGE
Lloh14:
	ldr	x24, [x24, _BPF_H@GOTPAGEOFF]
	ldr	w3, [x24]
Lloh15:
	adrp	x8, _ETHERMTU@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ETHERMTU@GOTPAGEOFF]
Lloh17:
	ldr	w4, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_gen_cmp_gt
	mov	x22, x0
	bl	_gen_not
	mov	x0, x19
	cmp	w20, #132
	b.ne	LBB0_8
; %bb.6:
	mov	w1, #7
	movk	w1, #8, lsl #16
	mov	w2, #132
	b	LBB0_9
LBB0_7:
Lloh18:
	adrp	x21, _OR_LLC@GOTPAGE
Lloh19:
	ldr	x21, [x21, _OR_LLC@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh20:
	adrp	x8, _BPF_B@GOTPAGE
Lloh21:
	ldr	x8, [x8, _BPF_B@GOTPAGEOFF]
Lloh22:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w4, #130
	bl	_gen_cmp
	mov	x20, x0
	ldr	w1, [x21]
Lloh23:
	adrp	x22, _BPF_H@GOTPAGE
Lloh24:
	ldr	x22, [x22, _BPF_H@GOTPAGEOFF]
	ldr	w3, [x22]
	mov	x0, x19
	mov	w2, #0
	mov	w4, #65535
	bl	_gen_cmp
	mov	x21, x0
	mov	x0, x20
	mov	x1, x21
	bl	_gen_or
Lloh25:
	adrp	x23, _ETHERTYPE_IPX@GOTPAGE
Lloh26:
	ldr	x23, [x23, _ETHERTYPE_IPX@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x19
	mov	w1, #0
	bl	_gen_snap
	mov	x1, x21
	bl	_gen_or
Lloh27:
	adrp	x24, _OR_LINKTYPE@GOTPAGE
Lloh28:
	ldr	x24, [x24, _OR_LINKTYPE@GOTPAGEOFF]
	ldr	w1, [x24]
	ldr	w3, [x22]
Lloh29:
	adrp	x8, _ETHERMTU@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ETHERMTU@GOTPAGEOFF]
Lloh31:
	ldr	w4, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_gen_cmp_gt
	mov	x20, x0
	bl	_gen_not
	mov	x0, x20
	mov	x1, x21
	bl	_gen_and
	ldr	w1, [x24]
	ldr	w3, [x22]
	ldr	w4, [x23]
	mov	x0, x19
	mov	w2, #0
	b	LBB0_10
LBB0_8:
	mov	w1, #0
	mov	w2, #133
LBB0_9:
	bl	_gen_snap
	mov	x21, x0
	mov	x0, x22
	mov	x1, x21
	bl	_gen_and
	ldr	w1, [x23]
	ldr	w3, [x24]
	mov	x0, x19
	mov	w2, #0
	mov	x4, x20
LBB0_10:
	bl	_gen_cmp
	mov	x1, x21
	bl	_gen_or
LBB0_11:
	mov	x0, x21
	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_12:
Lloh32:
	adrp	x8, _ETHERMTU@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ETHERMTU@GOTPAGEOFF]
Lloh34:
	adrp	x21, _OR_LINKTYPE@GOTPAGE
Lloh35:
	ldr	x21, [x21, _OR_LINKTYPE@GOTPAGEOFF]
Lloh36:
	ldr	w4, [x8]
	ldr	w1, [x21]
Lloh37:
	adrp	x8, _BPF_H@GOTPAGE
Lloh38:
	ldr	x8, [x8, _BPF_H@GOTPAGEOFF]
Lloh39:
	ldr	w3, [x8]
	cmp	w4, w20
	b.ge	LBB0_14
; %bb.13:
	mov	x0, x19
	mov	w2, #0
	mov	x4, 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
	b	_gen_cmp
LBB0_14:
	mov	x0, x19
	mov	w2, #0
	bl	_gen_cmp_gt
	mov	x22, x0
	bl	_gen_not
	ldr	w1, [x21]
Lloh40:
	adrp	x8, _BPF_B@GOTPAGE
Lloh41:
	ldr	x8, [x8, _BPF_B@GOTPAGEOFF]
Lloh42:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w2, #2
	mov	x4, x20
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh36
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_OR_LINKTYPE,4,2                ; @OR_LINKTYPE
	.comm	_BPF_H,4,2                      ; @BPF_H
	.comm	_ETHERMTU,4,2                   ; @ETHERMTU
	.comm	_OR_LLC,4,2                     ; @OR_LLC
	.comm	_BPF_B,4,2                      ; @BPF_B
	.comm	_ETHERTYPE_IPX,4,2              ; @ETHERTYPE_IPX
	.no_dead_strip	_gen_ether_linktype
.subsections_via_symbols
