	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gen_pppoes                     ## -- Begin function gen_pppoes
	.p2align	4, 0x90
_gen_pppoes:                            ## @gen_pppoes
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	_ETHERTYPE_PPPOES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_gen_linktype
	movq	%rax, %r14
	testl	%r15d, %r15d
	js	LBB0_2
## %bb.1:
	movq	_OR_LINKPL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BPF_W@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	%r15d, %r8d
	movl	$65535, %r9d                    ## imm = 0xFFFF
	callq	_gen_mcmp
	movq	%rax, %r15
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_gen_and
	movq	%r15, %r14
LBB0_2:
	movq	_DLT_PPP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	36(%rbx), %edx
	movq	8(%rbx), %rax
	movq	24(%rbx), %rcx
	addq	%rax, %rcx
	addq	$6, %rcx
	movl	32(%rbx), %r8d
	movq	%rbx, %rdi
	callq	_PUSH_LINKHDR
	movq	16(%rbx), %rax
	movq	%rax, 40(%rbx)
	addq	$2, %rax
	movq	%rax, 24(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rbx)
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETHERTYPE_PPPOES,8,3           ## @ETHERTYPE_PPPOES
	.comm	_OR_LINKPL,4,2                  ## @OR_LINKPL
	.comm	_BPF_W,4,2                      ## @BPF_W
	.comm	_DLT_PPP,4,2                    ## @DLT_PPP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gen_pppoes                     ; -- Begin function gen_pppoes
	.p2align	2
_gen_pppoes:                            ; @gen_pppoes
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _ETHERTYPE_PPPOES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETHERTYPE_PPPOES@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_gen_linktype
	mov	x20, x0
	tbnz	w21, #31, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _OR_LINKPL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OR_LINKPL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _BPF_W@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BPF_W@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	x4, x21
	mov	w5, #65535
	bl	_gen_mcmp
	mov	x21, x0
	mov	x0, x20
	mov	x1, x21
	bl	_gen_and
	mov	x20, x21
LBB0_2:
Lloh9:
	adrp	x8, _DLT_PPP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DLT_PPP@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	x8, [x19, #24]
	ldr	x9, [x19, #8]
	add	x8, x8, x9
	add	x3, x8, #6
	ldp	w4, w2, [x19, #32]
	mov	x0, x19
	bl	_PUSH_LINKHDR
	ldr	x8, [x19, #16]
	str	x8, [x19, #40]
	add	x8, x8, #2
	str	x8, [x19, #24]
	stp	xzr, xzr, [x19]
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ETHERTYPE_PPPOES,8,3           ; @ETHERTYPE_PPPOES
	.comm	_OR_LINKPL,4,2                  ; @OR_LINKPL
	.comm	_BPF_W,4,2                      ; @BPF_W
	.comm	_DLT_PPP,4,2                    ; @DLT_PPP
.subsections_via_symbols
