	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp_port_fdb_tunnel_uc_op
_mlxsw_sp_port_fdb_tunnel_uc_op:        ## @mlxsw_sp_port_fdb_tunnel_uc_op
	.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
	cmpl	$129, %ecx
	jne	LBB0_9
## %bb.1:
	movl	%r9d, %r13d
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	(%r8), %edi
	callq	_be32_to_cpu
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_MLXSW_REG_SFD_UC_TUNNEL_PROTOCOL_IPV4@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_MLXSW_REG_SFD_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movq	%rax, %r14
	movl	%r13d, %edi
	callq	_mlxsw_sp_sfd_op
	movq	%r14, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_mlxsw_reg_sfd_pack
	movl	16(%rbp), %edi
	callq	_mlxsw_sp_sfd_rec_policy
	movq	_MLXSW_REG_SFD_REC_ACTION_NOP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	movq	%r12, %rcx
	movl	%r15d, %r8d
	pushq	-48(%rbp)                       ## 8-byte Folded Reload
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	callq	_mlxsw_reg_sfd_uc_tunnel_pack
	addq	$16, %rsp
	movq	%r14, %rdi
	callq	_mlxsw_reg_sfd_num_rec_get
	movq	%rax, %r15
	movl	(%rbx), %ebx
	movq	_sfd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MLXSW_REG
	movl	%ebx, %edi
	movl	%eax, %esi
	movq	%r14, %rdx
	callq	_mlxsw_reg_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	movq	%r14, %rdi
	callq	_mlxsw_reg_sfd_num_rec_get
	movl	$0, %ebx
	cmpq	%rax, %r15
	je	LBB0_7
## %bb.6:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movq	%r14, %rdi
	callq	_kfree
	jmp	LBB0_8
LBB0_9:
	movl	$1, %edi
	callq	_WARN_ON
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLXSW_REG_SFD_UC_TUNNEL_PROTOCOL_IPV4,4,2 ## @MLXSW_REG_SFD_UC_TUNNEL_PROTOCOL_IPV4
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_MLXSW_REG_SFD_LEN,4,2          ## @MLXSW_REG_SFD_LEN
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MLXSW_REG_SFD_REC_ACTION_NOP,4,2 ## @MLXSW_REG_SFD_REC_ACTION_NOP
	.comm	_sfd,4,2                        ## @sfd
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_mlxsw_sp_port_fdb_tunnel_uc_op
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_sp_port_fdb_tunnel_uc_op
_mlxsw_sp_port_fdb_tunnel_uc_op:        ; @mlxsw_sp_port_fdb_tunnel_uc_op
	.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
	cmp	w3, #129
	b.ne	LBB0_5
; %bb.1:
	mov	x23, x6
	mov	x26, x5
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	ldr	w0, [x4]
	bl	_be32_to_cpu
	mov	x24, x0
Lloh0:
	adrp	x8, _MLXSW_REG_SFD_UC_TUNNEL_PROTOCOL_IPV4@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLXSW_REG_SFD_UC_TUNNEL_PROTOCOL_IPV4@GOTPAGEOFF]
Lloh2:
	ldr	w25, [x8]
Lloh3:
	adrp	x8, _MLXSW_REG_SFD_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MLXSW_REG_SFD_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_kmalloc
	cbz	x0, LBB0_6
; %bb.2:
	mov	x19, x0
	mov	x0, x26
	bl	_mlxsw_sp_sfd_op
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_mlxsw_reg_sfd_pack
	mov	x0, x23
	bl	_mlxsw_sp_sfd_rec_policy
	mov	x2, x0
Lloh9:
	adrp	x8, _MLXSW_REG_SFD_REC_ACTION_NOP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MLXSW_REG_SFD_REC_ACTION_NOP@GOTPAGEOFF]
Lloh11:
	ldr	w5, [x8]
	mov	x0, x19
	mov	w1, #0
	mov	x3, x22
	mov	x4, x21
	mov	x6, x24
	mov	x7, x25
	bl	_mlxsw_reg_sfd_uc_tunnel_pack
	mov	x0, x19
	bl	_mlxsw_reg_sfd_num_rec_get
	mov	x21, x0
	ldr	w20, [x20]
Lloh12:
	adrp	x8, _sfd@GOTPAGE
Lloh13:
	ldr	x8, [x8, _sfd@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_MLXSW_REG
	mov	x1, x0
	mov	x0, x20
	mov	x2, x19
	bl	_mlxsw_reg_write
	mov	x20, x0
	cbnz	w0, LBB0_9
; %bb.3:
	mov	x0, x19
	bl	_mlxsw_reg_sfd_num_rec_get
	cmp	x21, x0
	b.ne	LBB0_8
; %bb.4:
	mov	w20, #0
	b	LBB0_9
LBB0_5:
	mov	w0, #1
	bl	_WARN_ON
Lloh15:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_10
LBB0_8:
Lloh19:
	adrp	x8, _EBUSY@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_9:
	mov	x0, x19
	bl	_kfree
LBB0_10:
	mov	x0, x20
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_MLXSW_REG_SFD_UC_TUNNEL_PROTOCOL_IPV4,4,2 ; @MLXSW_REG_SFD_UC_TUNNEL_PROTOCOL_IPV4
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_MLXSW_REG_SFD_LEN,4,2          ; @MLXSW_REG_SFD_LEN
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MLXSW_REG_SFD_REC_ACTION_NOP,4,2 ; @MLXSW_REG_SFD_REC_ACTION_NOP
	.comm	_sfd,4,2                        ; @sfd
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_mlxsw_sp_port_fdb_tunnel_uc_op
.subsections_via_symbols
