	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_en_activate_cq            ## -- Begin function mlx4_en_activate_cq
	.p2align	4, 0x90
_mlx4_en_activate_cq:                   ## @mlx4_en_activate_cq
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	56(%rdi), %r14
	callq	_mlx4_en_rx_cpu_rmap
	movq	%rax, %r13
	movq	16(%r14), %rax
	movq	(%r15), %rcx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, 20(%rbx)
	movq	56(%rbx), %rax
	movq	%rax, 40(%rbx)
	leaq	8(%rax), %rcx
	movq	%rcx, 32(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
	movl	76(%rbx), %edx
	movl	80(%rbx), %edi
	xorl	%esi, %esi
	callq	_memset
	movq	(%rbx), %rax
	movq	_RX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.1:
	movq	8(%r14), %rcx
	cmpq	$0, 8(%rcx)
	je	LBB0_15
## %bb.2:
	cmpl	$0, 8(%rbx)
	jne	LBB0_7
## %bb.3:
	leaq	8(%rbx), %r12
	movq	48(%r15), %rax
	movq	(%rax), %rdx
	movl	12(%rbx), %ecx
	leaq	L_.str(%rip), %rsi
	leaq	-80(%rbp), %rdi
	callq	_sprintf
	movq	8(%r14), %rdi
	leaq	-80(%rbp), %rsi
	movq	%r13, %rdx
	movq	%r12, %rcx
	callq	_mlx4_assign_eq
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movslq	12(%rbx), %rax
	movq	(%r15), %rcx
	addq	%rcx, %rax
	incq	%rax
	movq	8(%r14), %rcx
	movslq	(%rcx), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_24
## %bb.5:
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_25
LBB0_6:
	movl	%r12d, %eax
	cltd
	idivl	8(%r15)
	movq	40(%r15), %rax
	movslq	%edx, %rcx
	imulq	$88, %rcx, %rcx
	movl	8(%rax,%rcx), %eax
	movl	%eax, 8(%rbx)
LBB0_7:
	leaq	24(%rbx), %r9
	cmpq	$0, (%rbx)
	je	LBB0_10
## %bb.8:
	cmpq	$0, 24(%r15)
	je	LBB0_9
LBB0_11:
	movl	$1, %r10d
	jmp	LBB0_12
LBB0_10:
	movq	32(%r15), %rax
	movslq	12(%rbx), %rcx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, 72(%rbx)
	cmpq	$0, 16(%r15)
	jne	LBB0_11
LBB0_9:
	xorl	%r10d, %r10d
LBB0_12:
	movq	8(%r14), %rdi
	movl	72(%rbx), %esi
	leaq	64(%rbx), %rdx
	movl	8(%rbx), %eax
	movl	48(%rbx), %r8d
	subq	$8, %rsp
	movq	%r14, %rcx
	pushq	%r10
	pushq	$0
	pushq	%rax
	callq	_mlx4_cq_alloc
	addq	$32, %rsp
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_20
## %bb.13:
	cmpq	$0, (%rbx)
	jne	LBB0_17
## %bb.14:
	movq	_mlx4_en_rx_irq@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_15:
	movslq	12(%rbx), %rax
	movq	(%r15), %rdx
	addq	%rdx, %rax
	incq	%rax
	movslq	(%rcx), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_23
## %bb.16:
	xorl	%edx, %edx
	divq	%rcx
	movl	%edx, 8(%rbx)
	jmp	LBB0_7
LBB0_17:
	movq	_mlx4_en_tx_irq@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	_mlx4_en_cq_event@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	jne	LBB0_20
## %bb.19:
	movl	20(%rbx), %edi
	addq	$16, %rbx
	movq	_mlx4_en_poll_rx_cq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	movl	$64, %ecx
	callq	_netif_napi_add
	movq	%rbx, %rdi
	callq	_napi_enable
LBB0_20:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_26
## %bb.21:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
	movl	%edx, 8(%rbx)
	jmp	LBB0_7
LBB0_24:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_25:
	movl	%edx, (%r12)
	leaq	L_.str.1(%rip), %rsi
	leaq	-80(%rbp), %rdx
	movq	%r14, %rdi
	callq	_mlx4_warn
	jmp	LBB0_7
LBB0_26:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_RX,8,3                         ## @RX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s-%d"

L_.str.1:                               ## @.str.1
	.asciz	"Failed Assigning an EQ to %s ,Falling back to legacy EQ's\n"

	.comm	_mlx4_en_tx_irq,4,2             ## @mlx4_en_tx_irq
	.comm	_mlx4_en_rx_irq,4,2             ## @mlx4_en_rx_irq
	.comm	_mlx4_en_cq_event,4,2           ## @mlx4_en_cq_event
	.comm	_mlx4_en_poll_rx_cq,4,2         ## @mlx4_en_poll_rx_cq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_en_activate_cq            ; -- Begin function mlx4_en_activate_cq
	.p2align	2
_mlx4_en_activate_cq:                   ; @mlx4_en_activate_cq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x24, x2
	mov	x19, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldr	x20, [x0, #56]
	bl	_mlx4_en_rx_cpu_rmap
	mov	x23, x0
	ldr	x8, [x20, #16]
	ldr	x9, [x22]
	ldr	w8, [x8, x9, lsl #2]
	str	w8, [x19, #20]
	ldr	x8, [x19, #56]
	add	x21, x19, #24
	add	x9, x8, #8
	stp	x9, x8, [x19, #32]
	stp	xzr, xzr, [x8]
	ldp	w2, w0, [x19, #76]
	mov	w1, #0
	bl	_memset
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _RX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RX@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
	ldr	x8, [x20, #8]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_6
; %bb.2:
	mov	x24, x19
	ldr	w8, [x24, #8]!
	cbnz	w8, LBB0_8
; %bb.3:
	ldr	x8, [x22, #48]
	ldr	x2, [x8]
	ldr	w3, [x19, #12]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #15
	bl	_sprintf
	ldr	x0, [x20, #8]
	add	x1, sp, #15
	mov	x2, x23
	mov	x3, x24
	bl	_mlx4_assign_eq
	cbz	x0, LBB0_8
; %bb.4:
	ldrsw	x8, [x19, #12]
	ldr	x9, [x22]
	add	x8, x8, x9
	add	x8, x8, #1
	ldr	x9, [x20, #8]
	ldrsw	x9, [x9]
	udiv	x10, x8, x9
	msub	w8, w10, w9, w8
	str	w8, [x19, #8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #15
	mov	x0, x20
	bl	_mlx4_warn
	b	LBB0_8
LBB0_5:
	ldr	w8, [x22, #8]
	sdiv	w9, w24, w8
	msub	w8, w9, w8, w24
	ldr	x9, [x22, #40]
	mov	w10, #88
	smaddl	x8, w8, w10, x9
	ldr	w8, [x8, #8]
	b	LBB0_7
LBB0_6:
	ldrsw	x9, [x19, #12]
	ldr	x10, [x22]
	add	x9, x9, x10
	add	x9, x9, #1
	ldrsw	x8, [x8]
	udiv	x10, x9, x8
	msub	w8, w10, w8, w9
LBB0_7:
	str	w8, [x19, #8]
LBB0_8:
	ldr	x8, [x19]
	cbz	x8, LBB0_16
; %bb.9:
	ldr	x8, [x22, #24]
	cbz	x8, LBB0_11
LBB0_10:
	mov	w8, #1
LBB0_11:
	ldr	x0, [x20, #8]
	ldr	w1, [x19, #72]
	add	x2, x19, #64
	ldr	w4, [x19, #48]
	ldr	w6, [x19, #8]
	str	w8, [sp]
	mov	x3, x20
	mov	x5, x21
	mov	w7, #0
	bl	_mlx4_cq_alloc
	mov	x20, x0
	cbnz	w0, LBB0_14
; %bb.12:
	ldr	x8, [x19]
Lloh10:
	adrp	x9, _mlx4_en_tx_irq@GOTPAGE
Lloh11:
	ldr	x9, [x9, _mlx4_en_tx_irq@GOTPAGEOFF]
Lloh12:
	adrp	x10, _mlx4_en_rx_irq@GOTPAGE
Lloh13:
	ldr	x10, [x10, _mlx4_en_rx_irq@GOTPAGEOFF]
	cmp	x8, #0
	csel	x9, x10, x9, eq
	ldr	w9, [x9]
Lloh14:
	adrp	x10, _mlx4_en_cq_event@GOTPAGE
Lloh15:
	ldr	x10, [x10, _mlx4_en_cq_event@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	stp	w10, w9, [x19, #24]
	cbnz	x8, LBB0_14
; %bb.13:
	ldr	w0, [x19, #20]
	add	x19, x19, #16
Lloh17:
	adrp	x8, _mlx4_en_poll_rx_cq@GOTPAGE
Lloh18:
	ldr	x8, [x8, _mlx4_en_poll_rx_cq@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x1, x19
	mov	w3, #64
	bl	_netif_napi_add
	mov	x0, x19
	bl	_napi_enable
LBB0_14:
	ldr	x8, [sp, #40]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.15:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_16:
	ldr	x8, [x22, #32]
	ldrsw	x9, [x19, #12]
	ldr	w8, [x8, x9, lsl #2]
	str	w8, [x19, #72]
	ldr	x8, [x22, #16]
	cbnz	x8, LBB0_10
	b	LBB0_11
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_RX,8,3                         ; @RX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s-%d"

l_.str.1:                               ; @.str.1
	.asciz	"Failed Assigning an EQ to %s ,Falling back to legacy EQ's\n"

	.comm	_mlx4_en_tx_irq,4,2             ; @mlx4_en_tx_irq
	.comm	_mlx4_en_rx_irq,4,2             ; @mlx4_en_rx_irq
	.comm	_mlx4_en_cq_event,4,2           ; @mlx4_en_cq_event
	.comm	_mlx4_en_poll_rx_cq,4,2         ; @mlx4_en_poll_rx_cq
.subsections_via_symbols
