	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_fpga_tls_init             ## -- Begin function mlx5_fpga_tls_init
	.p2align	4, 0x90
_mlx5_fpga_tls_init:                    ## @mlx5_fpga_tls_init
	.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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r14
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movq	$0, -48(%rbp)
	callq	_mlx5_fpga_is_tls_device
	xorl	%r12d, %r12d
	testl	%eax, %eax
	je	LBB0_10
## %bb.1:
	testq	%r14, %r14
	je	LBB0_10
## %bb.2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r15
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_mlx5_fpga_tls_get_caps
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_5
LBB0_9:
	movq	%r15, %rdi
	callq	_kfree
	movl	%ebx, %r12d
	jmp	LBB0_10
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_10:
	movl	%r12d, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_MLX5_ACCEL_TLS_V12@GOTPCREL(%rip), %rax
	movq	_MLX5_ACCEL_TLS_AES_GCM128@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%ecx, (%r15)
	je	LBB0_6
## %bb.7:
	movq	_SBU_QP_QUEUE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)
	movq	%rax, -64(%rbp)
	movq	_mlx5_fpga_tls_hw_qp_recv_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movq	%r14, -80(%rbp)
	leaq	-80(%rbp), %rsi
	movq	%r14, %rdi
	callq	_mlx5_fpga_sbu_conn_create
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_mlx5_fpga_err
	jmp	LBB0_9
LBB0_6:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_11:
	movq	%rbx, 32(%r15)
	leaq	24(%r15), %rdi
	callq	_spin_lock_init
	leaq	20(%r15), %rdi
	callq	_INIT_LIST_HEAD
	leaq	16(%r15), %rdi
	callq	_idr_init
	leaq	12(%r15), %rdi
	callq	_idr_init
	leaq	8(%r15), %rdi
	callq	_spin_lock_init
	movq	%r15, %rdi
	addq	$4, %rdi
	callq	_spin_lock_init
	movq	%r15, (%r14)
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MLX5_ACCEL_TLS_V12,4,2         ## @MLX5_ACCEL_TLS_V12
	.comm	_MLX5_ACCEL_TLS_AES_GCM128,4,2  ## @MLX5_ACCEL_TLS_AES_GCM128
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.comm	_SBU_QP_QUEUE_SIZE,8,3          ## @SBU_QP_QUEUE_SIZE
	.comm	_mlx5_fpga_tls_hw_qp_recv_cb,4,2 ## @mlx5_fpga_tls_hw_qp_recv_cb
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error creating TLS command connection %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_fpga_tls_init             ; -- Begin function mlx5_fpga_tls_init
	.p2align	2
_mlx5_fpga_tls_init:                    ; @mlx5_fpga_tls_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	ldr	x19, [x0]
	str	xzr, [sp, #32]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp]
	bl	_mlx5_fpga_is_tls_device
	mov	w21, #0
	cbz	w0, LBB0_6
; %bb.1:
	cbz	x19, LBB0_6
; %bb.2:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.3:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_mlx5_fpga_tls_get_caps
	mov	x21, x0
	cbz	w0, LBB0_7
LBB0_4:
	mov	x0, x20
	bl	_kfree
	b	LBB0_6
LBB0_5:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_6:
	mov	x0, x21
	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
	add	sp, sp, #96
	ret
LBB0_7:
	ldr	w8, [x20]
Lloh6:
	adrp	x9, _MLX5_ACCEL_TLS_V12@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MLX5_ACCEL_TLS_V12@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _MLX5_ACCEL_TLS_AES_GCM128@GOTPAGE
Lloh10:
	ldr	x10, [x10, _MLX5_ACCEL_TLS_AES_GCM128@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_10
; %bb.8:
Lloh12:
	adrp	x8, _SBU_QP_QUEUE_SIZE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SBU_QP_QUEUE_SIZE@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	stp	x8, x8, [sp, #16]
Lloh15:
	adrp	x8, _mlx5_fpga_tls_hw_qp_recv_cb@GOTPAGE
Lloh16:
	ldr	x8, [x8, _mlx5_fpga_tls_hw_qp_recv_cb@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	str	x19, [sp]
	mov	x1, sp
	mov	x0, x19
	bl	_mlx5_fpga_sbu_conn_create
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_11
; %bb.9:
	mov	x0, x21
	bl	_PTR_ERR
	mov	x21, x0
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_mlx5_fpga_err
	b	LBB0_4
LBB0_10:
Lloh20:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_4
LBB0_11:
	str	x21, [x20, #32]
	add	x0, x20, #24
	bl	_spin_lock_init
	add	x0, x20, #20
	bl	_INIT_LIST_HEAD
	add	x0, x20, #16
	bl	_idr_init
	add	x0, x20, #12
	bl	_idr_init
	add	x0, x20, #8
	bl	_spin_lock_init
	add	x0, x20, #4
	bl	_spin_lock_init
	mov	w21, #0
	str	x20, [x19]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MLX5_ACCEL_TLS_V12,4,2         ; @MLX5_ACCEL_TLS_V12
	.comm	_MLX5_ACCEL_TLS_AES_GCM128,4,2  ; @MLX5_ACCEL_TLS_AES_GCM128
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.comm	_SBU_QP_QUEUE_SIZE,8,3          ; @SBU_QP_QUEUE_SIZE
	.comm	_mlx5_fpga_tls_hw_qp_recv_cb,4,2 ; @mlx5_fpga_tls_hw_qp_recv_cb
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error creating TLS command connection %d\n"

.subsections_via_symbols
