	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5e_attach_mod_hdr
_mlx5e_attach_mod_hdr:                  ## @mlx5e_attach_mod_hdr
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	(%rdx), %r15d
	movl	4(%rdx), %eax
	movq	_MLX5_MH_ACT_SZ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	imull	%r15d, %r12d
	movl	%eax, -52(%rbp)
	movl	%r15d, -56(%rbp)
	leaq	-56(%rbp), %rdi
	callq	_hash_mod_hdr_info
	movl	%eax, %r13d
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_get_flow_name_space
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%eax, %esi
	callq	_get_mod_hdr_table
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_mutex_lock
	movq	%r14, %rdi
	leaq	-56(%rbp), %rsi
	movl	%r13d, %edx
	callq	_mlx5e_mod_hdr_get
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	%rbx, %rdi
	addq	$4, %rdi
	callq	_wait_for_completion
	cmpl	$0, (%rbx)
	js	LBB0_2
LBB0_10:
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%rbx, 24(%r15)
	leaq	12(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	leaq	16(%r15), %rdi
	leaq	16(%rbx), %rsi
	callq	_list_add
	movq	%r14, %rdi
	callq	_spin_unlock
	movq	%r15, %rdi
	callq	_mlx5e_is_eswitch_flow
	movl	8(%rbx), %ecx
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	movq	8(%r15), %rax
	jmp	LBB0_12
LBB0_5:
	leal	48(%r12), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %rbx
	leaq	48(%rax), %rdi
	movq	%rdi, 32(%rax)
	movl	-52(%rbp), %esi
	movl	%r12d, %edx
	callq	_memcpy
	movl	%r15d, 24(%rbx)
	leaq	12(%rbx), %rdi
	callq	_spin_lock_init
	leaq	16(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	44(%rbx), %rdi
	movl	$1, %esi
	callq	_refcount_set
	leaq	4(%rbx), %r12
	movq	%r12, %rdi
	callq	_init_completion
	movl	4(%r14), %edi
	movq	%rbx, %rsi
	addq	$40, %rsi
	movl	%r13d, %edx
	callq	_hash_add
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	(%r15), %edi
	movl	24(%rbx), %edx
	movq	32(%rbx), %rcx
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %esi
	callq	_mlx5_modify_header_alloc
	movl	%eax, 8(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movl	8(%rbx), %edi
	callq	_PTR_ERR
	movl	%eax, %r14d
	movl	%eax, (%rbx)
	movq	%r12, %rdi
	callq	_complete_all
	jmp	LBB0_3
LBB0_2:
	movq	_EREMOTEIO@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	-44(%rbp), %r13d                ## 4-byte Reload
LBB0_3:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	callq	_mlx5e_mod_hdr_put
	jmp	LBB0_4
LBB0_13:
	movq	(%r15), %rax
LBB0_12:
	movl	%ecx, (%rax)
	xorl	%r14d, %r14d
	jmp	LBB0_4
LBB0_6:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_4:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	$1, (%rbx)
	movq	%r12, %rdi
	callq	_complete_all
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX5_MH_ACT_SZ,4,2             ## @MLX5_MH_ACT_SZ
	.comm	_EREMOTEIO,4,2                  ## @EREMOTEIO
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_mlx5e_attach_mod_hdr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5e_attach_mod_hdr
_mlx5e_attach_mod_hdr:                  ; @mlx5e_attach_mod_hdr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _MLX5_MH_ACT_SZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX5_MH_ACT_SZ@GOTPAGEOFF]
Lloh2:
	ldr	w25, [x8]
	ldr	d0, [x2]
	str	q0, [sp]                        ; 16-byte Folded Spill
	str	d0, [sp, #24]
	add	x0, sp, #24
	bl	_hash_mod_hdr_info
	mov	x23, x0
	mov	x0, x19
	bl	_get_flow_name_space
	mov	x22, x0
	mov	x0, x20
	mov	x1, x22
	bl	_get_mod_hdr_table
	mov	x24, x0
	bl	_mutex_lock
	add	x1, sp, #24
	mov	x0, x24
	mov	x2, x23
	bl	_mlx5e_mod_hdr_get
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x0
	mov	x0, x24
	bl	_mutex_unlock
	add	x0, x21, #4
	bl	_wait_for_completion
	ldr	w8, [x21]
	tbnz	w8, #31, LBB0_7
LBB0_2:
	str	x21, [x19, #24]
	add	x20, x21, #12
	mov	x0, x20
	bl	_spin_lock
	add	x0, x19, #16
	add	x1, x21, #16
	bl	_list_add
	mov	x0, x20
	bl	_spin_unlock
	mov	x0, x19
	bl	_mlx5e_is_eswitch_flow
	ldr	w8, [x21, #8]
	mov	w23, #0
	cbz	x0, LBB0_9
; %bb.3:
	ldr	x9, [x19, #8]
	b	LBB0_10
LBB0_4:
	ldr	q0, [sp]                        ; 16-byte Folded Reload
	fmov	w26, s0
	mul	w25, w25, w26
	add	w0, w25, #48
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_kzalloc
	cbz	x0, LBB0_11
; %bb.5:
	mov	x21, x0
	add	x0, x0, #48
	str	x0, [x21, #32]
	ldr	w1, [sp, #28]
	mov	x2, x25
	bl	_memcpy
	str	w26, [x21, #24]
	add	x0, x21, #12
	bl	_spin_lock_init
	add	x0, x21, #16
	bl	_INIT_LIST_HEAD
	add	x0, x21, #44
	mov	w26, #1
	mov	w1, #1
	bl	_refcount_set
	add	x25, x21, #4
	mov	x0, x25
	bl	_init_completion
	ldr	w0, [x24, #4]
	add	x1, x21, #40
	mov	x2, x23
	bl	_hash_add
	mov	x0, x24
	bl	_mutex_unlock
	ldr	w0, [x20]
	ldr	w2, [x21, #24]
	ldr	x3, [x21, #32]
	mov	x1, x22
	bl	_mlx5_modify_header_alloc
	str	w0, [x21, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_13
; %bb.6:
	ldr	w0, [x21, #8]
	bl	_PTR_ERR
	mov	x23, x0
	str	w0, [x21]
	mov	x0, x25
	bl	_complete_all
	b	LBB0_8
LBB0_7:
Lloh6:
	adrp	x8, _EREMOTEIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EREMOTEIO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_8:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_mlx5e_mod_hdr_put
	b	LBB0_12
LBB0_9:
	ldr	x9, [x19]
LBB0_10:
	str	w8, [x9]
	b	LBB0_12
LBB0_11:
	mov	x0, x24
	bl	_mutex_unlock
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_12:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_13:
	str	w26, [x21]
	mov	x0, x25
	bl	_complete_all
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX5_MH_ACT_SZ,4,2             ; @MLX5_MH_ACT_SZ
	.comm	_EREMOTEIO,4,2                  ; @EREMOTEIO
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_mlx5e_attach_mod_hdr
.subsections_via_symbols
