	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlxsw_sp_acl_rule_add          ## -- Begin function mlxsw_sp_acl_rule_add
	.p2align	4, 0x90
_mlxsw_sp_acl_rule_add:                 ## @mlxsw_sp_acl_rule_add
	.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, %r12
	movq	%rdi, %r14
	movq	24(%rsi), %rbx
	movq	16(%rbx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	24(%rbx), %r15
	movl	32(%rbx), %esi
	movl	(%r12), %edx
	movq	8(%r12), %rcx
	callq	*(%r15)
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.1:
	leaq	4(%r12), %rsi
	movq	_mlxsw_sp_acl_rule_ht_params@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	callq	_rhashtable_insert_fast
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_2
LBB0_7:
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	*8(%r15)
	jmp	LBB0_8
LBB0_2:
	cmpl	$0, 8(%rbx)
	je	LBB0_3
LBB0_5:
	leaq	16(%r12), %rdi
	movq	(%r14), %rsi
	callq	_list_add_tail
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	incl	4(%rcx)
	movq	8(%r12), %rax
	movl	(%rax), %eax
	addl	%eax, (%rcx)
	xorl	%r13d, %r13d
LBB0_8:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%rbx, %rdi
	callq	_mlxsw_sp_acl_ruleset_is_singular
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_mlxsw_sp_acl_ruleset_block_bind
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	%eax, %r13d
	movq	_mlxsw_sp_acl_rule_ht_params@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_rhashtable_remove_fast
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_mlxsw_sp_acl_rule_ht_params,4,2 ## @mlxsw_sp_acl_rule_ht_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlxsw_sp_acl_rule_add          ; -- Begin function mlxsw_sp_acl_rule_add
	.p2align	2
_mlxsw_sp_acl_rule_add:                 ; @mlxsw_sp_acl_rule_add
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x22, [x1, #24]
	ldp	x21, x25, [x22, #16]
	ldr	x8, [x25]
	ldr	w1, [x22, #32]
	ldr	w2, [x19]
	ldr	x3, [x19, #8]
	blr	x8
	mov	x23, x0
	cbnz	w0, LBB0_5
; %bb.1:
	add	x24, x19, #4
Lloh0:
	adrp	x26, _mlxsw_sp_acl_rule_ht_params@GOTPAGE
Lloh1:
	ldr	x26, [x26, _mlxsw_sp_acl_rule_ht_params@GOTPAGEOFF]
	ldr	w2, [x26]
	mov	x0, x22
	mov	x1, x24
	bl	_rhashtable_insert_fast
	mov	x23, x0
	cbz	w0, LBB0_3
LBB0_2:
	ldr	x8, [x25, #8]
	ldr	w1, [x19]
	mov	x0, x20
	blr	x8
	b	LBB0_5
LBB0_3:
	ldr	w8, [x22, #8]
	cbz	w8, LBB0_6
LBB0_4:
	add	x0, x19, #16
	ldr	x1, [x20]
	bl	_list_add_tail
	mov	w23, #0
	ldr	x8, [x19, #8]
	ldr	d0, [x21]
	movi.2s	v1, #1
	ld1.s	{ v1 }[0], [x8]
	add.2s	v0, v0, v1
	str	d0, [x21]
LBB0_5:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x0, x22
	bl	_mlxsw_sp_acl_ruleset_is_singular
	cbz	x0, LBB0_4
; %bb.7:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_mlxsw_sp_acl_ruleset_block_bind
	cbz	w0, LBB0_4
; %bb.8:
	mov	x23, x0
	ldr	w2, [x26]
	mov	x0, x22
	mov	x1, x24
	bl	_rhashtable_remove_fast
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_mlxsw_sp_acl_rule_ht_params,4,2 ; @mlxsw_sp_acl_rule_ht_params
.subsections_via_symbols
