	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5dr_ste_create_next_htbl    ## -- Begin function mlx5dr_ste_create_next_htbl
	.p2align	4, 0x90
_mlx5dr_ste_create_next_htbl:           ## @mlx5dr_ste_create_next_htbl
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r15
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	8(%rsi), %rax
	movq	(%rax), %r13
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	8(%rdx), %esi
	movq	%rbx, %rdi
	callq	_mlx5dr_ste_is_last_in_rule
	xorl	%r12d, %r12d
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	_ste_general@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	%r15, %rsi
	callq	_MLX5_GET
	movl	%eax, %r14d
	movl	(%r12), %edi
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, %rsi
	callq	_MLX5_GET
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_get_bits_per_mask
	movq	_BITS_PER_BYTE@GOTPCREL(%rip), %rcx
	imull	(%rcx), %eax
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	callq	_min
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movl	(%r15), %edi
	movl	%eax, %esi
	movl	%r14d, %edx
	movl	%r12d, %ecx
	callq	_mlx5dr_ste_htbl_alloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r14
	movq	_CONNECT_MISS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	leaq	-56(%rbp), %rcx
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	xorl	%r8d, %r8d
	callq	_mlx5dr_ste_htbl_init_and_postsend
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_mlx5dr_info
	movq	%r14, %rdi
	callq	_mlx5dr_ste_htbl_free
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_mlx5dr_dbg
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
LBB0_6:
	subl	(%rax), %r12d
	jmp	LBB0_7
LBB0_4:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_mlx5dr_ste_set_hit_addr_by_next_htbl
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%r14, (%rax)
	movq	%rax, (%r14)
LBB0_7:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ste_general,4,2                ## @ste_general
	.comm	_BITS_PER_BYTE,4,2              ## @BITS_PER_BYTE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed allocating table\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_CONNECT_MISS,4,2               ## @CONNECT_MISS
L_.str.1:                               ## @.str.1
	.asciz	"Failed writing table to HW\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5dr_ste_create_next_htbl    ; -- Begin function mlx5dr_ste_create_next_htbl
	.p2align	2
_mlx5dr_ste_create_next_htbl:           ; @mlx5dr_ste_create_next_htbl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x3
	mov	x19, x2
	mov	x23, x1
	ldr	x8, [x1, #8]
	ldr	x22, [x8]
	ldr	x8, [x0]
	ldr	x21, [x8]
	ldr	w1, [x2, #8]
	mov	x0, x23
	bl	_mlx5dr_ste_is_last_in_rule
	cbz	w0, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_8
LBB0_2:
Lloh0:
	adrp	x26, _ste_general@GOTPAGE
Lloh1:
	ldr	x26, [x26, _ste_general@GOTPAGEOFF]
	ldr	w0, [x26]
	mov	x1, x20
	bl	_MLX5_GET
	mov	x25, x0
	ldr	w0, [x26]
	mov	x1, x20
	bl	_MLX5_GET
	mov	x26, x0
	bl	_get_bits_per_mask
Lloh2:
	adrp	x8, _BITS_PER_BYTE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BITS_PER_BYTE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	mul	w1, w8, w0
	mov	x0, x24
	bl	_min
	mov	x1, x0
	ldr	w0, [x21]
	mov	x2, x25
	mov	x3, x26
	bl	_mlx5dr_ste_htbl_alloc
	cbz	x0, LBB0_5
; %bb.3:
	mov	x24, x0
Lloh5:
	adrp	x8, _CONNECT_MISS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CONNECT_MISS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	x9, [x23]
	ldr	x9, [x9]
	ldr	w9, [x9]
	stp	w9, w8, [sp, #8]
	add	x3, sp, #8
	mov	x0, x21
	mov	x1, x22
	mov	x2, x24
	mov	w4, #0
	bl	_mlx5dr_ste_htbl_init_and_postsend
	cbz	x0, LBB0_7
; %bb.4:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_mlx5dr_info
	mov	x0, x24
	bl	_mlx5dr_ste_htbl_free
Lloh10:
	adrp	x8, _ENOENT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_mlx5dr_dbg
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_7:
	mov	x0, x20
	mov	x1, x24
	bl	_mlx5dr_ste_set_hit_addr_by_next_htbl
	mov	w0, #0
	str	x24, [x19]
	str	x19, [x24]
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ste_general,4,2                ; @ste_general
	.comm	_BITS_PER_BYTE,4,2              ; @BITS_PER_BYTE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed allocating table\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_CONNECT_MISS,4,2               ; @CONNECT_MISS
l_.str.1:                               ; @.str.1
	.asciz	"Failed writing table to HW\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
.subsections_via_symbols
