	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function mlx4_en_activate_rx_rings
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_mlx4_en_activate_rx_rings
	.p2align	4, 0x90
_mlx4_en_activate_rx_rings:             ## @mlx4_en_activate_rx_rings
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_DS_SIZE@GOTPCREL(%rip), %rax
	movl	(%rdi), %edi
	imull	(%rax), %edi
	addl	$4, %edi
	callq	_roundup_pow_of_two
	cmpl	$0, 4(%r15)
	jle	LBB0_8
## %bb.1:
	movl	%eax, %r14d
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	movslq	4(%r15), %rax
	cmpq	%rax, %r13
	jge	LBB0_8
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	8(%r15), %rax
	movq	(%rax,%r13,8), %r12
	movq	$0, 16(%r12)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 48(%r12)
	movq	16(%r15), %rax
	movq	(%rax,%r13,8), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r12)
	movl	%r14d, (%r12)
	movl	%r14d, %edi
	movq	_TXBB_SIZE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jg	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	4(%r12), %rbx
	movq	_STAMP_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1, %edi
	shll	%cl, %edi
	callq	_cpu_to_be32
	movl	%eax, (%rbx)
	movq	_TXBB_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, 4(%r12)
	movl	(%r12), %edi
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	callq	_ffs
	decq	%rax
	movq	%rax, 32(%r12)
	movl	(%r12), %edx
	movl	4(%r12), %edi
	imull	12(%r12), %edx
	movl	%edx, 8(%r12)
	xorl	%esi, %esi
	callq	_memset
	movq	%r12, %rdi
	callq	_mlx4_en_update_rx_prod_db
	cmpl	$0, 12(%r12)
	jle	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_mlx4_en_init_rx_desc
	incl	%ebx
	cmpl	12(%r12), %ebx
	jl	LBB0_6
	jmp	LBB0_7
LBB0_8:
	movq	%r15, %rdi
	callq	_mlx4_en_fill_rx_buffers
	movl	%eax, %r14d
	movl	4(%r15), %eax
	testl	%r14d, %r14d
	je	LBB0_23
## %bb.9:
	testl	%eax, %eax
	jle	LBB0_26
## %bb.10:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movq	(%rax,%rbx,8), %rsi
	movq	%r15, %rdi
	callq	_mlx4_en_free_rx_buf
	incq	%rbx
	movslq	4(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_11
## %bb.12:
	movl	%eax, %esi
	testl	%esi, %esi
	jle	LBB0_26
## %bb.13:
	movq	8(%r15), %rax
	movq	_TXBB_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%rsi, %rdx
	testb	$1, %sil
	je	LBB0_16
## %bb.14:
	leaq	-1(%rsi), %rdx
	movl	%edx, %edi
	movq	(%rax,%rdi,8), %rdi
	cmpl	%ecx, (%rdi)
	jg	LBB0_16
## %bb.15:
	subl	%ecx, 4(%rdi)
LBB0_16:
	cmpl	$1, %esi
	je	LBB0_26
## %bb.17:
	addq	$-2, %rdx
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_18 Depth=1
	leaq	-2(%rdx), %rsi
	incq	%rdx
	cmpq	$1, %rdx
	movq	%rsi, %rdx
	jbe	LBB0_26
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	leal	1(%rdx), %esi
	movq	(%rax,%rsi,8), %rsi
	cmpl	%ecx, (%rsi)
	jg	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	subl	%ecx, 4(%rsi)
LBB0_20:                                ##   in Loop: Header=BB0_18 Depth=1
	movl	%edx, %esi
	movq	(%rax,%rsi,8), %rsi
	cmpl	%ecx, (%rsi)
	jg	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_18 Depth=1
	subl	%ecx, 4(%rsi)
	jmp	LBB0_22
LBB0_23:
	xorl	%r14d, %r14d
	testl	%eax, %eax
	jle	LBB0_26
## %bb.24:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movq	(%rax,%rbx,8), %rdi
	movq	16(%rdi), %rax
	decq	%rax
	movq	%rax, 24(%rdi)
	callq	_mlx4_en_update_rx_prod_db
	incq	%rbx
	movslq	4(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_25
LBB0_26:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DS_SIZE,4,2                    ## @DS_SIZE
	.comm	_TXBB_SIZE,4,2                  ## @TXBB_SIZE
	.comm	_STAMP_SHIFT,4,2                ## @STAMP_SHIFT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_en_activate_rx_rings      ; -- Begin function mlx4_en_activate_rx_rings
	.p2align	2
_mlx4_en_activate_rx_rings:             ; @mlx4_en_activate_rx_rings
	.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, x0
Lloh0:
	adrp	x8, _DS_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DS_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x0]
	orr	w10, wzr, #0x4
	madd	w0, w9, w8, w10
	bl	_roundup_pow_of_two
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x20, x0
	mov	x23, #0
Lloh3:
	adrp	x24, _TXBB_SIZE@GOTPAGE
Lloh4:
	ldr	x24, [x24, _TXBB_SIZE@GOTPAGEOFF]
Lloh5:
	adrp	x25, _STAMP_SHIFT@GOTPAGE
Lloh6:
	ldr	x25, [x25, _STAMP_SHIFT@GOTPAGEOFF]
	mov	w26, #1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x19, #4]
	cmp	x23, x8
	b.ge	LBB0_8
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	x8, [x19, #8]
	lsl	x9, x23, #3
	ldr	x21, [x8, x9]
	str	xzr, [x21, #16]
	stp	xzr, xzr, [x21, #48]
	ldr	x8, [x19, #16]
	ldr	x8, [x8, x9]
	ldr	w8, [x8]
	str	w8, [x21, #40]
	str	w20, [x21]
	ldr	w8, [x24]
	mov	x0, x20
	cmp	w20, w8
	b.gt	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrsw	x22, [x21, #4]
	ldr	w8, [x25]
	lsl	w0, w26, w8
	bl	_cpu_to_be32
	str	w0, [x22]
	ldr	w8, [x24]
	ldp	w0, w9, [x21]
	add	w8, w9, w8
	str	w8, [x21, #4]
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	bl	_ffs
	sub	x8, x0, #1
	str	x8, [x21, #32]
	ldr	w8, [x21, #12]
	ldp	w9, w0, [x21]
	mul	w2, w9, w8
	str	w2, [x21, #8]
	mov	w1, #0
	bl	_memset
	mov	x0, x21
	bl	_mlx4_en_update_rx_prod_db
	ldr	w8, [x21, #12]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w22, #0
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_mlx4_en_init_rx_desc
	add	w22, w22, #1
	ldr	w8, [x21, #12]
	cmp	w22, w8
	b.lt	LBB0_7
	b	LBB0_2
LBB0_8:
	mov	x0, x19
	bl	_mlx4_en_fill_rx_buffers
	ldr	w8, [x19, #4]
	cbz	w0, LBB0_17
; %bb.9:
	mov	x20, x0
	cmp	w8, #1
	b.lt	LBB0_21
; %bb.10:
	mov	x21, #0
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x1, [x8, x21, lsl #3]
	mov	x0, x19
	bl	_mlx4_en_free_rx_buf
	add	x21, x21, #1
	ldrsw	x8, [x19, #4]
	cmp	x21, x8
	b.lt	LBB0_11
; %bb.12:
	and	x10, x8, #0xffffffff
	cmp	w10, #1
	b.lt	LBB0_21
; %bb.13:
	ldr	x8, [x19, #8]
Lloh7:
	adrp	x9, _TXBB_SIZE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _TXBB_SIZE@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	add	x10, x10, #1
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	sub	x10, x10, #1
	cmp	x10, #1
	b.ls	LBB0_21
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	sub	w11, w10, #2
	ldr	x11, [x8, w11, uxtw #3]
	ldr	w12, [x11]
	cmp	w12, w9
	b.gt	LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w12, [x11, #4]
	sub	w12, w12, w9
	str	w12, [x11, #4]
	b	LBB0_14
LBB0_17:
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.18:
	mov	x20, #0
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x0, [x8, x20, lsl #3]
	ldr	x8, [x0, #16]
	sub	x8, x8, #1
	str	x8, [x0, #24]
	bl	_mlx4_en_update_rx_prod_db
	add	x20, x20, #1
	ldrsw	x8, [x19, #4]
	cmp	x20, x8
	b.lt	LBB0_19
LBB0_20:
	mov	w20, #0
LBB0_21:
	mov	x0, x20
	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	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_DS_SIZE,4,2                    ; @DS_SIZE
	.comm	_TXBB_SIZE,4,2                  ; @TXBB_SIZE
	.comm	_STAMP_SHIFT,4,2                ; @STAMP_SHIFT
.subsections_via_symbols
