	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxgb4_delete_knode             ## -- Begin function cxgb4_delete_knode
	.p2align	4, 0x90
_cxgb4_delete_knode:                    ## @cxgb4_delete_knode
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	callq	_netdev2adap
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_can_tc_u32_offload
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movl	(%rbx), %r14d
	movl	%r14d, %r13d
	andl	$1048575, %r13d                 ## imm = 0xFFFFF
	movl	(%r12), %ecx
	cmpl	%ecx, %r13d
	jbe	LBB0_5
## %bb.4:
	movl	16(%r12), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edx
	callq	_dev_err
	movq	_ERANGE@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_5:
	movq	8(%r12), %rbx
	movl	%r14d, %edi
	callq	_TC_U32_USERHTID
	cmpl	$2048, %eax                     ## imm = 0x800
	jne	LBB0_6
## %bb.26:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movl	%r13d, %esi
	xorl	%edx, %edx
	callq	_cxgb4_del_filter
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_25
LBB0_12:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %eax
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	movl	(%r12), %edx
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movq	8(%rcx), %r12
	shlq	$3, %rax
	leaq	(%rax,%rax,2), %rax
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	cmpl	%r14d, (%r12,%r13)
	je	LBB0_16
## %bb.24:                              ##   in Loop: Header=BB0_15 Depth=1
	addq	$24, %r13
	cmpq	%r13, %rax
	jne	LBB0_15
	jmp	LBB0_25
LBB0_6:
	cmpl	(%rbx), %eax
	jge	LBB0_7
## %bb.8:
	movq	8(%rbx), %rcx
	decl	%eax
	cltq
	leaq	(%rax,%rax,2), %rax
	cmpl	$0, (%rcx,%rax,8)
	je	LBB0_7
## %bb.9:
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	16(%rcx,%rax,8), %esi
	movl	%r13d, %edi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_7
## %bb.10:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movl	%r13d, %esi
	xorl	%edx, %edx
	callq	_cxgb4_del_filter
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_25
## %bb.11:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx,8), %rax
	addq	$16, %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	callq	_clear_bit
	jmp	LBB0_12
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_25:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	xorl	%ebx, %ebx
	jmp	LBB0_25
LBB0_16:
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_23
## %bb.17:
	xorl	%r14d, %r14d
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_18 Depth=1
	incl	%r14d
	cmpl	%r14d, -48(%rbp)                ## 4-byte Folded Reload
	je	LBB0_23
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movl	16(%r12,%r13), %esi
	movl	%r14d, %edi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_22
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	movq	%r15, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	___cxgb4_del_filter
	testl	%eax, %eax
	jne	LBB0_20
## %bb.21:                              ##   in Loop: Header=BB0_18 Depth=1
	movl	16(%r12,%r13), %esi
	movl	%r14d, %edi
	callq	_clear_bit
	jmp	LBB0_22
LBB0_23:
	movq	$0, 8(%r12,%r13)
	movl	$0, (%r12,%r13)
	leaq	(%r12,%r13), %rdi
	addq	$4, %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	jmp	LBB0_25
LBB0_20:
	movl	%eax, %ebx
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Location %d out of range for deletion. Max: %d\n"

	.comm	_ERANGE,4,2                     ## @ERANGE
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxgb4_delete_knode             ; -- Begin function cxgb4_delete_knode
	.p2align	2
_cxgb4_delete_knode:                    ; @cxgb4_delete_knode
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	_netdev2adap
	mov	x21, x0
	mov	x0, x19
	bl	_can_tc_u32_offload
	cbz	w0, LBB0_3
; %bb.1:
	ldr	w20, [x20]
	and	w22, w20, #0xfffff
	ldr	w3, [x21]
	cmp	w22, w3
	b.ls	LBB0_4
; %bb.2:
	ldr	w0, [x21, #16]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_dev_err
Lloh2:
	adrp	x8, _ERANGE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
	b	LBB0_17
LBB0_3:
Lloh4:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_17
LBB0_4:
	ldr	x23, [x21, #8]
	mov	x0, x20
	bl	_TC_U32_USERHTID
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w0, #2048
	b.ne	LBB0_10
; %bb.5:
	mov	x0, x19
	mov	x1, x22
	mov	x2, #0
	bl	_cxgb4_del_filter
	cbnz	w0, LBB0_18
; %bb.6:
	ldr	w8, [x23]
	cbz	w8, LBB0_15
LBB0_7:
	ldr	w22, [x21]
	ldr	x9, [x23, #8]
	add	x21, x9, #16
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w9, [x21, #-16]
	cmp	w9, w20
	b.eq	LBB0_19
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	w0, #0
	add	x21, x21, #24
	subs	x8, x8, #1
	b.ne	LBB0_8
	b	LBB0_18
LBB0_10:
	ldr	w8, [x23]
	cmp	w0, w8
	b.ge	LBB0_16
; %bb.11:
	ldr	x8, [x23, #8]
	sxtw	x9, w0
	sub	x9, x9, #1
	mov	w10, #24
	mul	x10, x9, x10
	ldr	w10, [x8, x10]
	cbz	w10, LBB0_16
; %bb.12:
	mov	w10, #24
	madd	x24, x9, x10, x8
	ldr	w1, [x24, #16]!
	mov	x0, x22
	bl	_test_bit
	cbz	w0, LBB0_16
; %bb.13:
	mov	x0, x19
	mov	x1, x22
	mov	x2, #0
	bl	_cxgb4_del_filter
	cbnz	w0, LBB0_18
; %bb.14:
	ldr	w1, [x24]
	mov	x0, x22
	bl	_clear_bit
	ldr	w8, [x23]
	cbnz	w8, LBB0_7
LBB0_15:
	mov	w0, #0
	b	LBB0_18
LBB0_16:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_18:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_19:
	cbz	w22, LBB0_25
; %bb.20:
	mov	w20, #0
	b	LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_22 Depth=1
	add	w20, w20, #1
	cmp	w22, w20
	b.eq	LBB0_25
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	mov	x0, x20
	bl	_test_bit
	cbz	w0, LBB0_21
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	mov	x0, x19
	mov	x1, x20
	mov	x2, #0
	mov	x3, #0
	bl	___cxgb4_del_filter
	cbnz	w0, LBB0_18
; %bb.24:                               ;   in Loop: Header=BB0_22 Depth=1
	ldr	w1, [x21]
	mov	x0, x20
	bl	_clear_bit
	b	LBB0_21
LBB0_25:
	stur	xzr, [x21, #-8]
	stur	wzr, [x21, #-16]
	sub	x0, x21, #12
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	w0, #0
	b	LBB0_18
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Location %d out of range for deletion. Max: %d\n"

	.comm	_ERANGE,4,2                     ; @ERANGE
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
