	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function flow_counters_set_data
_flow_counters_set_data:                ## @flow_counters_set_data
	.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	%rsi, %rbx
	movq	%rdi, %r15
	callq	_to_mcounters
	movq	%rax, %r12
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.5:
	cmpq	$0, (%rbx)
	je	LBB0_1
## %bb.6:
	movq	8(%rbx), %rbx
	movl	(%rbx), %edi
	movq	_MAX_COUNTERS_NUM@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edi
	jle	LBB0_9
## %bb.7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_1:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
LBB0_2:
	movq	(%r12), %r13
	testq	%r13, %r13
	je	LBB0_3
LBB0_13:
	movq	8(%r12), %rax
	testq	%r14, %r14
	je	LBB0_17
## %bb.14:
	testq	%rax, %rax
	jne	LBB0_18
## %bb.15:
	movq	_MLX5_IB_COUNTERS_FLOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %ecx
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_counters_set_description
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.16:
	xorl	%ebx, %ebx
	jmp	LBB0_22
LBB0_3:
	movl	(%r15), %edi
	callq	_to_mdev
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_mlx5_fc_create
	movq	%rax, (%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_13
## %bb.4:
	movq	(%r12), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_21
LBB0_9:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %esi
	callq	_kcalloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	%rax, %r14
	movl	4(%rbx), %edi
	callq	_u64_to_user_ptr
	movl	(%rbx), %edx
	shll	$2, %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_copy_from_user
	testq	%rax, %rax
	je	LBB0_2
## %bb.12:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_21
LBB0_17:
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_22
LBB0_18:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_19:
	testq	%r13, %r13
	jne	LBB0_21
## %bb.20:
	movl	(%r15), %edi
	callq	_to_mdev
	movl	(%rax), %edi
	movq	(%r12), %rsi
	callq	_mlx5_fc_destroy
	movq	$0, (%r12)
LBB0_21:
	movq	%r14, %rdi
	callq	_kfree
	jmp	LBB0_22
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_8:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_22:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_COUNTERS_NUM,4,2           ## @MAX_COUNTERS_NUM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_MLX5_IB_COUNTERS_FLOW,4,2      ## @MLX5_IB_COUNTERS_FLOW
	.no_dead_strip	_flow_counters_set_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function flow_counters_set_data
_flow_counters_set_data:                ; @flow_counters_set_data
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x1
	mov	x21, x0
	bl	_to_mcounters
	mov	x19, x0
	cbz	x20, LBB0_4
; %bb.1:
	ldr	x8, [x20]
	cbz	x8, LBB0_5
; %bb.2:
	ldr	x22, [x20, #8]
	ldr	w0, [x22]
Lloh0:
	adrp	x8, _MAX_COUNTERS_NUM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_COUNTERS_NUM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.le	LBB0_13
; %bb.3:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_22
LBB0_4:
	mov	x22, #0
	b	LBB0_6
LBB0_5:
	mov	x22, #0
	mov	x20, #0
LBB0_6:
	ldr	x23, [x19]
	cbz	x23, LBB0_11
LBB0_7:
	ldr	x8, [x19, #8]
	cbz	x20, LBB0_16
; %bb.8:
	cbnz	x8, LBB0_18
; %bb.9:
Lloh5:
	adrp	x8, _MLX5_IB_COUNTERS_FLOW@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MLX5_IB_COUNTERS_FLOW@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	w3, [x22]
	mov	x0, x21
	mov	x2, x20
	bl	_counters_set_description
	mov	x22, x0
	cbz	w0, LBB0_23
; %bb.10:
	cbnz	x23, LBB0_20
	b	LBB0_19
LBB0_11:
	ldr	w0, [x21]
	bl	_to_mdev
	ldr	w0, [x0]
	mov	w1, #0
	bl	_mlx5_fc_create
	str	x0, [x19]
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.12:
	ldr	x0, [x19]
	bl	_PTR_ERR
	mov	x22, x0
	b	LBB0_20
LBB0_13:
Lloh8:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	w1, #4
	bl	_kcalloc
	cbz	x0, LBB0_21
; %bb.14:
	mov	x20, x0
	ldr	w0, [x22, #4]
	bl	_u64_to_user_ptr
	mov	x1, x0
	ldr	w8, [x22]
	lsl	w2, w8, #2
	mov	x0, x20
	bl	_copy_from_user
	cbz	x0, LBB0_6
; %bb.15:
Lloh11:
	adrp	x8, _EFAULT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_20
LBB0_16:
	cbz	x8, LBB0_18
; %bb.17:
	mov	w22, #0
	b	LBB0_23
LBB0_18:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w22, w8
	cbnz	x23, LBB0_20
LBB0_19:
	ldr	w0, [x21]
	bl	_to_mdev
	ldr	w0, [x0]
	ldr	x1, [x19]
	bl	_mlx5_fc_destroy
	str	xzr, [x19]
LBB0_20:
	mov	x0, x20
	bl	_kfree
	b	LBB0_23
LBB0_21:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_22:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_23:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_COUNTERS_NUM,4,2           ; @MAX_COUNTERS_NUM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_MLX5_IB_COUNTERS_FLOW,4,2      ; @MLX5_IB_COUNTERS_FLOW
	.no_dead_strip	_flow_counters_set_data
.subsections_via_symbols
