	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_geneve_tlv_option_add     ## -- Begin function mlx5_geneve_tlv_option_add
	.p2align	4, 0x90
_mlx5_geneve_tlv_option_add:            ## @mlx5_geneve_tlv_option_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_IS_ERR_OR_NULL
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_11
LBB0_2:
	leaq	20(%rbx), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	24(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	(%r15), %rdi
	cmpq	%rdi, (%rbx)
	jne	LBB0_6
## %bb.4:
	movq	8(%rbx), %rcx
	cmpq	8(%r15), %rcx
	jne	LBB0_6
## %bb.5:
	incq	%rax
	movq	%rax, 24(%rbx)
	xorl	%r12d, %r12d
	jmp	LBB0_10
LBB0_6:
	movl	32(%rbx), %ebx
	callq	_be16_to_cpu
	movq	8(%r15), %rcx
	movl	16(%r15), %r8d
	leaq	L_.str(%rip), %rsi
	xorl	%r12d, %r12d
	movl	%ebx, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_mlx5_core_warn
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_10
LBB0_7:
	movl	32(%rbx), %edi
	movq	(%r15), %rsi
	movq	8(%r15), %rdx
	movl	16(%r15), %ecx
	callq	_mlx5_geneve_tlv_option_create
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_8
## %bb.9:
	movups	(%r15), %xmm0
	movups	%xmm0, (%rbx)
	movl	%r12d, 16(%rbx)
	incq	24(%rbx)
	jmp	LBB0_10
LBB0_8:
	movl	32(%rbx), %ebx
	movq	(%r15), %rdi
	callq	_be16_to_cpu
	movq	8(%r15), %rcx
	movl	16(%r15), %r8d
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	movl	%r12d, %r9d
	xorl	%eax, %eax
	callq	_mlx5_core_warn
LBB0_10:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_11:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Won't create Geneve TLV opt object with class:type:len = 0x%x:0x%x:%d (another class:type already exists)\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed creating Geneve TLV opt object class:type:len = 0x%x:0x%x:%d (err=%d)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_geneve_tlv_option_add     ; -- Begin function mlx5_geneve_tlv_option_add
	.p2align	2
_mlx5_geneve_tlv_option_add:            ; @mlx5_geneve_tlv_option_add
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x22, x0
	bl	_IS_ERR_OR_NULL
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_12
LBB0_2:
	add	x19, x22, #20
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x22, #24]
	cbz	x8, LBB0_7
; %bb.3:
	ldr	x9, [x22]
	ldr	x0, [x20]
	cmp	x9, x0
	b.ne	LBB0_6
; %bb.4:
	ldr	x9, [x22, #8]
	ldr	x10, [x20, #8]
	cmp	x9, x10
	b.ne	LBB0_6
; %bb.5:
	mov	w21, #0
	b	LBB0_9
LBB0_6:
	ldr	w21, [x22, #32]
	bl	_be16_to_cpu
	mov	x2, x0
	ldr	x3, [x20, #8]
	ldr	w4, [x20, #16]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_mlx5_core_warn
Lloh5:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_11
LBB0_7:
	ldr	w0, [x22, #32]
	ldp	x1, x2, [x20]
	ldr	w3, [x20, #16]
	bl	_mlx5_geneve_tlv_option_create
	mov	x21, x0
	tbnz	w0, #31, LBB0_10
; %bb.8:
	ldr	q0, [x20]
	str	q0, [x22]
	str	w21, [x22, #16]
	ldr	x8, [x22, #24]
LBB0_9:
	add	x8, x8, #1
	str	x8, [x22, #24]
	b	LBB0_11
LBB0_10:
	ldr	w22, [x22, #32]
	ldr	x0, [x20]
	bl	_be16_to_cpu
	mov	x2, x0
	ldr	x3, [x20, #8]
	ldr	w4, [x20, #16]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	str	x21, [sp]
	mov	x0, x22
	bl	_mlx5_core_warn
LBB0_11:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_12:
	mov	x0, x21
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Won't create Geneve TLV opt object with class:type:len = 0x%x:0x%x:%d (another class:type already exists)\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed creating Geneve TLV opt object class:type:len = 0x%x:0x%x:%d (err=%d)\n"

.subsections_via_symbols
