	.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, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, (%rsi)
	movabsq	$8589934591, %rax               ## imm = 0x1FFFFFFFF
	movq	%rax, 4(%rsi)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 72(%rsi)
	movl	12(%rsi), %edx
	movl	68(%rsi), %edi
	shll	$2, %edx
	xorl	%esi, %esi
	callq	_memset
	movl	16(%rbx), %edx
	movl	64(%rbx), %edi
	xorl	%esi, %esi
	callq	_memset
	movq	_MLX4_QP_STATE_RST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	24(%rbx), %r15
	movl	%eax, 24(%rbx)
	leaq	28(%rbx), %r12
	movl	28(%rbx), %eax
	shll	$8, %eax
	movl	%eax, 20(%rbx)
	movl	(%rbx), %eax
	movl	12(%rbx), %esi
	movl	60(%rbx), %edx
	movl	56(%rbx), %r9d
	leaq	32(%rbx), %r14
	subq	$8, %rsp
	movq	%r13, %rdi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	pushq	%r14
	pushq	-48(%rbp)                       ## 8-byte Folded Reload
	pushq	%rax
	callq	_mlx4_en_fill_qp_context
	addq	$32, %rsp
	cmpq	$0, 48(%rbx)
	je	LBB0_2
## %bb.1:
	movq	40(%rbx), %rax
	movl	(%rax), %edi
	callq	_cpu_to_be32
	movl	%eax, 32(%rbx)
LBB0_2:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	addq	$36, %rbx
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movq	%r12, %rcx
	movq	%r15, %r8
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mlx4_qp_to_ready               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.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	x23, x3
	mov	x19, x1
	mov	x24, x0
	ldr	x25, [x0]
	str	w2, [x1]
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [x1, #4]
	stp	xzr, xzr, [x1, #72]
	ldr	w0, [x1, #68]
	ldr	w8, [x1, #12]
	lsl	w2, w8, #2
	mov	w1, #0
	bl	_memset
	ldr	w0, [x19, #64]
	ldr	w2, [x19, #16]
	mov	w1, #0
	bl	_memset
Lloh2:
	adrp	x8, _MLX4_QP_STATE_RST@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MLX4_QP_STATE_RST@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	mov	x20, x19
	str	w8, [x20, #24]!
	mov	x21, x19
	ldr	w8, [x21, #28]!
	lsl	w8, w8, #8
	str	w8, [x19, #20]
	ldr	w1, [x19, #12]
	ldp	w5, w2, [x19, #56]
	ldr	w6, [x19]
	add	x22, x19, #32
	str	x22, [sp]
	mov	x0, x24
	mov	w3, #1
	mov	w4, #0
	mov	x7, x23
	bl	_mlx4_en_fill_qp_context
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x19, #40]
	ldr	w0, [x8]
	bl	_cpu_to_be32
	str	w0, [x19, #32]
LBB0_2:
	ldr	w0, [x25]
	add	x1, x19, #36
	mov	x2, x22
	mov	x3, x21
	mov	x4, x20
	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
	b	_mlx4_qp_to_ready
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdr	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX4_QP_STATE_RST,4,2          ; @MLX4_QP_STATE_RST
.subsections_via_symbols
