	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_fpga_tls_resync_rx        ## -- Begin function mlx5_fpga_tls_resync_rx
	.p2align	4, 0x90
_mlx5_fpga_tls_resync_rx:               ## @mlx5_fpga_tls_resync_rx
	.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
	movl	%ecx, %r12d
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	_MLX5_TLS_COMMAND_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addl	$16, %edi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rax
	movq	(%rax), %rbx
	addq	$4, %rbx
	movl	%r15d, %edi
	callq	_ntohl
	movl	%eax, %r15d
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_idr_find
	movq	%rax, %r12
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_WARN_ONCE
	movq	%r13, %rdi
	callq	_kfree
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_6
LBB0_4:
	movq	%r13, %rbx
	addq	$16, %rbx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_mlx5_fpga_tls_flow_to_cmd
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	movq	_tls_cmd@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_swid@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	movl	%r15d, %ecx
	callq	_MLX5_SET
	movl	(%r12), %r14d
	movq	_tls_rcd_sn@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_be64_to_cpu
	movl	%r14d, %edi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_MLX5_SET64
	movl	(%r12), %edi
	movq	_tcp_sn@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	callq	_MLX5_SET
	movl	(%r12), %edi
	movq	_command_type@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_CMD_RESYNC_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rsi
	callq	_MLX5_SET
	movq	8(%r13), %rax
	movq	%rbx, 8(%rax)
	movq	_MLX5_TLS_COMMAND_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	movq	_mlx_tls_kfree_complete@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r13)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_mlx5_fpga_sbu_conn_sendmsg
	movl	%eax, %r14d
	testl	%eax, %eax
	jns	LBB0_6
## %bb.5:
	movq	%r13, %rdi
	callq	_kfree
LBB0_6:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5_TLS_COMMAND_SIZE,4,2      ## @MLX5_TLS_COMMAND_SIZE
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Received NULL pointer for handle\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_tls_cmd,4,2                    ## @tls_cmd
	.comm	_swid,4,2                       ## @swid
	.comm	_tls_rcd_sn,4,2                 ## @tls_rcd_sn
	.comm	_tcp_sn,4,2                     ## @tcp_sn
	.comm	_command_type,4,2               ## @command_type
	.comm	_CMD_RESYNC_RX,4,2              ## @CMD_RESYNC_RX
	.comm	_mlx_tls_kfree_complete,4,2     ## @mlx_tls_kfree_complete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_fpga_tls_resync_rx        ; -- Begin function mlx5_fpga_tls_resync_rx
	.p2align	2
_mlx5_fpga_tls_resync_rx:               ; @mlx5_fpga_tls_resync_rx
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x3
	mov	x21, x2
	mov	x23, x1
	mov	x20, x0
Lloh0:
	adrp	x26, _MLX5_TLS_COMMAND_SIZE@GOTPAGE
Lloh1:
	ldr	x26, [x26, _MLX5_TLS_COMMAND_SIZE@GOTPAGEOFF]
	ldr	w8, [x26]
	add	w0, w8, #16
Lloh2:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	bl	_rcu_read_lock
	ldr	x8, [x20]
	ldr	x8, [x8]
	add	x24, x8, #4
	mov	x0, x23
	bl	_ntohl
	mov	x23, x0
	mov	x0, x24
	mov	x1, x23
	bl	_idr_find
	mov	x24, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_6
; %bb.2:
	bl	_rcu_read_unlock
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_WARN_ONCE
	mov	x0, x19
	bl	_kfree
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_5:
	mov	x0, 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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_6:
	add	x25, x19, #16
	mov	x0, x24
	mov	x1, x25
	bl	_mlx5_fpga_tls_flow_to_cmd
	bl	_rcu_read_unlock
Lloh11:
	adrp	x27, _tls_cmd@GOTPAGE
Lloh12:
	ldr	x27, [x27, _tls_cmd@GOTPAGEOFF]
	ldr	w0, [x27]
Lloh13:
	adrp	x8, _swid@GOTPAGE
Lloh14:
	ldr	x8, [x8, _swid@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x1, x25
	mov	x3, x23
	bl	_MLX5_SET
	ldr	w23, [x27]
Lloh16:
	adrp	x8, _tls_rcd_sn@GOTPAGE
Lloh17:
	ldr	x8, [x8, _tls_rcd_sn@GOTPAGEOFF]
Lloh18:
	ldr	w24, [x8]
	mov	x0, x22
	bl	_be64_to_cpu
	mov	x3, x0
	mov	x0, x23
	mov	x1, x25
	mov	x2, x24
	bl	_MLX5_SET64
	ldr	w0, [x27]
Lloh19:
	adrp	x8, _tcp_sn@GOTPAGE
Lloh20:
	ldr	x8, [x8, _tcp_sn@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	mov	x1, x25
	mov	x3, x21
	bl	_MLX5_SET
	ldr	w0, [x27]
Lloh22:
	adrp	x8, _command_type@GOTPAGE
Lloh23:
	ldr	x8, [x8, _command_type@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
Lloh25:
	adrp	x8, _CMD_RESYNC_RX@GOTPAGE
Lloh26:
	ldr	x8, [x8, _CMD_RESYNC_RX@GOTPAGEOFF]
Lloh27:
	ldr	w3, [x8]
	mov	x1, x25
	bl	_MLX5_SET
	ldr	x8, [x19, #8]
	str	x25, [x8, #8]
	ldr	w9, [x26]
Lloh28:
	adrp	x10, _mlx_tls_kfree_complete@GOTPAGE
Lloh29:
	ldr	x10, [x10, _mlx_tls_kfree_complete@GOTPAGEOFF]
	str	w9, [x8]
Lloh30:
	ldr	w8, [x10]
	str	w8, [x19]
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	w0, [x8]
	mov	x1, x19
	bl	_mlx5_fpga_sbu_conn_sendmsg
	mov	x20, x0
	tbz	w0, #31, LBB0_5
; %bb.7:
	mov	x0, x19
	bl	_kfree
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5_TLS_COMMAND_SIZE,4,2      ; @MLX5_TLS_COMMAND_SIZE
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Received NULL pointer for handle\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_tls_cmd,4,2                    ; @tls_cmd
	.comm	_swid,4,2                       ; @swid
	.comm	_tls_rcd_sn,4,2                 ; @tls_rcd_sn
	.comm	_tcp_sn,4,2                     ; @tcp_sn
	.comm	_command_type,4,2               ; @command_type
	.comm	_CMD_RESYNC_RX,4,2              ; @CMD_RESYNC_RX
	.comm	_mlx_tls_kfree_complete,4,2     ; @mlx_tls_kfree_complete
.subsections_via_symbols
