	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_fpga_tls_add_flow         ## -- Begin function mlx5_fpga_tls_add_flow
	.p2align	4, 0x90
_mlx5_fpga_tls_add_flow:                ## @mlx5_fpga_tls_add_flow
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r12d
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	(%rax), %rbx
	testl	%r9d, %r9d
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_2
## %bb.1:
	leaq	12(%rbx), %rdi
	leaq	8(%rbx), %rsi
	jmp	LBB0_3
LBB0_2:
	leaq	4(%rbx), %rdi
	movq	%rbx, %rsi
LBB0_3:
	movq	%r13, %rdx
	callq	_mlx5_fpga_tls_alloc_swid
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	xorl	%ecx, %ecx
	testl	%r12d, %r12d
	setne	%cl
	movq	_tls_flow@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	movl	%r12d, %edx
	callq	_MLX5_SET
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	%r14d, %ecx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	callq	__mlx5_fpga_tls_add_flow
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	movq	_EINTR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_8
LBB0_7:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%r14d, (%rax)
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_4:
	movl	%r14d, %ebx
	jmp	LBB0_12
LBB0_8:
	testl	%r12d, %r12d
	je	LBB0_10
## %bb.9:
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	leaq	12(%rsi), %rdi
	addq	$8, %rsi
	jmp	LBB0_11
LBB0_10:
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	leaq	4(%rsi), %rdi
LBB0_11:
	movl	%r14d, %edx
	callq	_mlx5_fpga_tls_release_swid
LBB0_12:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_tls_flow,4,2                   ## @tls_flow
	.comm	_EINTR,4,2                      ## @EINTR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_fpga_tls_add_flow         ; -- Begin function mlx5_fpga_tls_add_flow
	.p2align	2
_mlx5_fpga_tls_add_flow:                ; @mlx5_fpga_tls_add_flow
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x5
	mov	x21, x4
	mov	x23, x3
	mov	x24, x2
	mov	x25, x1
	mov	x26, x0
	ldr	x8, [x0]
	ldr	x19, [x8]
	cbz	w5, LBB0_2
; %bb.1:
	add	x0, x19, #12
	add	x1, x19, #8
	b	LBB0_3
LBB0_2:
	add	x0, x19, #4
	mov	x1, x19
LBB0_3:
	mov	x2, x25
	bl	_mlx5_fpga_tls_alloc_swid
	mov	x22, x0
	tbnz	w0, #31, LBB0_7
; %bb.4:
	cmp	w20, #0
	cset	w3, ne
Lloh0:
	adrp	x8, _tls_flow@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tls_flow@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x25
	mov	x2, x20
	bl	_MLX5_SET
	mov	x0, x26
	mov	x1, x25
	mov	x2, x24
	mov	x3, x22
	mov	x4, x23
	bl	__mlx5_fpga_tls_add_flow
	cbz	w0, LBB0_6
; %bb.5:
	mov	x23, x0
Lloh3:
	adrp	x8, _EINTR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINTR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_8
LBB0_6:
	mov	w23, #0
	str	w22, [x21]
	b	LBB0_12
LBB0_7:
	mov	x23, x22
	b	LBB0_12
LBB0_8:
	cbz	w20, LBB0_10
; %bb.9:
	add	x0, x19, #12
	add	x1, x19, #8
	b	LBB0_11
LBB0_10:
	add	x0, x19, #4
	mov	x1, x19
LBB0_11:
	mov	x2, x22
	bl	_mlx5_fpga_tls_release_swid
LBB0_12:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_tls_flow,4,2                   ; @tls_flow
	.comm	_EINTR,4,2                      ; @EINTR
.subsections_via_symbols
