	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5e_ktls_add
_mlx5e_ktls_add:                        ## @mlx5e_ktls_add
	.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	%r8d, %r15d
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	%edx, %r14d
	movq	%rsi, %rbx
	callq	_netdev_priv
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_tls_get_ctx
	movq	%rax, %r12
	movq	(%r13), %rbx
	movq	_TLS_OFFLOAD_CTX_DIR_TX@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	%r14d, (%rax)
	setne	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_3:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_mlx5e_ktls_type_check
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%rbx, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kvzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r12
	movl	%r15d, 12(%rax)
	movl	(%r13), %eax
	movl	%eax, 8(%r12)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_mlx5e_set_ktls_tx_priv_ctx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_mlx5e_ktls_create_tis
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.8:
	movq	%r12, %rdx
	addq	$4, %rdx
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_mlx5_ktls_create_key
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movl	%eax, %ebx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movl	(%r12), %esi
	callq	_mlx5e_destroy_tis
LBB0_11:
	movq	%r12, %rdi
	callq	_kvfree
	jmp	LBB0_12
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_9:
	movq	%r12, %rdi
	callq	_mlx5e_ktls_tx_offload_set_pending
	xorl	%ebx, %ebx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_TLS_OFFLOAD_CTX_DIR_TX,4,2     ## @TLS_OFFLOAD_CTX_DIR_TX
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_mlx5e_ktls_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5e_ktls_add
_mlx5e_ktls_add:                        ; @mlx5e_ktls_add
	.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
	mov	x22, x4
	mov	x20, x3
	mov	x23, x2
	mov	x21, x1
	bl	_netdev_priv
	mov	x19, x0
	mov	x0, x21
	bl	_tls_get_ctx
	mov	x24, x0
	ldr	x21, [x19]
Lloh0:
	adrp	x8, _TLS_OFFLOAD_CTX_DIR_TX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TLS_OFFLOAD_CTX_DIR_TX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w23
	cset	w0, ne
	bl	_WARN_ON
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	mov	x0, x21
	mov	x1, x20
	bl	_mlx5e_ktls_type_check
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_6
; %bb.3:
Lloh5:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_5:
	mov	x0, x22
	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
LBB0_6:
Lloh7:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kvzalloc
	cbz	x0, LBB0_11
; %bb.7:
	mov	x23, x0
	str	w22, [x0, #12]
	ldr	w8, [x20]
	str	w8, [x0, #8]
	mov	x0, x24
	mov	x1, x23
	bl	_mlx5e_set_ktls_tx_priv_ctx
	mov	x0, x21
	mov	x1, x23
	bl	_mlx5e_ktls_create_tis
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.8:
	add	x2, x23, #4
	mov	x0, x21
	mov	x1, x20
	bl	_mlx5_ktls_create_key
	mov	x22, x0
	cbz	w0, LBB0_12
; %bb.9:
	ldr	x0, [x19]
	ldr	w1, [x23]
	bl	_mlx5e_destroy_tis
LBB0_10:
	mov	x0, x23
	bl	_kvfree
	b	LBB0_5
LBB0_11:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_4
LBB0_12:
	mov	x0, x23
	bl	_mlx5e_ktls_tx_offload_set_pending
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_TLS_OFFLOAD_CTX_DIR_TX,4,2     ; @TLS_OFFLOAD_CTX_DIR_TX
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_mlx5e_ktls_add
.subsections_via_symbols
