	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_ect_tcp
_set_ect_tcp:                           ## @set_ect_tcp
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_ip_hdrlen
	leaq	-56(%rbp), %rcx
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$24, %edx
	callq	_skb_header_pointer
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.1:
	movl	(%r14), %edx
	movq	_IPT_ECN_OP_SET_ECE@GOTPCREL(%rip), %r12
	testl	%edx, (%r12)
	je	LBB0_3
## %bb.2:
	movq	(%rcx), %rax
	cmpq	8(%r14), %rax
	jne	LBB0_5
LBB0_3:
	movq	_IPT_ECN_OP_SET_CWR@GOTPCREL(%rip), %rsi
	movl	$1, %eax
	testl	%edx, (%rsi)
	je	LBB0_11
## %bb.4:
	movq	8(%rcx), %rcx
	cmpq	16(%r14), %rcx
	je	LBB0_11
LBB0_5:
	movq	%rbx, %rdi
	callq	_ip_hdrlen
                                        ## kill: def $eax killed $eax def $rax
	leal	24(%rax), %esi
	movq	%rbx, %rdi
	callq	_skb_make_writable
	movl	%eax, %ecx
	movl	$0, %eax
	testl	%ecx, %ecx
	je	LBB0_11
## %bb.6:
	movq	%rbx, %rdi
	callq	_ip_hdr
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_ip_hdrlen
	movslq	%eax, %rcx
	leaq	(%r15,%rcx), %rdi
	movl	(%r14), %eax
	testl	%eax, (%r12)
	je	LBB0_8
## %bb.7:
	movq	8(%r14), %rdx
	movq	%rdx, (%rdi)
LBB0_8:
	movl	24(%r15,%rcx), %ecx
	movq	_IPT_ECN_OP_SET_CWR@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_10
## %bb.9:
	movq	16(%r14), %rax
	movq	%rax, 8(%rdi)
LBB0_10:
	addq	$16, %rdi
	movq	%rbx, %rsi
	movl	%ecx, %edx
	xorl	%r8d, %r8d
	callq	_inet_proto_csum_replace2
	movl	$1, %eax
LBB0_11:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IPT_ECN_OP_SET_ECE,4,2         ## @IPT_ECN_OP_SET_ECE
	.comm	_IPT_ECN_OP_SET_CWR,4,2         ## @IPT_ECN_OP_SET_CWR
	.no_dead_strip	_set_ect_tcp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_ect_tcp
_set_ect_tcp:                           ; @set_ect_tcp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	bl	_ip_hdrlen
	mov	x1, x0
	add	x3, sp, #8
	mov	x0, x19
	mov	w2, #24
	bl	_skb_header_pointer
	cbz	x0, LBB0_12
; %bb.1:
	ldr	w8, [x20]
Lloh0:
	adrp	x23, _IPT_ECN_OP_SET_ECE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _IPT_ECN_OP_SET_ECE@GOTPAGEOFF]
	ldr	w9, [x23]
Lloh2:
	adrp	x22, _IPT_ECN_OP_SET_CWR@GOTPAGE
Lloh3:
	ldr	x22, [x22, _IPT_ECN_OP_SET_CWR@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	ldr	x9, [x0]
	ldr	x10, [x20, #8]
	cmp	x9, x10
	b.ne	LBB0_5
LBB0_3:
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.4:
	ldr	x8, [x0, #8]
	ldr	x9, [x20, #16]
	cmp	x8, x9
	b.eq	LBB0_11
LBB0_5:
	mov	x0, x19
	bl	_ip_hdrlen
	add	w1, w0, #24
	mov	x0, x19
	bl	_skb_make_writable
	cbz	w0, LBB0_12
; %bb.6:
	mov	x0, x19
	bl	_ip_hdr
	mov	x21, x0
	mov	x0, x19
	bl	_ip_hdrlen
	add	x8, x21, w0, sxtw
	ldr	w2, [x8, #24]
	ldr	w9, [x20]
	ldr	w10, [x23]
	tst	w10, w9
	b.eq	LBB0_8
; %bb.7:
	ldr	x10, [x20, #8]
	str	x10, [x8]
LBB0_8:
	ldr	w10, [x22]
	tst	w10, w9
	b.eq	LBB0_10
; %bb.9:
	ldr	x9, [x20, #16]
	str	x9, [x8, #8]
LBB0_10:
	add	x0, x8, #16
	mov	x1, x19
	mov	x3, x2
	mov	w4, #0
	bl	_inet_proto_csum_replace2
LBB0_11:
	mov	w0, #1
LBB0_12:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_IPT_ECN_OP_SET_ECE,4,2         ; @IPT_ECN_OP_SET_ECE
	.comm	_IPT_ECN_OP_SET_CWR,4,2         ; @IPT_ECN_OP_SET_CWR
	.no_dead_strip	_set_ect_tcp
.subsections_via_symbols
