	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ttl_tg
_ttl_tg:                                ## @ttl_tg
	.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	%rdi, %rbx
	movq	(%rsi), %r15
	movl	(%rdi), %esi
	callq	_skb_make_writable
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_ip_hdr
	movq	%rax, %r14
	movl	(%r15), %eax
	movq	_XT_CONTINUE@GOTPCREL(%rip), %r12
	cmpl	$130, %eax
	je	LBB0_7
## %bb.3:
	cmpl	$129, %eax
	je	LBB0_6
## %bb.4:
	cmpl	$128, %eax
	jne	LBB0_10
## %bb.5:
	movl	4(%r15), %ebx
	movl	(%r14), %edi
	cmpl	%edi, %ebx
	jne	LBB0_9
	jmp	LBB0_10
LBB0_1:
	movq	_NF_DROP@GOTPCREL(%rip), %r12
	jmp	LBB0_10
LBB0_7:
	movl	(%r14), %edi
	movl	%edi, %eax
	subl	4(%r15), %eax
	xorl	%ebx, %ebx
	testl	%eax, %eax
	cmovgl	%eax, %ebx
	cmpl	%edi, %ebx
	jne	LBB0_9
	jmp	LBB0_10
LBB0_6:
	movl	(%r14), %edi
	movl	4(%r15), %eax
	addl	%edi, %eax
	cmpl	$255, %eax
	movl	$255, %ebx
	cmovll	%eax, %ebx
	cmpl	%edi, %ebx
	je	LBB0_10
LBB0_9:
	movq	%r14, %r13
	addq	$4, %r13
	shll	$8, %edi
	callq	_htons
	movl	%eax, %r15d
	movl	%ebx, %edi
	shll	$8, %edi
	callq	_htons
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_csum_replace2
	movl	%ebx, (%r14)
LBB0_10:
	movl	(%r12), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NF_DROP,4,2                    ## @NF_DROP
	.comm	_XT_CONTINUE,4,2                ## @XT_CONTINUE
	.no_dead_strip	_ttl_tg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ttl_tg
_ttl_tg:                                ; @ttl_tg
	.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	x19, x0
	ldr	x20, [x1]
	ldr	w1, [x0]
	bl	_skb_make_writable
	cbz	w0, LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_ip_hdr
	mov	x19, x0
	ldr	w8, [x20]
	cmp	w8, #130
	b.eq	LBB0_6
; %bb.2:
	cmp	w8, #129
	b.eq	LBB0_7
; %bb.3:
	cmp	w8, #128
	b.ne	LBB0_9
; %bb.4:
	ldr	w22, [x20, #4]
	ldr	w8, [x19]
	cmp	w22, w8
	b.ne	LBB0_8
	b	LBB0_9
LBB0_5:
Lloh0:
	adrp	x8, _NF_DROP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NF_DROP@GOTPAGEOFF]
	b	LBB0_10
LBB0_6:
	ldr	w8, [x19]
	ldr	w9, [x20, #4]
	sub	w9, w8, w9
	cmp	w9, #0
	csel	w22, w9, wzr, gt
	cmp	w22, w8
	b.ne	LBB0_8
	b	LBB0_9
LBB0_7:
	ldr	w8, [x19]
	ldr	w9, [x20, #4]
	add	w9, w9, w8
	mov	w10, #255
	cmp	w9, #255
	csel	w22, w9, w10, lt
	cmp	w22, w8
	b.eq	LBB0_9
LBB0_8:
	add	x20, x19, #4
	lsl	w0, w8, #8
	bl	_htons
	mov	x21, x0
	lsl	w0, w22, #8
	bl	_htons
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_csum_replace2
	str	w22, [x19]
LBB0_9:
Lloh2:
	adrp	x8, _XT_CONTINUE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _XT_CONTINUE@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_NF_DROP,4,2                    ; @NF_DROP
	.comm	_XT_CONTINUE,4,2                ; @XT_CONTINUE
	.no_dead_strip	_ttl_tg
.subsections_via_symbols
