	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_ect_ip
_set_ect_ip:                            ## @set_ect_ip
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_ip_hdr
	movl	(%r15), %ecx
	xorl	(%rax), %ecx
	movq	_IPT_ECN_IP_MASK@GOTPCREL(%rip), %r12
	movl	$1, %r14d
	testl	%ecx, (%r12)
	je	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	movl	$8, %esi
	callq	_skb_make_writable
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	%rbx, %rdi
	callq	_ip_hdr
	movq	%rax, %rbx
	movl	(%rax), %edi
	movl	(%r12), %eax
	notl	%eax
	andl	%edi, %eax
	movl	%eax, (%rbx)
	movl	(%r12), %ecx
	andl	(%r15), %ecx
	orl	%eax, %ecx
	movl	%ecx, (%rbx)
	leaq	4(%rbx), %r15
	callq	_htons
	movl	%eax, %r12d
	movl	(%rbx), %edi
	callq	_htons
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_csum_replace2
	jmp	LBB0_4
LBB0_2:
	xorl	%r14d, %r14d
LBB0_4:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IPT_ECN_IP_MASK,4,2            ## @IPT_ECN_IP_MASK
	.no_dead_strip	_set_ect_ip
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_ect_ip
_set_ect_ip:                            ; @set_ect_ip
	.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, x1
	mov	x20, x0
	bl	_ip_hdr
	ldr	w8, [x0]
Lloh0:
	adrp	x21, _IPT_ECN_IP_MASK@GOTPAGE
Lloh1:
	ldr	x21, [x21, _IPT_ECN_IP_MASK@GOTPAGEOFF]
	ldr	w9, [x21]
	ldr	w10, [x19]
	eor	w8, w10, w8
	tst	w8, w9
	b.eq	LBB0_3
; %bb.1:
	mov	x0, x20
	mov	w1, #8
	bl	_skb_make_writable
	cbz	w0, LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_ip_hdr
	mov	x20, x0
	ldr	w0, [x0]
	ldr	w8, [x21]
	bic	w8, w0, w8
	str	w8, [x20]
	ldr	w9, [x19]
	ldr	w10, [x21]
	and	w9, w10, w9
	orr	w8, w9, w8
	str	w8, [x20]
	bl	_htons
	mov	x19, x0
	ldr	w0, [x20], #4
	bl	_htons
	mov	x2, x0
	mov	x0, x20
	mov	x1, x19
	bl	_csum_replace2
LBB0_3:
	mov	w0, #1
LBB0_4:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_IPT_ECN_IP_MASK,4,2            ; @IPT_ECN_IP_MASK
	.no_dead_strip	_set_ect_ip
.subsections_via_symbols
