	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_fpga_ipsec_counters_read  ## -- Begin function mlx5_fpga_ipsec_counters_read
	.p2align	4, 0x90
_mlx5_fpga_ipsec_counters_read:         ## @mlx5_fpga_ipsec_counters_read
	.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	(%rdi), %r15
	xorl	%r12d, %r12d
	testq	%r15, %r15
	je	LBB0_11
## %bb.1:
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.2:
	movl	%edx, %r14d
	movq	%rdi, %rbx
	movq	_ipsec_extended_cap@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movl	(%rax), %esi
	movq	_ipsec_counters_addr_low@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_MLX5_GET
	movl	(%r12), %edi
	movq	(%r15), %rax
	movl	(%rax), %esi
	movq	_ipsec_counters_addr_high@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_MLX5_GET
	movq	%rbx, %rdi
	callq	_mlx5_fpga_ipsec_counters_count
	movl	%eax, %ebx
	movl	$4, %edi
	movl	%eax, %esi
	movl	$2, %edx
	callq	_array3_size
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_kzalloc
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	leal	(,%rbx,4), %esi
	movq	_MLX5_FPGA_ACCESS_TYPE_DONTCARE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, %rdi
	movq	%r13, %rcx
	callq	_mlx5_fpga_mem_read
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	cmpl	%r14d, %ebx
	cmovbl	%ebx, %r14d
	testl	%r14d, %r14d
	je	LBB0_7
## %bb.8:
	movl	%r14d, %r14d
	addq	%r14, %r14
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %eax
	movl	(%r13,%rax,4), %edi
	callq	_ntohl
	leal	1(%rbx), %eax
	movl	(%r13,%rax,4), %edi
	callq	_ntohl
	addq	$2, %rbx
	cmpq	%rbx, %r14
	jne	LBB0_9
	jmp	LBB0_10
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_10
LBB0_5:
	movl	%eax, %r12d
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_mlx5_fpga_err
	jmp	LBB0_10
LBB0_7:
	xorl	%r12d, %r12d
LBB0_10:
	movq	%r13, %rdi
	callq	_kfree
LBB0_11:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ipsec_extended_cap,4,2         ## @ipsec_extended_cap
	.comm	_ipsec_counters_addr_low,4,2    ## @ipsec_counters_addr_low
	.comm	_ipsec_counters_addr_high,4,2   ## @ipsec_counters_addr_high
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MLX5_FPGA_ACCESS_TYPE_DONTCARE,4,2 ## @MLX5_FPGA_ACCESS_TYPE_DONTCARE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to read IPSec counters from HW: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_fpga_ipsec_counters_read  ; -- Begin function mlx5_fpga_ipsec_counters_read
	.p2align	2
_mlx5_fpga_ipsec_counters_read:         ; @mlx5_fpga_ipsec_counters_read
	.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
	ldr	x20, [x0]
	cbz	x20, LBB0_8
; %bb.1:
	ldr	x8, [x20]
	cbz	x8, LBB0_8
; %bb.2:
	mov	x21, x2
	mov	x19, x0
Lloh0:
	adrp	x22, _ipsec_extended_cap@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ipsec_extended_cap@GOTPAGEOFF]
	ldr	w0, [x22]
	ldr	w1, [x8]
Lloh2:
	adrp	x8, _ipsec_counters_addr_low@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ipsec_counters_addr_low@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	bl	_MLX5_GET
	ldr	w0, [x22]
	ldr	x8, [x20]
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _ipsec_counters_addr_high@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ipsec_counters_addr_high@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	bl	_MLX5_GET
	mov	x0, x19
	bl	_mlx5_fpga_ipsec_counters_count
	mov	x22, x0
	mov	w0, #4
	mov	x1, x22
	mov	w2, #2
	bl	_array3_size
Lloh8:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_9
; %bb.3:
	lsl	w1, w22, #2
Lloh11:
	adrp	x8, _MLX5_FPGA_ACCESS_TYPE_DONTCARE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MLX5_FPGA_ACCESS_TYPE_DONTCARE@GOTPAGEOFF]
Lloh13:
	ldr	w4, [x8]
	mov	x0, x20
	mov	x3, x19
	bl	_mlx5_fpga_mem_read
	tbnz	w0, #31, LBB0_10
; %bb.4:
	cmp	w22, w21
	csel	w8, w22, w21, lo
	cbz	w8, LBB0_7
; %bb.5:
	mov	x20, #0
	lsl	x21, x8, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, w20, uxtw #2]
	bl	_ntohl
	add	w8, w20, #1
	ldr	w0, [x19, w8, uxtw #2]
	bl	_ntohl
	add	x20, x20, #2
	cmp	x21, x20
	b.ne	LBB0_6
LBB0_7:
	mov	w23, #0
	b	LBB0_11
LBB0_8:
	mov	w23, #0
	b	LBB0_12
LBB0_9:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_11
LBB0_10:
	mov	x23, x0
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x23
	bl	_mlx5_fpga_err
LBB0_11:
	mov	x0, x19
	bl	_kfree
LBB0_12:
	mov	x0, x23
	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	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_ipsec_extended_cap,4,2         ; @ipsec_extended_cap
	.comm	_ipsec_counters_addr_low,4,2    ; @ipsec_counters_addr_low
	.comm	_ipsec_counters_addr_high,4,2   ; @ipsec_counters_addr_high
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MLX5_FPGA_ACCESS_TYPE_DONTCARE,4,2 ; @MLX5_FPGA_ACCESS_TYPE_DONTCARE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to read IPSec counters from HW: %d\n"

.subsections_via_symbols
