	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_en_activate_tx_ring       ## -- Begin function mlx4_en_activate_tx_ring
	.p2align	4, 0x90
_mlx4_en_activate_tx_ring:              ## @mlx4_en_activate_tx_ring
	.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
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	8(%rdi), %r12
	movl	%edx, (%rsi)
	movq	$0, 112(%rsi)
	movabsq	$8589934591, %rax               ## imm = 0x1FFFFFFFF
	movq	%rax, 4(%rsi)
	movl	12(%rsi), %edx
	movl	104(%rsi), %edi
	shll	$2, %edx
	xorl	%esi, %esi
	callq	_memset
	movl	16(%rbx), %edx
	movl	100(%rbx), %edi
	xorl	%esi, %esi
	callq	_memset
	movq	_mlx4_en_free_tx_desc@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 96(%rbx)
	movq	_MLX4_QP_STATE_RST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	28(%rbx), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%eax, 28(%rbx)
	leaq	32(%rbx), %r13
	movl	32(%rbx), %edi
	shll	$8, %edi
	callq	_cpu_to_be32
	movq	%rax, 88(%rbx)
	movl	4(%r12), %edi
	callq	_cpu_to_be32
	movq	%rax, 80(%rbx)
	movl	(%rbx), %eax
	movl	12(%rbx), %esi
	movl	76(%rbx), %edx
	movl	72(%rbx), %r9d
	leaq	40(%rbx), %r15
	subq	$8, %rsp
	movq	%r14, %rdi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	pushq	%r15
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	pushq	%rax
	callq	_mlx4_en_fill_qp_context
	addq	$32, %rsp
	cmpq	$0, 64(%rbx)
	je	LBB0_2
## %bb.1:
	movl	(%r12), %edi
	movq	56(%rbx), %rax
	movl	(%rax), %esi
	callq	_mlx4_to_hw_uar_index
	movl	%eax, %edi
	callq	_cpu_to_be32
	movq	%rax, 40(%rbx)
LBB0_2:
	movl	(%r12), %edi
	leaq	48(%rbx), %rsi
	movq	%r15, %rdx
	movq	%r13, %rcx
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	callq	_mlx4_qp_to_ready
	movl	%eax, %r15d
	leaq	24(%rbx), %r12
	movq	%r12, %rdi
	callq	_cpumask_empty
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movl	(%r14), %edi
	movl	20(%rbx), %edx
	movq	%r12, %rsi
	callq	_netif_set_xps_queue
LBB0_4:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mlx4_en_free_tx_desc,4,2       ## @mlx4_en_free_tx_desc
	.comm	_MLX4_QP_STATE_RST,4,2          ## @MLX4_QP_STATE_RST
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function mlx4_en_activate_tx_ring
lCPI0_0:
	.long	4294967295                      ; 0xffffffff
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_mlx4_en_activate_tx_ring
	.p2align	2
_mlx4_en_activate_tx_ring:              ; @mlx4_en_activate_tx_ring
	.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	x21, x3
	mov	x19, x1
	mov	x20, x0
	ldr	x25, [x0, #8]
	str	w2, [x1]
	str	xzr, [x1, #112]
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [x1, #4]
	ldr	w0, [x1, #104]
	ldr	w8, [x1, #12]
	lsl	w2, w8, #2
	mov	w1, #0
	bl	_memset
	ldr	w0, [x19, #100]
	ldr	w2, [x19, #16]
	mov	w1, #0
	bl	_memset
Lloh2:
	adrp	x8, _mlx4_en_free_tx_desc@GOTPAGE
Lloh3:
	ldr	x8, [x8, _mlx4_en_free_tx_desc@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x19, #96]
Lloh5:
	adrp	x8, _MLX4_QP_STATE_RST@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MLX4_QP_STATE_RST@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	mov	x22, x19
	str	w8, [x22, #28]!
	mov	x23, x19
	ldr	w8, [x23, #32]!
	lsl	w0, w8, #8
	bl	_cpu_to_be32
	str	x0, [x19, #88]
	ldr	w0, [x25, #4]
	bl	_cpu_to_be32
	str	x0, [x19, #80]
	ldr	w1, [x19, #12]
	ldp	w5, w2, [x19, #72]
	add	x24, x19, #40
	ldr	w6, [x19]
	str	x24, [sp]
	mov	x0, x20
	mov	w3, #1
	mov	w4, #0
	mov	x7, x21
	bl	_mlx4_en_fill_qp_context
	ldr	x8, [x19, #64]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w0, [x25]
	ldr	x8, [x19, #56]
	ldr	w1, [x8]
	bl	_mlx4_to_hw_uar_index
	bl	_cpu_to_be32
	str	x0, [x19, #40]
LBB0_2:
	ldr	w0, [x25]
	add	x1, x19, #48
	mov	x2, x24
	mov	x3, x23
	mov	x4, x22
	bl	_mlx4_qp_to_ready
	mov	x21, x0
	add	x22, x19, #24
	mov	x0, x22
	bl	_cpumask_empty
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	w0, [x20]
	ldr	w2, [x19, #20]
	mov	x1, x22
	bl	_netif_set_xps_queue
LBB0_4:
	mov	x0, x21
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdr	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_mlx4_en_free_tx_desc,4,2       ; @mlx4_en_free_tx_desc
	.comm	_MLX4_QP_STATE_RST,4,2          ; @MLX4_QP_STATE_RST
.subsections_via_symbols
