	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxgb4_create_server_filter     ## -- Begin function cxgb4_create_server_filter
	.p2align	4, 0x90
_cxgb4_create_server_filter:            ## @cxgb4_create_server_filter
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -52(%rbp)                 ## 4-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, %r15d
	callq	_netdev2adap
	movq	%rax, %r14
	subl	24(%rax), %r15d
	addl	16(%rax), %r15d
	movq	8(%rax), %rbx
	imulq	$88, %r15, %r13
	leaq	(%rbx,%r13), %rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_writable_filter
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.1:
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %r15
	cmpq	$0, 80(%rbx,%r13)
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_clear_filter
LBB0_3:
	movq	%r15, %rbx
	addq	%r13, %r15
	addq	$16, %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	%r12d, %edi
	callq	_cpu_to_be16
	movl	%eax, 72(%rbx,%r13)
	movl	$-1, 48(%rbx,%r13)
	movq	40(%rbx,%r13), %rax
	movq	56(%rbx,%r13), %rcx
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, (%rcx)
	movl	$-1, (%rax)
	movl	%edx, 4(%rcx)
	movl	$-1, 4(%rax)
	movl	%edx, 8(%rcx)
	movl	$-1, 8(%rax)
	movl	%edx, 12(%rcx)
	movl	$-1, 12(%rax)
	movl	32(%r14), %eax
	movq	_PORT_F@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.4:
	movb	24(%rbp), %cl
	movb	16(%rbp), %dl
	movb	%dl, 64(%rbx,%r13)
	movb	%cl, 32(%rbx,%r13)
LBB0_5:
	movq	_PROTOCOL_F@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	je	LBB0_7
## %bb.6:
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 68(%rbx,%r13)
	movl	$-1, 36(%rbx,%r13)
LBB0_7:
	movl	$1, (%r15)
	movl	%ecx, 20(%rbx,%r13)
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	$1, (%r15)
	movl	$1, 24(%rbx,%r13)
	movq	%rsi, %rax
	addq	(%r14), %rax
	movq	%rax, 8(%rbx,%r13)
	movq	%r14, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_set_filter_wr
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movq	%r15, %rsi
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_clear_filter
	jmp	LBB0_10
LBB0_8:
	xorl	%r12d, %r12d
LBB0_10:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PORT_F,4,2                     ## @PORT_F
	.comm	_PROTOCOL_F,4,2                 ## @PROTOCOL_F
	.comm	_IPPROTO_TCP,4,2                ## @IPPROTO_TCP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxgb4_create_server_filter     ; -- Begin function cxgb4_create_server_filter
	.p2align	2
_cxgb4_create_server_filter:            ; @cxgb4_create_server_filter
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x7
	mov	x24, x6
	mov	x20, x5
	mov	x27, x3
	mov	x25, x2
	mov	x21, x1
	bl	_netdev2adap
	mov	x19, x0
	ldr	w8, [x0, #24]
	ldr	w9, [x0, #16]
	sub	w8, w21, w8
	add	w22, w8, w9
	ldr	x28, [x0, #8]
	mov	w8, #88
	umaddl	x21, w22, w8, x28
	mov	x0, x21
	bl	_writable_filter
	mov	x26, x0
	cbnz	w0, LBB0_9
; %bb.1:
	str	w20, [sp, #12]                  ; 4-byte Folded Spill
	mov	w8, #88
	madd	x8, x22, x8, x28
	ldr	x8, [x8, #80]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x19
	mov	x1, x21
	bl	_clear_filter
LBB0_3:
	mov	w8, #88
	madd	x20, x22, x8, x28
	add	x26, x20, #16
	mov	x0, x26
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	x0, x27
	bl	_cpu_to_be16
	str	w0, [x20, #72]
	mov	w8, #-1
	str	w8, [x20, #48]
	ldr	x9, [x20, #56]
	ldr	x10, [x20, #40]
	str	w25, [x9]
	str	w8, [x10]
	str	w25, [x9, #4]
	str	w8, [x10, #4]
	str	w25, [x9, #8]
	str	w8, [x10, #8]
	str	w25, [x9, #12]
	str	w8, [x10, #12]
	ldr	w8, [x19, #32]
Lloh0:
	adrp	x9, _PORT_F@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PORT_F@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	mov	w9, #88
	madd	x9, x22, x9, x28
	strb	w24, [x9, #64]
	strb	w23, [x9, #32]
LBB0_5:
Lloh3:
	adrp	x9, _PROTOCOL_F@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PROTOCOL_F@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	ldr	w10, [sp, #12]                  ; 4-byte Folded Reload
	b.eq	LBB0_7
; %bb.6:
Lloh6:
	adrp	x8, _IPPROTO_TCP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IPPROTO_TCP@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	mov	w9, #88
	madd	x9, x22, x9, x28
	str	w8, [x9, #68]
	mov	w8, #-1
	str	w8, [x9, #36]
LBB0_7:
	mov	w8, #1
	str	w8, [x26]
	mov	w9, #88
	madd	x9, x22, x9, x28
	str	w8, [x21]
	stp	w10, w8, [x9, #20]
	ldr	x8, [x19]
	add	x8, x8, x22
	str	x8, [x9, #8]
	mov	x0, x19
	mov	x1, x22
	bl	_set_filter_wr
	mov	x26, x0
	cbz	w0, LBB0_9
; %bb.8:
	mov	x0, x19
	mov	x1, x21
	bl	_clear_filter
LBB0_9:
	mov	x0, x26
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PORT_F,4,2                     ; @PORT_F
	.comm	_PROTOCOL_F,4,2                 ; @PROTOCOL_F
	.comm	_IPPROTO_TCP,4,2                ; @IPPROTO_TCP
.subsections_via_symbols
