	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_fpga_ipsec_set_caps
_mlx5_fpga_ipsec_set_caps:              ## @mlx5_fpga_ipsec_set_caps
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	movq	$0, -32(%rbp)
	movq	_MLX5_FPGA_IPSEC_CMD_OP_SET_CAP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htonl
	movq	%rax, -40(%rbp)
	movl	%ebx, %edi
	callq	_htonl
	movl	%eax, -48(%rbp)
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	movl	$24, %edx
	callq	_mlx5_fpga_ipsec_cmd_exec
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_6
LBB0_2:
	movq	%r14, %rdi
	callq	_mlx5_fpga_ipsec_cmd_wait
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movl	(%r14), %ecx
	movl	-48(%rbp), %edx
	movl	%ecx, %eax
	notl	%eax
	xorl	%ebx, %ebx
	testl	%eax, %edx
	je	LBB0_5
## %bb.4:
	movl	4(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_mlx5_fpga_err
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	movq	%r14, %rdi
	callq	_kfree
LBB0_6:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5_FPGA_IPSEC_CMD_OP_SET_CAP,4,2 ## @MLX5_FPGA_IPSEC_CMD_OP_SET_CAP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to set capabilities. cmd 0x%08x vs resp 0x%08x\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_mlx5_fpga_ipsec_set_caps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5_fpga_ipsec_set_caps
_mlx5_fpga_ipsec_set_caps:              ; @mlx5_fpga_ipsec_set_caps
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x1
	mov	x20, x0
	stp	xzr, xzr, [sp, #8]
	str	xzr, [sp, #24]
Lloh0:
	adrp	x8, _MLX5_FPGA_IPSEC_CMD_OP_SET_CAP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX5_FPGA_IPSEC_CMD_OP_SET_CAP@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_htonl
	str	x0, [sp, #16]
	mov	x0, x19
	bl	_htonl
	str	w0, [sp, #8]
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #24
	bl	_mlx5_fpga_ipsec_cmd_exec
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_PTR_ERR
	mov	x20, x0
	b	LBB0_7
LBB0_2:
	mov	x0, x19
	bl	_mlx5_fpga_ipsec_cmd_wait
	mov	x20, x0
	cbnz	w0, LBB0_6
; %bb.3:
	ldr	w3, [x19]
	ldr	w2, [sp, #8]
	bics	wzr, w2, w3
	b.ne	LBB0_5
; %bb.4:
	mov	w20, #0
	b	LBB0_6
LBB0_5:
	ldr	w0, [x19, #4]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_mlx5_fpga_err
Lloh5:
	adrp	x8, _EIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_6:
	mov	x0, x19
	bl	_kfree
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5_FPGA_IPSEC_CMD_OP_SET_CAP,4,2 ; @MLX5_FPGA_IPSEC_CMD_OP_SET_CAP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to set capabilities. cmd 0x%08x vs resp 0x%08x\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_mlx5_fpga_ipsec_set_caps
.subsections_via_symbols
