	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_acl_ruleset_create
_mlxsw_sp_acl_ruleset_create:           ## @mlxsw_sp_acl_ruleset_create
	.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	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r14
	movl	%edx, %r12d
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movslq	(%rcx), %rdi
	addq	$40, %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movl	$1, (%rax)
	movq	%r13, 32(%rax)
	movl	%r12d, 24(%rax)
	movq	%r14, 16(%rax)
	leaq	4(%rax), %r13
	movq	_mlxsw_sp_acl_rule_ht_params@GOTPCREL(%rip), %rsi
	movq	%r13, %rdi
	callq	_rhashtable_init
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	4(%rax), %rsi
	movl	8(%rbx), %edx
	movq	%r15, %rdi
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	*8(%r14)
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	movq	%rbx, %rsi
	addq	$12, %rsi
	movq	_mlxsw_sp_acl_ruleset_ht_params@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_rhashtable_insert_fast
	testl	%eax, %eax
	je	LBB0_9
## %bb.5:
	movl	%eax, %r12d
	movl	8(%rbx), %esi
	movq	%r15, %rdi
	callq	*16(%r14)
LBB0_6:
	movq	%r13, %rdi
	callq	_rhashtable_destroy
LBB0_7:
	movq	%rbx, %rdi
	callq	_kfree
	jmp	LBB0_8
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_8:
	movl	%r12d, %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_9:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_mlxsw_sp_acl_rule_ht_params,4,2 ## @mlxsw_sp_acl_rule_ht_params
	.comm	_mlxsw_sp_acl_ruleset_ht_params,4,2 ## @mlxsw_sp_acl_ruleset_ht_params
	.no_dead_strip	_mlxsw_sp_acl_ruleset_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_sp_acl_ruleset_create
_mlxsw_sp_acl_ruleset_create:           ; @mlxsw_sp_acl_ruleset_create
	.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	x24, x4
	mov	x21, x3
	mov	x22, x2
	mov	x25, x1
	mov	x20, x0
	ldr	x23, [x0]
	ldrsw	x8, [x3]
	add	x0, x8, #40
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	mov	w8, #1
	str	w8, [x0]
	str	x25, [x0, #32]
	str	w22, [x0, #24]
	str	x21, [x0, #16]
	add	x22, x0, #4
Lloh3:
	adrp	x1, _mlxsw_sp_acl_rule_ht_params@GOTPAGE
Lloh4:
	ldr	x1, [x1, _mlxsw_sp_acl_rule_ht_params@GOTPAGEOFF]
	mov	x0, x22
	bl	_rhashtable_init
	mov	x25, x0
	cbnz	w0, LBB0_6
; %bb.2:
	ldr	x8, [x21, #8]
	add	x1, x23, #4
	ldr	w2, [x19, #8]
	mov	x0, x20
	mov	x3, x24
	blr	x8
	mov	x25, x0
	cbnz	w0, LBB0_5
; %bb.3:
	add	x1, x19, #12
Lloh5:
	adrp	x8, _mlxsw_sp_acl_ruleset_ht_params@GOTPAGE
Lloh6:
	ldr	x8, [x8, _mlxsw_sp_acl_ruleset_ht_params@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x23
	bl	_rhashtable_insert_fast
	cbz	w0, LBB0_9
; %bb.4:
	mov	x25, x0
	ldr	x8, [x21, #16]
	ldr	w1, [x19, #8]
	mov	x0, x20
	blr	x8
LBB0_5:
	mov	x0, x22
	bl	_rhashtable_destroy
LBB0_6:
	mov	x0, x19
	bl	_kfree
	b	LBB0_8
LBB0_7:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w25, w8
LBB0_8:
	mov	x0, x25
	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
	b	_ERR_PTR
LBB0_9:
	mov	x0, x19
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_mlxsw_sp_acl_rule_ht_params,4,2 ; @mlxsw_sp_acl_rule_ht_params
	.comm	_mlxsw_sp_acl_ruleset_ht_params,4,2 ; @mlxsw_sp_acl_ruleset_ht_params
	.no_dead_strip	_mlxsw_sp_acl_ruleset_create
.subsections_via_symbols
