	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_en_config_rss_qp
_mlx4_en_config_rss_qp:                 ## @mlx4_en_config_rss_qp
	.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
	movq	%r8, %r15
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	%esi, %r12d
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %r13
	movq	(%rbx), %rdi
	movl	%r12d, %esi
	movq	%r15, %rdx
	callq	_mlx4_qp_alloc
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_en_err
	jmp	LBB0_12
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_13
LBB0_4:
	movq	_mlx4_en_sqp_event@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	%eax, (%r15)
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	%rbx, %r15
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	24(%rbx), %esi
	movl	16(%rbx), %eax
	movl	20(%rbx), %edx
	subq	$8, %rsp
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movl	%r12d, %r9d
	movq	%rbx, %r12
	pushq	%r13
	pushq	$-1
	pushq	%rax
	callq	_mlx4_en_fill_qp_context
	addq	$32, %rsp
	movl	4(%rbx), %edi
	callq	_cpu_to_be64
	movl	%eax, 4(%r13)
	movq	%r15, %rbx
	movq	(%r15), %rax
	movq	_MLX4_DEV_CAP_FLAG_FCS_KEEP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_7
## %bb.5:
	movl	$536870912, %edi                ## imm = 0x20000000
	callq	_cpu_to_be32
	orl	%eax, (%r13)
	movq	(%r14), %rax
	movq	_NETIF_F_RXFCS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	jne	LBB0_8
## %bb.6:
	movq	_ETH_FCS_LEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_9
LBB0_7:
	movq	-48(%rbp), %r8                  ## 8-byte Reload
LBB0_8:
	xorl	%eax, %eax
LBB0_9:
	movq	%rax, 8(%r12)
	movq	%rbx, %r14
	movq	(%rbx), %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rcx
	callq	_mlx4_qp_to_ready
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movq	(%r14), %rdi
	movq	%rbx, %rsi
	callq	_mlx4_qp_remove
	movq	(%r14), %rdi
	movq	%rbx, %rsi
	callq	_mlx4_qp_free
LBB0_11:
	movq	%r12, %rdi
	callq	_mlx4_en_update_rx_prod_db
LBB0_12:
	movq	%r13, %rdi
	callq	_kfree
LBB0_13:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to allocate qp #%x\n"

	.comm	_mlx4_en_sqp_event,4,2          ## @mlx4_en_sqp_event
	.comm	_MLX4_DEV_CAP_FLAG_FCS_KEEP,4,2 ## @MLX4_DEV_CAP_FLAG_FCS_KEEP
	.comm	_NETIF_F_RXFCS,4,2              ## @NETIF_F_RXFCS
	.comm	_ETH_FCS_LEN,8,3                ## @ETH_FCS_LEN
	.no_dead_strip	_mlx4_en_config_rss_qp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx4_en_config_rss_qp
_mlx4_en_config_rss_qp:                 ; @mlx4_en_config_rss_qp
	.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, x4
	mov	x22, x3
	mov	x20, x2
	mov	x24, x1
	mov	x23, x0
	ldr	x26, [x0, #8]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #8
	bl	_kmalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	x0, [x26]
	mov	x1, x24
	mov	x2, x21
	bl	_mlx4_qp_alloc
	cbz	w0, LBB0_4
; %bb.2:
	mov	x25, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	mov	x2, x24
	bl	_en_err
	b	LBB0_10
LBB0_3:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_11
LBB0_4:
Lloh8:
	adrp	x8, _mlx4_en_sqp_event@GOTPAGE
Lloh9:
	ldr	x8, [x8, _mlx4_en_sqp_event@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x21]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldp	w2, w1, [x20, #20]
	ldr	w6, [x20, #16]
	str	x19, [sp]
	mov	x0, x23
	mov	w3, #0
	mov	w4, #0
	mov	x5, x24
	mov	w7, #-1
	bl	_mlx4_en_fill_qp_context
	ldr	w0, [x20, #4]
	bl	_cpu_to_be64
	str	w0, [x19, #4]
	ldr	x8, [x26]
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _MLX4_DEV_CAP_FLAG_FCS_KEEP@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MLX4_DEV_CAP_FLAG_FCS_KEEP@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	mov	w0, #536870912
	bl	_cpu_to_be32
	ldr	w8, [x19]
	orr	w8, w8, w0
	str	w8, [x19]
	ldr	x8, [x23]
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _NETIF_F_RXFCS@GOTPAGE
Lloh15:
	ldr	x9, [x9, _NETIF_F_RXFCS@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
Lloh17:
	adrp	x10, _ETH_FCS_LEN@GOTPAGE
Lloh18:
	ldr	x10, [x10, _ETH_FCS_LEN@GOTPAGEOFF]
Lloh19:
	ldr	x10, [x10]
	tst	w9, w8
	csel	x8, x10, xzr, eq
	b	LBB0_7
LBB0_6:
	mov	x8, #0
LBB0_7:
	str	x8, [x20, #8]
	ldr	x0, [x26]
	mov	x1, x20
	mov	x2, x19
	mov	x3, x21
	mov	x4, x22
	bl	_mlx4_qp_to_ready
	mov	x25, x0
	cbz	w0, LBB0_9
; %bb.8:
	ldr	x0, [x26]
	mov	x1, x21
	bl	_mlx4_qp_remove
	ldr	x0, [x26]
	mov	x1, x21
	bl	_mlx4_qp_free
LBB0_9:
	mov	x0, x20
	bl	_mlx4_en_update_rx_prod_db
LBB0_10:
	mov	x0, x19
	bl	_kfree
LBB0_11:
	mov	x0, x25
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate qp #%x\n"

	.comm	_mlx4_en_sqp_event,4,2          ; @mlx4_en_sqp_event
	.comm	_MLX4_DEV_CAP_FLAG_FCS_KEEP,4,2 ; @MLX4_DEV_CAP_FLAG_FCS_KEEP
	.comm	_NETIF_F_RXFCS,4,2              ; @NETIF_F_RXFCS
	.comm	_ETH_FCS_LEN,8,3                ; @ETH_FCS_LEN
	.no_dead_strip	_mlx4_en_config_rss_qp
.subsections_via_symbols
